Commit 2ed1e312 authored by Charles Fumuso's avatar Charles Fumuso Committed by Stephen Lord

[XFS] fix getdents so that xfs_da_read_buf doesn't return an EFSCORRUPTED except

when there is a real problem.

SGI Modid: 2.5.x-xfs:slinx:138531a
parent 1978c795
......@@ -887,7 +887,7 @@ xfs_dir_node_getdents(xfs_trans_t *trans, xfs_inode_t *dp, uio_t *uio,
* hashval, then we run with it.
*/
if (bno > 0) {
error = xfs_da_read_buf(trans, dp, bno, -1, &bp, XFS_DATA_FORK);
error = xfs_da_read_buf(trans, dp, bno, -2, &bp, XFS_DATA_FORK);
if ((error != 0) && (error != EFSCORRUPTED))
return(error);
if (bp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment