Message ID | 150777244964.1724.18204520366062829583.stgit@magnolia (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Wed, Oct 11, 2017 at 06:40:49PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@oracle.com> > > 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 <darrick.wong@oracle.com> > Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> > --- > fs/xfs/xfs_icache.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > > diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c > index 3422711..43005fb 100644 > --- a/fs/xfs/xfs_icache.c > +++ b/fs/xfs/xfs_icache.c > @@ -610,7 +610,7 @@ xfs_iget( > } else { > rcu_read_unlock(); > if (flags & XFS_IGET_INCORE) { > - error = -ENOENT; > + error = -ENODATA; > goto out_error_or_again; > } > XFS_STATS_INC(mp, xs_ig_missed); > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c index 3422711..43005fb 100644 --- a/fs/xfs/xfs_icache.c +++ b/fs/xfs/xfs_icache.c @@ -610,7 +610,7 @@ xfs_iget( } else { rcu_read_unlock(); if (flags & XFS_IGET_INCORE) { - error = -ENOENT; + error = -ENODATA; goto out_error_or_again; } XFS_STATS_INC(mp, xs_ig_missed);