diff options
author | Christoph Hellwig <hch@lst.de> | 2016-02-08 14:58:07 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-02-08 14:58:07 +1100 |
commit | edfd9dd549212a0923c9b5b142275dc88912abfa (patch) | |
tree | 8d096dd78a94b1f4594afcbefec9d187de060923 /fs/xfs/libxfs/xfs_btree.c | |
parent | c46ee8ad7856b58eeb383c30ce847897f85c4103 (diff) | |
download | linux-stable-edfd9dd549212a0923c9b5b142275dc88912abfa.tar.gz linux-stable-edfd9dd549212a0923c9b5b142275dc88912abfa.tar.bz2 linux-stable-edfd9dd549212a0923c9b5b142275dc88912abfa.zip |
xfs: move buffer invalidation to xfs_btree_free_block
... instead of leaving it in the methods.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_btree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c index 77afb4a899b9..1f88e1ce770f 100644 --- a/fs/xfs/libxfs/xfs_btree.c +++ b/fs/xfs/libxfs/xfs_btree.c @@ -302,8 +302,10 @@ xfs_btree_free_block( int error; error = cur->bc_ops->free_block(cur, bp); - if (!error) + if (!error) { + xfs_trans_binval(cur->bc_tp, bp); XFS_BTREE_STATS_INC(cur, free); + } return error; } |