xfs: rename XFS_IGET_BULKSTAT to XFS_IGET_UNTRUSTED
Inode numbers may come from somewhere external to the filesystem (e.g. file handles, bulkstat information) and so are inherently untrusted. Rename the flag we use for these lookups to make it obvious we are doing a lookup of an untrusted inode number and need to verify it completely before trying to read it from disk. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Dave Chinner
parent
7124fe0a5b
commit
1920779e67
@@ -80,7 +80,7 @@ xfs_bulkstat_one_int(
|
||||
return XFS_ERROR(ENOMEM);
|
||||
|
||||
error = xfs_iget(mp, NULL, ino,
|
||||
XFS_IGET_BULKSTAT, XFS_ILOCK_SHARED, &ip, bno);
|
||||
XFS_IGET_UNTRUSTED, XFS_ILOCK_SHARED, &ip, bno);
|
||||
if (error) {
|
||||
*stat = BULKSTAT_RV_NOTHING;
|
||||
goto out_free;
|
||||
|
Reference in New Issue
Block a user