acrn-kernel/fs/ceph
Linus Torvalds 3e32715496
vfs: get rid of old '->iterate' directory operation
All users now just use '->iterate_shared()', which only takes the
directory inode lock for reading.

Filesystems that never got convered to shared mode now instead use a
wrapper that drops the lock, re-takes it in write mode, calls the old
function, and then downgrades the lock back to read mode.

This way the VFS layer and other callers no longer need to care about
filesystems that never got converted to the modern era.

The filesystems that use the new wrapper are ceph, coda, exfat, jfs,
ntfs, ocfs2, overlayfs, and vboxsf.

Honestly, several of them look like they really could just iterate their
directories in shared mode and skip the wrapper entirely, but the point
of this change is to not change semantics or fix filesystems that
haven't been fixed in the last 7+ years, but to finally get rid of the
dual iterators.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-08-06 15:08:35 +02:00
..
Kconfig
Makefile
acl.c
addr.c ceph: fix blindly expanding the readahead windows 2023-06-30 12:08:55 +02:00
cache.c
cache.h
caps.c ceph: don't let check_caps skip sending responses for revoke msgs 2023-06-30 12:08:55 +02:00
ceph_frag.c
debugfs.c ceph: fix potential use-after-free bug when trimming caps 2023-04-30 12:37:28 +02:00
dir.c vfs: get rid of old '->iterate' directory operation 2023-08-06 15:08:35 +02:00
export.c
file.c A bunch of CephFS fixups from Xiubo, mostly around dropping caps, along 2023-07-07 15:07:20 -07:00
inode.c fs.idmapped.v6.3 2023-02-20 11:53:11 -08:00
io.c
io.h
ioctl.c
ioctl.h
locks.c
mds_client.c ceph: defer stopping mdsc delayed_work 2023-08-02 00:13:02 +02:00
mds_client.h ceph: defer stopping mdsc delayed_work 2023-08-02 00:13:02 +02:00
mdsmap.c
metric.c ceph: never send metrics if disable_send_metrics is set 2023-07-24 13:15:39 +02:00
metric.h
quota.c
snap.c ceph: trigger to flush the buffer when making snapshot 2023-06-30 12:08:55 +02:00
strings.c
super.c ceph: defer stopping mdsc delayed_work 2023-08-02 00:13:02 +02:00
super.h ceph: add a dedicated private data for netfs rreq 2023-06-30 12:08:55 +02:00
util.c
xattr.c A few filesystem improvements, with a rather nasty use-after-free fix 2023-05-04 14:48:02 -07:00