Dave Chinner 29cad0b3ed xfs: push corruption -> ESTALE conversion to xfs_nfs_get_inode()
In xfs_imap_to_bp(), we convert a -EFSCORRUPTED error to -EINVAL if
we are doing an untrusted lookup. This is done because we need
failed filehandle lookups to report -ESTALE to the caller, and it
does this by converting -EINVAL and -ENOENT errors to -ESTALE.

The squashing of EFSCORRUPTED in imap_to_bp makes it impossible for
for xfs_iget(UNTRUSTED) callers to determine the difference between
"inode does not exist" and "corruption detected during lookup". We
realy need that distinction in places calling xfS_iget(UNTRUSTED),
so move the filehandle error case handling all the way out to
xfs_nfs_get_inode() where it is needed.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2018-06-06 08:10:26 -07:00
..
2018-06-01 09:00:16 -07:00
2018-05-30 08:03:15 -07:00
2018-06-01 18:37:33 -07:00
2018-03-30 11:34:55 -07:00
2017-10-26 15:38:26 -07:00
2018-05-10 08:56:41 -07:00
2018-05-15 18:12:51 -07:00
2018-05-15 17:56:59 -07:00
2018-05-15 17:56:59 -07:00
2018-06-01 09:00:16 -07:00
2017-04-03 15:18:17 -07:00
2018-05-10 08:56:41 -07:00
2018-05-15 17:57:05 -07:00
2017-11-09 15:50:29 -08:00
2017-10-26 15:38:27 -07:00
2018-05-10 08:56:41 -07:00
2018-06-01 09:00:16 -07:00
2018-05-15 17:57:05 -07:00
2018-05-15 17:57:05 -07:00
2017-12-08 17:51:05 -08:00
2018-05-10 08:56:46 -07:00