diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-08-23 02:50:48 +0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-10-07 22:06:13 +0400 |
commit | f82b4b6780afabce9d9a91c84fae17ec3d63b9d7 (patch) | |
tree | 525f28ccf756579147d7d498734a057b859e2215 /Documentation/filesystems/vfs.txt | |
parent | 1c7dd2ff430fa14b45c9def54468e3a25ab8342b (diff) | |
download | linux-f82b4b6780afabce9d9a91c84fae17ec3d63b9d7.tar.xz |
locks: move i_lock acquisition into generic_*_lease handlers
Now that we have a saner internal API for managing leases, we no longer
need to mandate that the inode->i_lock be held over most of the lease
code. Push it down into generic_add_lease and generic_delete_lease.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/filesystems/vfs.txt')
-rw-r--r-- | Documentation/filesystems/vfs.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 28ebd49f169f..8be1ea3bdd5a 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt @@ -895,8 +895,9 @@ otherwise noted. splice_read: called by the VFS to splice data from file to a pipe. This method is used by the splice(2) system call - setlease: called by the VFS to set or release a file lock lease. - setlease has the file_lock_lock held and must not sleep. + setlease: called by the VFS to set or release a file lock lease. setlease + implementations should call generic_setlease to record or remove + the lease in the inode after setting it. fallocate: called by the VFS to preallocate blocks or punch a hole. |