Skip to content

Commit ed438b4

Browse files
committed
xfs: return a distinct error code value for IGET_INCORE cache misses
For an XFS_IGET_INCORE iget operation, if the inode isn't in the cache, return ENODATA so that we don't confuse it with the pre-existing ENOENT cases (inode is in cache, but freed). Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Brian Foster <[email protected]> Reviewed-by: Dave Chinner <[email protected]>
1 parent 7561d27 commit ed438b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_icache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ xfs_iget(
610610
} else {
611611
rcu_read_unlock();
612612
if (flags & XFS_IGET_INCORE) {
613-
error = -ENOENT;
613+
error = -ENODATA;
614614
goto out_error_or_again;
615615
}
616616
XFS_STATS_INC(mp, xs_ig_missed);

0 commit comments

Comments
 (0)