fs: small rcu-walk documentation fixes

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
This commit is contained in:
Nick Piggin
2011-01-14 02:26:53 +00:00
committed by Nick Piggin
parent b3e19d924b
commit a82416da83
2 changed files with 6 additions and 6 deletions

View File

@@ -365,8 +365,8 @@ must be done in the RCU callback.
[recommended] [recommended]
vfs now tries to do path walking in "rcu-walk mode", which avoids vfs now tries to do path walking in "rcu-walk mode", which avoids
atomic operations and scalability hazards on dentries and inodes (see atomic operations and scalability hazards on dentries and inodes (see
Documentation/filesystems/path-walk.txt). d_hash and d_compare changes (above) Documentation/filesystems/path-lookup.txt). d_hash and d_compare changes
are examples of the changes required to support this. For more complex (above) are examples of the changes required to support this. For more complex
filesystem callbacks, the vfs drops out of rcu-walk mode before the fs call, so filesystem callbacks, the vfs drops out of rcu-walk mode before the fs call, so
no changes are required to the filesystem. However, this is costly and loses no changes are required to the filesystem. However, this is costly and loses
the benefits of rcu-walk mode. We will begin to add filesystem callbacks that the benefits of rcu-walk mode. We will begin to add filesystem callbacks that
@@ -383,5 +383,5 @@ Documentation/filesystems/vfs.txt for more details.
permission and check_acl are inode permission checks that are called permission and check_acl are inode permission checks that are called
on many or all directory inodes on the way down a path walk (to check for on many or all directory inodes on the way down a path walk (to check for
exec permission). These must now be rcu-walk aware (flags & IPERM_RCU). See exec permission). These must now be rcu-walk aware (flags & IPERM_FLAG_RCU).
Documentation/filesystems/vfs.txt for more details. See Documentation/filesystems/vfs.txt for more details.

View File

@@ -415,7 +415,7 @@ otherwise noted.
permission: called by the VFS to check for access rights on a POSIX-like permission: called by the VFS to check for access rights on a POSIX-like
filesystem. filesystem.
May be called in rcu-walk mode (flags & IPERM_RCU). If in rcu-walk May be called in rcu-walk mode (flags & IPERM_FLAG_RCU). If in rcu-walk
mode, the filesystem must check the permission without blocking or mode, the filesystem must check the permission without blocking or
storing to the inode. storing to the inode.