Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'xfs-misc-fixes-for-3.20-2' into for-next

+44 -67
+7 -10
Documentation/filesystems/xfs.txt
··· 348 348 Deprecated Sysctls 349 349 ================== 350 350 351 - fs.xfs.xfsbufd_centisecs (Min: 50 Default: 100 Max: 3000) 352 - Dirty metadata is now tracked by the log subsystem and 353 - flushing is driven by log space and idling demands. The 354 - xfsbufd no longer exists, so this syctl does nothing. 351 + None at present. 355 352 356 - Due for removal in 3.14. 357 353 358 - fs.xfs.age_buffer_centisecs (Min: 100 Default: 1500 Max: 720000) 359 - Dirty metadata is now tracked by the log subsystem and 360 - flushing is driven by log space and idling demands. The 361 - xfsbufd no longer exists, so this syctl does nothing. 354 + Removed Sysctls 355 + =============== 362 356 363 - Due for removal in 3.14. 357 + Name Removed 358 + ---- ------- 359 + fs.xfs.xfsbufd_centisec v3.20 360 + fs.xfs.age_buffer_centisecs v3.20
+33
fs/xfs/libxfs/xfs_bmap.h
··· 28 28 extern kmem_zone_t *xfs_bmap_free_item_zone; 29 29 30 30 /* 31 + * Argument structure for xfs_bmap_alloc. 32 + */ 33 + struct xfs_bmalloca { 34 + xfs_fsblock_t *firstblock; /* i/o first block allocated */ 35 + struct xfs_bmap_free *flist; /* bmap freelist */ 36 + struct xfs_trans *tp; /* transaction pointer */ 37 + struct xfs_inode *ip; /* incore inode pointer */ 38 + struct xfs_bmbt_irec prev; /* extent before the new one */ 39 + struct xfs_bmbt_irec got; /* extent after, or delayed */ 40 + 41 + xfs_fileoff_t offset; /* offset in file filling in */ 42 + xfs_extlen_t length; /* i/o length asked/allocated */ 43 + xfs_fsblock_t blkno; /* starting block of new extent */ 44 + 45 + struct xfs_btree_cur *cur; /* btree cursor */ 46 + xfs_extnum_t idx; /* current extent index */ 47 + int nallocs;/* number of extents alloc'd */ 48 + int logflags;/* flags for transaction logging */ 49 + 50 + xfs_extlen_t total; /* total blocks needed for xaction */ 51 + xfs_extlen_t minlen; /* minimum allocation size (blocks) */ 52 + xfs_extlen_t minleft; /* amount must be left after alloc */ 53 + bool eof; /* set if allocating past last extent */ 54 + bool wasdel; /* replacing a delayed allocation */ 55 + bool userdata;/* set if is user data */ 56 + bool aeof; /* allocated space at eof */ 57 + bool conv; /* overwriting unwritten extents */ 58 + int flags; 59 + }; 60 + 61 + /* 31 62 * List of extents to be free "later". 32 63 * The list is kept sorted on xbf_startblock. 33 64 */ ··· 180 149 void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len, 181 150 struct xfs_bmap_free *flist, struct xfs_mount *mp); 182 151 void xfs_bmap_cancel(struct xfs_bmap_free *flist); 152 + int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist, 153 + int *committed); 183 154 void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork); 184 155 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, 185 156 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork);
+1 -36
fs/xfs/xfs_bmap_util.h
··· 26 26 struct xfs_inode; 27 27 struct xfs_mount; 28 28 struct xfs_trans; 29 + struct xfs_bmalloca; 29 30 30 - /* 31 - * Argument structure for xfs_bmap_alloc. 32 - */ 33 - struct xfs_bmalloca { 34 - xfs_fsblock_t *firstblock; /* i/o first block allocated */ 35 - struct xfs_bmap_free *flist; /* bmap freelist */ 36 - struct xfs_trans *tp; /* transaction pointer */ 37 - struct xfs_inode *ip; /* incore inode pointer */ 38 - struct xfs_bmbt_irec prev; /* extent before the new one */ 39 - struct xfs_bmbt_irec got; /* extent after, or delayed */ 40 - 41 - xfs_fileoff_t offset; /* offset in file filling in */ 42 - xfs_extlen_t length; /* i/o length asked/allocated */ 43 - xfs_fsblock_t blkno; /* starting block of new extent */ 44 - 45 - struct xfs_btree_cur *cur; /* btree cursor */ 46 - xfs_extnum_t idx; /* current extent index */ 47 - int nallocs;/* number of extents alloc'd */ 48 - int logflags;/* flags for transaction logging */ 49 - 50 - xfs_extlen_t total; /* total blocks needed for xaction */ 51 - xfs_extlen_t minlen; /* minimum allocation size (blocks) */ 52 - xfs_extlen_t minleft; /* amount must be left after alloc */ 53 - bool eof; /* set if allocating past last extent */ 54 - bool wasdel; /* replacing a delayed allocation */ 55 - bool userdata;/* set if is user data */ 56 - bool aeof; /* allocated space at eof */ 57 - bool conv; /* overwriting unwritten extents */ 58 - int flags; 59 - struct completion *done; 60 - struct work_struct work; 61 - int result; 62 - }; 63 - 64 - int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist, 65 - int *committed); 66 31 int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); 67 32 int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, 68 33 int whichfork, int *eof);
+1 -1
fs/xfs/xfs_dquot.h
··· 86 86 wait_for_completion(&dqp->q_flush); 87 87 } 88 88 89 - static inline int xfs_dqflock_nowait(xfs_dquot_t *dqp) 89 + static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) 90 90 { 91 91 return try_wait_for_completion(&dqp->q_flush); 92 92 }
fs/xfs/xfs_fs.h fs/xfs/libxfs/xfs_fs.h
+1 -1
fs/xfs/xfs_iomap.c
··· 802 802 xfs_iomap_write_unwritten( 803 803 xfs_inode_t *ip, 804 804 xfs_off_t offset, 805 - size_t count) 805 + xfs_off_t count) 806 806 { 807 807 xfs_mount_t *mp = ip->i_mount; 808 808 xfs_fileoff_t offset_fsb;
+1 -1
fs/xfs/xfs_iomap.h
··· 27 27 struct xfs_bmbt_irec *); 28 28 int xfs_iomap_write_allocate(struct xfs_inode *, xfs_off_t, 29 29 struct xfs_bmbt_irec *); 30 - int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, size_t); 30 + int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t); 31 31 32 32 #endif /* __XFS_IOMAP_H__*/
-18
fs/xfs/xfs_sysctl.c
··· 149 149 .extra2 = &xfs_params.inherit_noatim.max 150 150 }, 151 151 { 152 - .procname = "xfsbufd_centisecs", 153 - .data = &xfs_params.xfs_buf_timer.val, 154 - .maxlen = sizeof(int), 155 - .mode = 0644, 156 - .proc_handler = proc_dointvec_minmax, 157 - .extra1 = &xfs_params.xfs_buf_timer.min, 158 - .extra2 = &xfs_params.xfs_buf_timer.max 159 - }, 160 - { 161 - .procname = "age_buffer_centisecs", 162 - .data = &xfs_params.xfs_buf_age.val, 163 - .maxlen = sizeof(int), 164 - .mode = 0644, 165 - .proc_handler = proc_dointvec_minmax, 166 - .extra1 = &xfs_params.xfs_buf_age.min, 167 - .extra2 = &xfs_params.xfs_buf_age.max 168 - }, 169 - { 170 152 .procname = "inherit_nosymlinks", 171 153 .data = &xfs_params.inherit_nosym.val, 172 154 .maxlen = sizeof(int),
fs/xfs/xfs_types.h fs/xfs/libxfs/xfs_types.h