aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-01 20:38:42 -0400
committerBen Myers <bpm@sgi.com>2012-11-07 15:15:48 -0500
commitb6aff29f3af7437635ec3d66af9115bb17ba561f (patch)
tree11602d25191a123cdea00f18d9ea6c65518d7b74 /fs/xfs/xfs_inode.c
parent4c05f9ad4d168098b7ce3ffa7098283f94811ed6 (diff)
xfs: don't vmap inode cluster buffers during free
Inode buffers do not need to be mapped as inodes are read or written directly from/to the pages underlying the buffer. This fixes a regression introduced by commit 611c994 ("xfs: make XBF_MAPPED the default behaviour"). Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 95f7a73b05cb..965598eb308c 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1760,7 +1760,8 @@ xfs_ifree_cluster(
1760 * to mark all the active inodes on the buffer stale. 1760 * to mark all the active inodes on the buffer stale.
1761 */ 1761 */
1762 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, 1762 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno,
1763 mp->m_bsize * blks_per_cluster, 0); 1763 mp->m_bsize * blks_per_cluster,
1764 XBF_UNMAPPED);
1764 1765
1765 if (!bp) 1766 if (!bp)
1766 return ENOMEM; 1767 return ENOMEM;