diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:49 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-13 07:43:49 -0400 |
commit | 77936d0280616d84d1eb0eb38a6f857d2827a434 (patch) | |
tree | 3076e827144b7312d84e9ed52c5d2f92b1a10fb6 /fs/xfs/xfs_da_btree.h | |
parent | a230a1df40864ef68ff6fbd09302f16d2a216ea5 (diff) |
xfs: factor out xfs_da_grow_inode_int
xfs_da_grow_inode and xfs_dir2_grow_inode are mostly duplicate code. Factor
the meat of those two functions into a new common helper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.h')
-rw-r--r-- | fs/xfs/xfs_da_btree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_da_btree.h b/fs/xfs/xfs_da_btree.h index fe9f5a8c1d2a..7b0a6ea59a04 100644 --- a/fs/xfs/xfs_da_btree.h +++ b/fs/xfs/xfs_da_btree.h | |||
@@ -248,6 +248,8 @@ int xfs_da_blk_link(xfs_da_state_t *state, xfs_da_state_blk_t *old_blk, | |||
248 | * Utility routines. | 248 | * Utility routines. |
249 | */ | 249 | */ |
250 | int xfs_da_grow_inode(xfs_da_args_t *args, xfs_dablk_t *new_blkno); | 250 | int xfs_da_grow_inode(xfs_da_args_t *args, xfs_dablk_t *new_blkno); |
251 | int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, | ||
252 | int count); | ||
251 | int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, | 253 | int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, |
252 | xfs_dablk_t bno, xfs_daddr_t mappedbno, | 254 | xfs_dablk_t bno, xfs_daddr_t mappedbno, |
253 | xfs_dabuf_t **bp, int whichfork); | 255 | xfs_dabuf_t **bp, int whichfork); |