locks: remove unused lm_release_private
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 1 Aug 2012 11:56:16 +0000 (07:56 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Aug 2012 16:01:46 +0000 (09:01 -0700)
In commit 3b6e2723f32d ("locks: prevent side-effects of
locks_release_private before file_lock is initialized") we removed the
last user of lm_release_private without removing the field itself.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/filesystems/Locking
fs/locks.c
include/linux/fs.h

index 2db1900d7538eb5f8c02acc15391556f29357ab2..7f647e17830cc097023fa6fea5b14ac971da6437 100644 (file)
@@ -359,7 +359,6 @@ prototypes:
        int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
        void (*lm_notify)(struct file_lock *);  /* unblock callback */
        int (*lm_grant)(struct file_lock *, struct file_lock *, int);
-       void (*lm_release_private)(struct file_lock *);
        void (*lm_break)(struct file_lock *); /* break_lease callback */
        int (*lm_change)(struct file_lock **, int);
 
@@ -368,7 +367,6 @@ locking rules:
 lm_compare_owner:      yes             no
 lm_notify:             yes             no
 lm_grant:              no              no
-lm_release_private:    maybe           no
 lm_break:              yes             no
 lm_change              yes             no
 
index cdcf219a7391a0c5097ad0e74fb3a5ea6debdc92..7e81bfc751644b0cfb70c9c4291ab6e7fb644ea3 100644 (file)
@@ -200,11 +200,7 @@ void locks_release_private(struct file_lock *fl)
                        fl->fl_ops->fl_release_private(fl);
                fl->fl_ops = NULL;
        }
-       if (fl->fl_lmops) {
-               if (fl->fl_lmops->lm_release_private)
-                       fl->fl_lmops->lm_release_private(fl);
-               fl->fl_lmops = NULL;
-       }
+       fl->fl_lmops = NULL;
 
 }
 EXPORT_SYMBOL_GPL(locks_release_private);
index d7eed5b98ae2a573efcdc4a17822bafb7bcf6189..4ba5c871552352deb7644c5607287d632c49fbe1 100644 (file)
@@ -1162,7 +1162,6 @@ struct lock_manager_operations {
        int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
        void (*lm_notify)(struct file_lock *);  /* unblock callback */
        int (*lm_grant)(struct file_lock *, struct file_lock *, int);
-       void (*lm_release_private)(struct file_lock *);
        void (*lm_break)(struct file_lock *);
        int (*lm_change)(struct file_lock **, int);
 };