aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2011-09-18 16:40:57 -0400
committerAlex Elder <aelder@sgi.com>2011-10-11 22:15:05 -0400
commit0937e0fd8be6f9c26844127d39d677bb752e8741 (patch)
treef05f9c8a7cb6459726a9f207025b495853b913e8 /fs/xfs/xfs_bmap.h
parentbaf41a52b9c62f9a825371806129ed12e2c1e2d8 (diff)
xfs: move firstblock and bmap freelist cursor into bmalloca structure
Rather than passing the firstblock and freelist structure around, embed it into the bmalloca structure and remove it from the function parameters. This also enables the minleft parameter to be set only once in xfs_bmapi_write(), and the freelist cursor directly queried in xfs_bmapi_allocate to clear it when the lowspace algorithm is activated. Signed-off-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.h')
-rw-r--r--fs/xfs/xfs_bmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h
index 6e8f8aee7cdb..6e7c7a50d248 100644
--- a/fs/xfs/xfs_bmap.h
+++ b/fs/xfs/xfs_bmap.h
@@ -109,7 +109,8 @@ static inline void xfs_bmap_init(xfs_bmap_free_t *flp, xfs_fsblock_t *fbp)
109 * Argument structure for xfs_bmap_alloc. 109 * Argument structure for xfs_bmap_alloc.
110 */ 110 */
111typedef struct xfs_bmalloca { 111typedef struct xfs_bmalloca {
112 xfs_fsblock_t firstblock; /* i/o first block allocated */ 112 xfs_fsblock_t *firstblock; /* i/o first block allocated */
113 struct xfs_bmap_free *flist; /* bmap freelist */
113 xfs_fsblock_t rval; /* starting block of new extent */ 114 xfs_fsblock_t rval; /* starting block of new extent */
114 xfs_fileoff_t off; /* offset in file filling in */ 115 xfs_fileoff_t off; /* offset in file filling in */
115 struct xfs_trans *tp; /* transaction pointer */ 116 struct xfs_trans *tp; /* transaction pointer */
@@ -123,7 +124,6 @@ typedef struct xfs_bmalloca {
123 char eof; /* set if allocating past last extent */ 124 char eof; /* set if allocating past last extent */
124 char wasdel; /* replacing a delayed allocation */ 125 char wasdel; /* replacing a delayed allocation */
125 char userdata;/* set if is user data */ 126 char userdata;/* set if is user data */
126 char low; /* low on space, using seq'l ags */
127 char aeof; /* allocated space at eof */ 127 char aeof; /* allocated space at eof */
128 char conv; /* overwriting unwritten extents */ 128 char conv; /* overwriting unwritten extents */
129} xfs_bmalloca_t; 129} xfs_bmalloca_t;