summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_btree.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-02-08 14:58:07 +1100
committerDave Chinner <david@fromorbit.com>2016-02-08 14:58:07 +1100
commitedfd9dd549212a0923c9b5b142275dc88912abfa (patch)
tree8d096dd78a94b1f4594afcbefec9d187de060923 /fs/xfs/libxfs/xfs_btree.c
parentc46ee8ad7856b58eeb383c30ce847897f85c4103 (diff)
downloadlinux-edfd9dd549212a0923c9b5b142275dc88912abfa.tar.bz2
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.c4
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;
}