diff options
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index ac0fd32de31e..569938a4a357 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -106,8 +106,8 @@ xfs_iozero( | |||
106 | unsigned offset, bytes; | 106 | unsigned offset, bytes; |
107 | void *fsdata; | 107 | void *fsdata; |
108 | 108 | ||
109 | offset = (pos & (PAGE_CACHE_SIZE -1)); /* Within page */ | 109 | offset = (pos & (PAGE_SIZE -1)); /* Within page */ |
110 | bytes = PAGE_CACHE_SIZE - offset; | 110 | bytes = PAGE_SIZE - offset; |
111 | if (bytes > count) | 111 | if (bytes > count) |
112 | bytes = count; | 112 | bytes = count; |
113 | 113 | ||
@@ -799,8 +799,8 @@ xfs_file_dio_aio_write( | |||
799 | /* see generic_file_direct_write() for why this is necessary */ | 799 | /* see generic_file_direct_write() for why this is necessary */ |
800 | if (mapping->nrpages) { | 800 | if (mapping->nrpages) { |
801 | invalidate_inode_pages2_range(mapping, | 801 | invalidate_inode_pages2_range(mapping, |
802 | pos >> PAGE_CACHE_SHIFT, | 802 | pos >> PAGE_SHIFT, |
803 | end >> PAGE_CACHE_SHIFT); | 803 | end >> PAGE_SHIFT); |
804 | } | 804 | } |
805 | 805 | ||
806 | if (ret > 0) { | 806 | if (ret > 0) { |
@@ -1207,9 +1207,9 @@ xfs_find_get_desired_pgoff( | |||
1207 | 1207 | ||
1208 | pagevec_init(&pvec, 0); | 1208 | pagevec_init(&pvec, 0); |
1209 | 1209 | ||
1210 | index = startoff >> PAGE_CACHE_SHIFT; | 1210 | index = startoff >> PAGE_SHIFT; |
1211 | endoff = XFS_FSB_TO_B(mp, map->br_startoff + map->br_blockcount); | 1211 | endoff = XFS_FSB_TO_B(mp, map->br_startoff + map->br_blockcount); |
1212 | end = endoff >> PAGE_CACHE_SHIFT; | 1212 | end = endoff >> PAGE_SHIFT; |
1213 | do { | 1213 | do { |
1214 | int want; | 1214 | int want; |
1215 | unsigned nr_pages; | 1215 | unsigned nr_pages; |