aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/Locking
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/filesystems/Locking')
-rw-r--r--Documentation/filesystems/Locking6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking
index 3d92049ae71d..4af288e38f13 100644
--- a/Documentation/filesystems/Locking
+++ b/Documentation/filesystems/Locking
@@ -472,8 +472,6 @@ locking rules:
472 All may block except for ->setlease. 472 All may block except for ->setlease.
473 No VFS locks held on entry except for ->setlease. 473 No VFS locks held on entry except for ->setlease.
474 474
475->setlease has the file_list_lock held and must not sleep.
476
477->llseek() locking has moved from llseek to the individual llseek 475->llseek() locking has moved from llseek to the individual llseek
478implementations. If your fs is not using generic_file_llseek, you 476implementations. If your fs is not using generic_file_llseek, you
479need to acquire and release the appropriate locks in your ->llseek(). 477need to acquire and release the appropriate locks in your ->llseek().
@@ -496,6 +494,10 @@ components. And there are other reasons why the current interface is a mess...
496->read on directories probably must go away - we should just enforce -EISDIR 494->read on directories probably must go away - we should just enforce -EISDIR
497in sys_read() and friends. 495in sys_read() and friends.
498 496
497->setlease operations should call generic_setlease() before or after setting
498the lease within the individual filesystem to record the result of the
499operation
500
499--------------------------- dquot_operations ------------------------------- 501--------------------------- dquot_operations -------------------------------
500prototypes: 502prototypes:
501 int (*write_dquot) (struct dquot *); 503 int (*write_dquot) (struct dquot *);