From: Dave Chinner Date: Fri, 2 Nov 2012 00:38:42 +0000 (+1100) Subject: xfs: don't vmap inode cluster buffers during free X-Git-Tag: MMI-PSA29.97-13-9~15542^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b62acfe99e158fb7812982d1cf90a075710a92c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Christoph Hellwig Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 2778258fcfa2..1938b41ee9f5 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -1509,7 +1509,8 @@ xfs_ifree_cluster( * to mark all the active inodes on the buffer stale. */ bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, - mp->m_bsize * blks_per_cluster, 0); + mp->m_bsize * blks_per_cluster, + XBF_UNMAPPED); if (!bp) return ENOMEM;