summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-07 00:30:09 +0400
committerBen Myers <bpm@sgi.com>2013-12-19 01:39:30 +0400
commit309ecac8e7c937c5811ef8f0efc14b3d1bd18775 (patch)
treeb1a34a04e6ac1500e456d5d3ecca5d7cfb56a7c7 /fs/xfs/xfs_aops.c
parent01f4f3277556d4f4f833371db0219b0ca11c5409 (diff)
downloadlinux-309ecac8e7c937c5811ef8f0efc14b3d1bd18775.tar.xz
xfs: rename xfs_ilock_map_shared
Make it clear that we're only locking against the extent map on the data fork. Also clean the function up a little bit. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_aops.c')
-rw-r--r--fs/xfs/xfs_aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 71c8c9d2b882..a26739451b53 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -1217,7 +1217,7 @@ __xfs_get_blocks(
lockmode = XFS_ILOCK_EXCL;
xfs_ilock(ip, lockmode);
} else {
- lockmode = xfs_ilock_map_shared(ip);
+ lockmode = xfs_ilock_data_map_shared(ip);
}
ASSERT(offset <= mp->m_super->s_maxbytes);