diff options
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 6682d6d7f294..5c61c24dab2a 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -137,7 +137,7 @@ static inline void afs_dir_check_page(struct inode *dir, struct page *page) | |||
137 | #endif | 137 | #endif |
138 | 138 | ||
139 | /* determine how many magic numbers there should be in this page */ | 139 | /* determine how many magic numbers there should be in this page */ |
140 | latter = dir->i_size - (page->index << PAGE_CACHE_SHIFT); | 140 | latter = dir->i_size - page_offset(page); |
141 | if (latter >= PAGE_SIZE) | 141 | if (latter >= PAGE_SIZE) |
142 | qty = PAGE_SIZE; | 142 | qty = PAGE_SIZE; |
143 | else | 143 | else |