fs: ensure that ->getattr() honors AT_STATX_CACHED
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Dec 2020 20:36:20 +0000 (13:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 01:07:27 +0000 (18:07 -0700)
commit8dde16ca7b0cd8d1715cb8c4f5d81419cc981fe7
treea34ec3198b8188f53aeb4e21a5ea43613d306333
parentaf5e80eb3a826c6a8f52adca19ad1333fd354791
fs: ensure that ->getattr() honors AT_STATX_CACHED

For filesystems that provide a private ->getattr() implementation, some of
them need to do IO to satisfy the request. If we need to block off
->getattr() and AT_STATX_CACHED is set, then return -EAGAIN and have the
caller retry.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
14 files changed:
fs/9p/vfs_inode.c
fs/ceph/inode.c
fs/cifs/inode.c
fs/coda/inode.c
fs/ecryptfs/inode.c
fs/fuse/dir.c
fs/gfs2/inode.c
fs/kernfs/inode.c
fs/nfs/inode.c
fs/ocfs2/file.c
fs/orangefs/inode.c
fs/ubifs/dir.c
fs/udf/symlink.c
fs/vboxsf/utils.c