]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/xfs/xfs_file.c
xfs: fail _dir_open when readahead fails
[mirror_ubuntu-zesty-kernel.git] / fs / xfs / xfs_file.c
index 0a29739f785e417cf1668b5aebf7f7f056f66478..032c8a74824a38ad5da5bc95d844cde41da7a4a1 100644 (file)
@@ -913,9 +913,9 @@ xfs_dir_open(
         */
        mode = xfs_ilock_data_map_shared(ip);
        if (ip->i_d.di_nextents > 0)
-               xfs_dir3_data_readahead(ip, 0, -1);
+               error = xfs_dir3_data_readahead(ip, 0, -1);
        xfs_iunlock(ip, mode);
-       return 0;
+       return error;
 }
 
 STATIC int