replace ->follow_link() with new method that could stay in RCU mode
new method: ->get_link(); replacement of ->follow_link(). The differences
are:
* inode and dentry are passed separately
* might be called both in RCU and non-RCU mode;
the former is indicated by passing it a NULL dentry.
* when called that way it isn't allowed to block
and should return ERR_PTR(-ECHILD) if it needs to be called
in non-RCU mode.
It's a flagday change - the old method is gone, all in-tree instances
converted. Conversion isn't hard; said that, so far very few instances
do not immediately bail out when called in RCU mode. That'll change
in the next commits.
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- Documentation/filesystems/Locking 2 additions, 2 deletionsDocumentation/filesystems/Locking
- Documentation/filesystems/porting 6 additions, 0 deletionsDocumentation/filesystems/porting
- drivers/staging/lustre/lustre/llite/symlink.c 5 additions, 3 deletionsdrivers/staging/lustre/lustre/llite/symlink.c
- fs/9p/vfs_inode.c 12 additions, 5 deletionsfs/9p/vfs_inode.c
- fs/9p/vfs_inode_dotl.c 10 additions, 4 deletionsfs/9p/vfs_inode_dotl.c
- fs/affs/symlink.c 2 additions, 2 deletionsfs/affs/symlink.c
- fs/autofs4/symlink.c 9 additions, 4 deletionsfs/autofs4/symlink.c
- fs/btrfs/inode.c 1 addition, 1 deletionfs/btrfs/inode.c
- fs/ceph/inode.c 1 addition, 1 deletionfs/ceph/inode.c
- fs/cifs/cifsfs.c 1 addition, 1 deletionfs/cifs/cifsfs.c
- fs/cifs/cifsfs.h 1 addition, 3 deletionsfs/cifs/cifsfs.h
- fs/cifs/link.c 4 additions, 2 deletionsfs/cifs/link.c
- fs/coda/cnode.c 1 addition, 1 deletionfs/coda/cnode.c
- fs/configfs/symlink.c 8 additions, 3 deletionsfs/configfs/symlink.c
- fs/dcache.c 1 addition, 1 deletionfs/dcache.c
- fs/ecryptfs/inode.c 9 additions, 3 deletionsfs/ecryptfs/inode.c
- fs/ext2/symlink.c 2 additions, 2 deletionsfs/ext2/symlink.c
- fs/ext4/symlink.c 8 additions, 5 deletionsfs/ext4/symlink.c
- fs/f2fs/namei.c 10 additions, 6 deletionsfs/f2fs/namei.c
- fs/fuse/dir.c 6 additions, 3 deletionsfs/fuse/dir.c
Loading
Please register or sign in to comment