]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/xfs/libxfs/xfs_da_btree.c
xfs: fail _dir_open when readahead fails
[mirror_ubuntu-zesty-kernel.git] / fs / xfs / libxfs / xfs_da_btree.c
index f2dc1a950c85c691aac4dd00d3c0c640fc8f1543..1bdf2888295b92761ab5e6bea7aa70e6bb6298dd 100644 (file)
@@ -2633,7 +2633,7 @@ out_free:
 /*
  * Readahead the dir/attr block.
  */
-xfs_daddr_t
+int
 xfs_da_reada_buf(
        struct xfs_inode        *dp,
        xfs_dablk_t             bno,
@@ -2664,7 +2664,5 @@ out_free:
        if (mapp != &map)
                kmem_free(mapp);
 
-       if (error)
-               return -1;
-       return mappedbno;
+       return error;
 }