···348348Deprecated Sysctls349349==================350350351351- fs.xfs.xfsbufd_centisecs (Min: 50 Default: 100 Max: 3000)352352- Dirty metadata is now tracked by the log subsystem and353353- flushing is driven by log space and idling demands. The354354- xfsbufd no longer exists, so this syctl does nothing.351351+None at present.355352356356- Due for removal in 3.14.357353358358- fs.xfs.age_buffer_centisecs (Min: 100 Default: 1500 Max: 720000)359359- Dirty metadata is now tracked by the log subsystem and360360- flushing is driven by log space and idling demands. The361361- xfsbufd no longer exists, so this syctl does nothing.354354+Removed Sysctls355355+===============362356363363- Due for removal in 3.14.357357+ Name Removed358358+ ---- -------359359+ fs.xfs.xfsbufd_centisec v3.20360360+ fs.xfs.age_buffer_centisecs v3.20
+33
fs/xfs/libxfs/xfs_bmap.h
···2828extern kmem_zone_t *xfs_bmap_free_item_zone;29293030/*3131+ * Argument structure for xfs_bmap_alloc.3232+ */3333+struct xfs_bmalloca {3434+ xfs_fsblock_t *firstblock; /* i/o first block allocated */3535+ struct xfs_bmap_free *flist; /* bmap freelist */3636+ struct xfs_trans *tp; /* transaction pointer */3737+ struct xfs_inode *ip; /* incore inode pointer */3838+ struct xfs_bmbt_irec prev; /* extent before the new one */3939+ struct xfs_bmbt_irec got; /* extent after, or delayed */4040+4141+ xfs_fileoff_t offset; /* offset in file filling in */4242+ xfs_extlen_t length; /* i/o length asked/allocated */4343+ xfs_fsblock_t blkno; /* starting block of new extent */4444+4545+ struct xfs_btree_cur *cur; /* btree cursor */4646+ xfs_extnum_t idx; /* current extent index */4747+ int nallocs;/* number of extents alloc'd */4848+ int logflags;/* flags for transaction logging */4949+5050+ xfs_extlen_t total; /* total blocks needed for xaction */5151+ xfs_extlen_t minlen; /* minimum allocation size (blocks) */5252+ xfs_extlen_t minleft; /* amount must be left after alloc */5353+ bool eof; /* set if allocating past last extent */5454+ bool wasdel; /* replacing a delayed allocation */5555+ bool userdata;/* set if is user data */5656+ bool aeof; /* allocated space at eof */5757+ bool conv; /* overwriting unwritten extents */5858+ int flags;5959+};6060+6161+/*3162 * List of extents to be free "later".3263 * The list is kept sorted on xbf_startblock.3364 */···180149void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len,181150 struct xfs_bmap_free *flist, struct xfs_mount *mp);182151void xfs_bmap_cancel(struct xfs_bmap_free *flist);152152+int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist,153153+ int *committed);183154void xfs_bmap_compute_maxlevels(struct xfs_mount *mp, int whichfork);184155int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip,185156 xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork);
+1-36
fs/xfs/xfs_bmap_util.h
···2626struct xfs_inode;2727struct xfs_mount;2828struct xfs_trans;2929+struct xfs_bmalloca;29303030-/*3131- * Argument structure for xfs_bmap_alloc.3232- */3333-struct xfs_bmalloca {3434- xfs_fsblock_t *firstblock; /* i/o first block allocated */3535- struct xfs_bmap_free *flist; /* bmap freelist */3636- struct xfs_trans *tp; /* transaction pointer */3737- struct xfs_inode *ip; /* incore inode pointer */3838- struct xfs_bmbt_irec prev; /* extent before the new one */3939- struct xfs_bmbt_irec got; /* extent after, or delayed */4040-4141- xfs_fileoff_t offset; /* offset in file filling in */4242- xfs_extlen_t length; /* i/o length asked/allocated */4343- xfs_fsblock_t blkno; /* starting block of new extent */4444-4545- struct xfs_btree_cur *cur; /* btree cursor */4646- xfs_extnum_t idx; /* current extent index */4747- int nallocs;/* number of extents alloc'd */4848- int logflags;/* flags for transaction logging */4949-5050- xfs_extlen_t total; /* total blocks needed for xaction */5151- xfs_extlen_t minlen; /* minimum allocation size (blocks) */5252- xfs_extlen_t minleft; /* amount must be left after alloc */5353- bool eof; /* set if allocating past last extent */5454- bool wasdel; /* replacing a delayed allocation */5555- bool userdata;/* set if is user data */5656- bool aeof; /* allocated space at eof */5757- bool conv; /* overwriting unwritten extents */5858- int flags;5959- struct completion *done;6060- struct work_struct work;6161- int result;6262-};6363-6464-int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist,6565- int *committed);6631int xfs_bmap_rtalloc(struct xfs_bmalloca *ap);6732int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff,6833 int whichfork, int *eof);