diff options
| author | Christoph Hellwig <[email protected]> | 2016-02-08 03:58:07 +0000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2016-02-08 03:58:07 +0000 |
| commit | edfd9dd549212a0923c9b5b142275dc88912abfa (patch) | |
| tree | 8d096dd78a94b1f4594afcbefec9d187de060923 /fs/xfs/libxfs/xfs_ialloc_btree.c | |
| parent | xfs: factor btree block freeing into a helper (diff) | |
| download | kernel-edfd9dd549212a0923c9b5b142275dc88912abfa.tar.gz kernel-edfd9dd549212a0923c9b5b142275dc88912abfa.zip | |
xfs: move buffer invalidation to xfs_btree_free_block
... instead of leaving it in the methods.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c index c679f3c05b63..89c21d771e35 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.c +++ b/fs/xfs/libxfs/xfs_ialloc_btree.c @@ -125,16 +125,8 @@ xfs_inobt_free_block( struct xfs_btree_cur *cur, struct xfs_buf *bp) { - xfs_fsblock_t fsbno; - int error; - - fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, XFS_BUF_ADDR(bp)); - error = xfs_free_extent(cur->bc_tp, fsbno, 1); - if (error) - return error; - - xfs_trans_binval(cur->bc_tp, bp); - return error; + return xfs_free_extent(cur->bc_tp, + XFS_DADDR_TO_FSB(cur->bc_mp, XFS_BUF_ADDR(bp)), 1); } STATIC int |
