diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c index a0c45cc8a6b8..e14c4e3aea0c 100644 --- a/fs/xfs/linux-2.6/xfs_file.c +++ b/fs/xfs/linux-2.6/xfs_file.c | |||
@@ -204,7 +204,7 @@ xfs_file_readdir( | |||
204 | * point we can change the ->readdir prototype to include the | 204 | * point we can change the ->readdir prototype to include the |
205 | * buffer size. | 205 | * buffer size. |
206 | */ | 206 | */ |
207 | bufsize = (size_t)min_t(loff_t, PAGE_SIZE, inode->i_size); | 207 | bufsize = (size_t)min_t(loff_t, PAGE_SIZE, ip->i_d.di_size); |
208 | 208 | ||
209 | error = xfs_readdir(ip, dirent, bufsize, | 209 | error = xfs_readdir(ip, dirent, bufsize, |
210 | (xfs_off_t *)&filp->f_pos, filldir); | 210 | (xfs_off_t *)&filp->f_pos, filldir); |