kernel_samsung_a53x/Documentation/filesystems
Eric W. Biederman e7b6caa186 file: Replace fcheck_files with files_lookup_fd_rcu
[ Upstream commit f36c2943274199cb8aef32ac96531ffb7c4b43d0 ]

This change renames fcheck_files to files_lookup_fd_rcu.  All of the
remaining callers take the rcu_read_lock before calling this function
so the _rcu suffix is appropriate.  This change also tightens up the
debug check to verify that all callers hold the rcu_read_lock.

All callers that used to call files_check with the files->file_lock
held have now been changed to call files_lookup_fd_locked.

This change of name has helped remind me of which locks and which
guarantees are in place helping me to catch bugs later in the
patchset.

The need for better names became apparent in the last round of
discussion of this set of changes[1].

[1] https://lkml.kernel.org/r/CAHk-=wj8BQbgJFLa+J0e=iT-1qpmCRTbPAJ8gd6MJQ=kbRPqyQ@mail.gmail.com
Link: https://lkml.kernel.org/r/20201120231441.29911-9-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:27 +01:00
..
caching Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cifs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ext4 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nfs nfsd: close cached files prior to a REMOVE or RENAME that would replace target 2024-11-19 12:27:26 +01:00
spufs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
9p.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
adfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
affs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
api-summary.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
autofs-mount-control.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
autofs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
automount-support.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
befs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ceph.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coda.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cramfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dax.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devpts.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
directory-locking.rst rename(): fix the locking of subdirectories 2024-11-18 12:12:59 +01:00
dlmfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dnotify.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecryptfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efivarfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
erofs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ext2.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ext3.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
f2fs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fiemap.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
files.rst file: Replace fcheck_files with files_lookup_fd_rcu 2024-11-19 12:27:27 +01:00
fscrypt.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsverity.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fuse-io.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fuse.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gfs2-glocks.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gfs2-uevents.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gfs2.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hfsplus.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
incfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
index.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inotify.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isofs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
journalling.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locking.rst rename(): fix the locking of subdirectories 2024-11-18 12:12:59 +01:00
locks.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mandatory-locking.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mount_api.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nilfs2.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ntfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocfs2-online-filecheck.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocfs2.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
orangefs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
overlayfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
path-lookup.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
path-lookup.txt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
porting.rst rename(): fix the locking of subdirectories 2024-11-18 12:12:59 +01:00
proc.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qnx6.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quota.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ramfs-rootfs-initramfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
relay.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
romfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
seq_file.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sharedsubtree.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
splice.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
squashfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysv-fs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tmpfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubifs-authentication.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubifs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udf.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vfat.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vfs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtiofs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xfs-delayed-logging-design.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xfs-self-describing-metadata.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zonefs.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00