aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/linux-2.6/xfs_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c
index e4caeb28ce2e..3805ada98747 100644
--- a/fs/xfs/linux-2.6/xfs_file.c
+++ b/fs/xfs/linux-2.6/xfs_file.c
@@ -203,9 +203,9 @@ xfs_file_readdir(
203 * 203 *
204 * Try to give it an estimate that's good enough, maybe at some 204 * Try to give it an estimate that's good enough, maybe at some
205 * point we can change the ->readdir prototype to include the 205 * point we can change the ->readdir prototype to include the
206 * buffer size. 206 * buffer size. For now we use the current glibc buffer size.
207 */ 207 */
208 bufsize = (size_t)min_t(loff_t, PAGE_SIZE, ip->i_d.di_size); 208 bufsize = (size_t)min_t(loff_t, 32768, ip->i_d.di_size);
209 209
210 error = xfs_readdir(ip, dirent, bufsize, 210 error = xfs_readdir(ip, dirent, bufsize,
211 (xfs_off_t *)&filp->f_pos, filldir); 211 (xfs_off_t *)&filp->f_pos, filldir);