Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.9 /Documentation/filesystems/Locking

Filename:/Documentation/filesystems/Locking
Lines Added:21
Lines Deleted:8
Also changed in: (Previous) 2.6.9-final  2.6.9-rc4  2.6.9-rc3  2.6.9-rc2-bk15  2.6.9-rc2-bk14  2.6.9-rc2-bk13 
(Following) 2.6.9-bk5  2.6.9-bk6  2.6.9-bk7  2.6.10-rc1  2.6.10-rc1-bk21  2.6.10-rc1-bk22 

Location
[  2.6.9
  [  Documentation
    [  filesystems
       o  Locking

Patch

diff -Nru a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking
--- a/Documentation/filesystems/Locking   2004-10-18 14:57:03 -07:00
+++ b/Documentation/filesystems/Locking   2004-10-18 14:57:03 -07:00
@@ -90,7 +90,7 @@
    void (*destroy_inode)(struct inode *);
    void (*read_inode) (struct inode *);
    void (*dirty_inode) (struct inode *);
-   void (*write_inode) (struct inode *, int);
+   int (*write_inode) (struct inode *, int);
    void (*put_inode) (struct inode *);
    void (*drop_inode) (struct inode *);
    void (*delete_inode) (struct inode *);
@@ -276,21 +276,34 @@
 internal fs locking and real critical areas are much smaller than the areas
 filesystems protect now.
 
---------------------------- file_lock ------------------------------------
+----------------------- file_lock_operations ------------------------------
 prototypes:
-   void (*fl_notify)(struct file_lock *);   /* unblock callback */
    void (*fl_insert)(struct file_lock *);   /* lock insertion callback */
    void (*fl_remove)(struct file_lock *);   /* lock removal callback */
+   void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
+   void (*fl_release_private)(struct file_lock *);
+
 
 locking rules:
-      BKL   may block
-fl_notify:   yes   no
-fl_insert:   yes   no
-fl_remove:   yes   no
+         BKL   may block
+fl_insert:      yes   no
+fl_remove:      yes   no
+fl_copy_lock:      yes   no
+fl_release_private:   yes   yes
+
+----------------------- lock_manager_operations ---------------------------
+prototypes:
+   int (*fl_compare_owner)(struct file_lock *, struct file_lock *);
+   void (*fl_notify)(struct file_lock *);  /* unblock callback */
+
+locking rules:
+         BKL   may block
+fl_compare_owner:   yes   no
+fl_notify:      yes   no
+
    Currently only NLM provides instances of this class. None of the
 them block. If you have out-of-tree instances - please, show up. Locking
 in that area will change.
-
 --------------------------- buffer_head -----------------------------------
 prototypes:
    void (*b_end_io)(struct buffer_head *bh, int uptodate);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.