diff options
author | Miklos Szeredi <[email protected]> | 2008-07-25 01:48:58 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-07-25 10:53:48 -0700 |
commit | 764c76b371722e0cba5c24d91225f0f954b69d44 (patch) | |
tree | 3f9bd533878f502b1235194b50a101a84a7c68be /fs/jbd2/commit.c | |
parent | b648a6de00770cc325c22f43bdd4e935f6a2ee55 (diff) |
locks: allow ->lock() to return FILE_LOCK_DEFERRED
Allow filesystem's ->lock() method to call posix_lock_file() instead of
posix_lock_file_wait(), and return FILE_LOCK_DEFERRED. This makes it
possible to implement a such a ->lock() function, that works with the lock
manager, which needs the call to be asynchronous.
Now the vfs_lock_file() helper can be used, so this is a cleanup as well.
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: "J. Bruce Fields" <[email protected]>
Cc: Trond Myklebust <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: David Teigland <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions