diff options
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 52c91e143725..e00121592632 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -912,7 +912,7 @@ xfs_dir_open( | |||
912 | * If there are any blocks, read-ahead block 0 as we're almost | 912 | * If there are any blocks, read-ahead block 0 as we're almost |
913 | * certain to have the next operation be a read there. | 913 | * certain to have the next operation be a read there. |
914 | */ | 914 | */ |
915 | mode = xfs_ilock_map_shared(ip); | 915 | mode = xfs_ilock_data_map_shared(ip); |
916 | if (ip->i_d.di_nextents > 0) | 916 | if (ip->i_d.di_nextents > 0) |
917 | xfs_dir3_data_readahead(NULL, ip, 0, -1); | 917 | xfs_dir3_data_readahead(NULL, ip, 0, -1); |
918 | xfs_iunlock(ip, mode); | 918 | xfs_iunlock(ip, mode); |
@@ -1215,7 +1215,7 @@ xfs_seek_data( | |||
1215 | uint lock; | 1215 | uint lock; |
1216 | int error; | 1216 | int error; |
1217 | 1217 | ||
1218 | lock = xfs_ilock_map_shared(ip); | 1218 | lock = xfs_ilock_data_map_shared(ip); |
1219 | 1219 | ||
1220 | isize = i_size_read(inode); | 1220 | isize = i_size_read(inode); |
1221 | if (start >= isize) { | 1221 | if (start >= isize) { |
@@ -1294,7 +1294,7 @@ out: | |||
1294 | offset = vfs_setpos(file, offset, inode->i_sb->s_maxbytes); | 1294 | offset = vfs_setpos(file, offset, inode->i_sb->s_maxbytes); |
1295 | 1295 | ||
1296 | out_unlock: | 1296 | out_unlock: |
1297 | xfs_iunlock_map_shared(ip, lock); | 1297 | xfs_iunlock(ip, lock); |
1298 | 1298 | ||
1299 | if (error) | 1299 | if (error) |
1300 | return -error; | 1300 | return -error; |
@@ -1319,7 +1319,7 @@ xfs_seek_hole( | |||
1319 | if (XFS_FORCED_SHUTDOWN(mp)) | 1319 | if (XFS_FORCED_SHUTDOWN(mp)) |
1320 | return -XFS_ERROR(EIO); | 1320 | return -XFS_ERROR(EIO); |
1321 | 1321 | ||
1322 | lock = xfs_ilock_map_shared(ip); | 1322 | lock = xfs_ilock_data_map_shared(ip); |
1323 | 1323 | ||
1324 | isize = i_size_read(inode); | 1324 | isize = i_size_read(inode); |
1325 | if (start >= isize) { | 1325 | if (start >= isize) { |
@@ -1402,7 +1402,7 @@ out: | |||
1402 | offset = vfs_setpos(file, offset, inode->i_sb->s_maxbytes); | 1402 | offset = vfs_setpos(file, offset, inode->i_sb->s_maxbytes); |
1403 | 1403 | ||
1404 | out_unlock: | 1404 | out_unlock: |
1405 | xfs_iunlock_map_shared(ip, lock); | 1405 | xfs_iunlock(ip, lock); |
1406 | 1406 | ||
1407 | if (error) | 1407 | if (error) |
1408 | return -error; | 1408 | return -error; |