aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-09-24 06:07:47 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:07:46 -0400
commit686865f76e35b28ba7aa6afa19209426f0da6201 (patch)
tree49f0ea4c6cb6ec4c71d1bce041ab21bbcd4920c8 /fs/xfs/xfs_vnodeops.c
parentdcd79a1423f64ee0184629874805c3ac40f3a2c5 (diff)
xfs: rename xfs_buf_get_nodaddr to be more appropriate
xfs_buf_get_nodaddr() is really used to allocate a buffer that is uncached. While it is not directly assigned a disk address, the fact that they are not cached is a more important distinction. With the upcoming uncached buffer read primitive, we should be consistent with this disctinction. While there, make page allocation in xfs_buf_get_nodaddr() safe against memory reclaim re-entrancy into the filesystem by allowing a flags parameter to be passed. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index a230cd4d0774..b7bdc43308e4 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -2434,9 +2434,9 @@ xfs_zero_remaining_bytes(
2434 if (endoff > ip->i_size) 2434 if (endoff > ip->i_size)
2435 endoff = ip->i_size; 2435 endoff = ip->i_size;
2436 2436
2437 bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize, 2437 bp = xfs_buf_get_uncached(XFS_IS_REALTIME_INODE(ip) ?
2438 XFS_IS_REALTIME_INODE(ip) ? 2438 mp->m_rtdev_targp : mp->m_ddev_targp,
2439 mp->m_rtdev_targp : mp->m_ddev_targp); 2439 mp->m_sb.sb_blocksize, XBF_DONT_BLOCK);
2440 if (!bp) 2440 if (!bp)
2441 return XFS_ERROR(ENOMEM); 2441 return XFS_ERROR(ENOMEM);
2442 2442