aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r--fs/xfs/xfs_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index f6dab7da7bcc..400b187595bb 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -31,6 +31,8 @@
31#include "xfs_error.h" 31#include "xfs_error.h"
32#include "xfs_vnodeops.h" 32#include "xfs_vnodeops.h"
33#include "xfs_da_btree.h" 33#include "xfs_da_btree.h"
34#include "xfs_dir2_format.h"
35#include "xfs_dir2_priv.h"
34#include "xfs_ioctl.h" 36#include "xfs_ioctl.h"
35#include "xfs_trace.h" 37#include "xfs_trace.h"
36 38
@@ -891,7 +893,7 @@ xfs_dir_open(
891 */ 893 */
892 mode = xfs_ilock_map_shared(ip); 894 mode = xfs_ilock_map_shared(ip);
893 if (ip->i_d.di_nextents > 0) 895 if (ip->i_d.di_nextents > 0)
894 xfs_da_reada_buf(NULL, ip, 0, XFS_DATA_FORK, NULL); 896 xfs_dir2_data_readahead(NULL, ip, 0, -1);
895 xfs_iunlock(ip, mode); 897 xfs_iunlock(ip, mode);
896 return 0; 898 return 0;
897} 899}