diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-11-22 22:24:23 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-26 17:01:31 -0500 |
commit | 7c4cebe8e02dd0b0e655605442bbe9268db9ed4f (patch) | |
tree | 32f3c09c78acd7b956c5437641f133cd694f7100 /fs/xfs | |
parent | 0acba3cd018c51e529a6f008c092629ad2e9e0a4 (diff) |
xfs: inode allocation should use unmapped buffers.
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: Dave Chinner <david@fromorbit.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_ialloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index 2d6495eaaa34..a815412eab80 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
@@ -200,7 +200,8 @@ xfs_ialloc_inode_init( | |||
200 | */ | 200 | */ |
201 | d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); | 201 | d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); |
202 | fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, | 202 | fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, |
203 | mp->m_bsize * blks_per_cluster, 0); | 203 | mp->m_bsize * blks_per_cluster, |
204 | XBF_UNMAPPED); | ||
204 | if (!fbuf) | 205 | if (!fbuf) |
205 | return ENOMEM; | 206 | return ENOMEM; |
206 | /* | 207 | /* |