fs: change d_compare for rcu-walk
Change d_compare so it may be called from lock-free RCU lookups. This
does put significant restrictions on what may be done from the callback,
however there don't seem to have been any problems with in-tree fses.
If some strange use case pops up that _really_ cannot cope with the
rcu-walk rules, we can just add new rcu-unaware callbacks, which would
cause name lookup to drop out of rcu-walk mode.
For in-tree filesystems, this is just a mechanical change.
Signed-off-by:
Nick Piggin <npiggin@kernel.dk>
Showing
- Documentation/filesystems/Locking 3 additions, 1 deletionDocumentation/filesystems/Locking
- Documentation/filesystems/porting 7 additions, 0 deletionsDocumentation/filesystems/porting
- Documentation/filesystems/vfs.txt 23 additions, 3 deletionsDocumentation/filesystems/vfs.txt
- drivers/staging/smbfs/dir.c 11 additions, 5 deletionsdrivers/staging/smbfs/dir.c
- fs/adfs/dir.c 5 additions, 3 deletionsfs/adfs/dir.c
- fs/affs/namei.c 28 additions, 18 deletionsfs/affs/namei.c
- fs/cifs/dir.c 7 additions, 5 deletionsfs/cifs/dir.c
- fs/dcache.c 3 additions, 1 deletionfs/dcache.c
- fs/fat/namei_msdos.c 8 additions, 6 deletionsfs/fat/namei_msdos.c
- fs/fat/namei_vfat.c 20 additions, 13 deletionsfs/fat/namei_vfat.c
- fs/hfs/hfs_fs.h 4 additions, 1 deletionfs/hfs/hfs_fs.h
- fs/hfs/string.c 7 additions, 7 deletionsfs/hfs/string.c
- fs/hfsplus/hfsplus_fs.h 4 additions, 1 deletionfs/hfsplus/hfsplus_fs.h
- fs/hfsplus/unicode.c 9 additions, 6 deletionsfs/hfsplus/unicode.c
- fs/hpfs/dentry.c 14 additions, 8 deletionsfs/hpfs/dentry.c
- fs/isofs/inode.c 47 additions, 45 deletionsfs/isofs/inode.c
- fs/isofs/namei.c 2 additions, 1 deletionfs/isofs/namei.c
- fs/jfs/namei.c 7 additions, 4 deletionsfs/jfs/namei.c
- fs/ncpfs/dir.c 15 additions, 10 deletionsfs/ncpfs/dir.c
- fs/ncpfs/ncplib_kernel.h 4 additions, 4 deletionsfs/ncpfs/ncplib_kernel.h
Loading
Please register or sign in to comment