locks: remove fl_copy_lock lock_manager operation

This one was only used for a nasty hack in nfsd, which has recently
been removed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Christoph Hellwig and committed by Linus Torvalds bb8430a2 51ee4b84

+1 -7
-2
Documentation/filesystems/Locking
··· 322 322 prototypes: 323 323 int (*fl_compare_owner)(struct file_lock *, struct file_lock *); 324 324 void (*fl_notify)(struct file_lock *); /* unblock callback */ 325 - void (*fl_copy_lock)(struct file_lock *, struct file_lock *); 326 325 void (*fl_release_private)(struct file_lock *); 327 326 void (*fl_break)(struct file_lock *); /* break_lease callback */ 328 327 ··· 329 330 BKL may block 330 331 fl_compare_owner: yes no 331 332 fl_notify: yes no 332 - fl_copy_lock: yes no 333 333 fl_release_private: yes yes 334 334 fl_break: yes no 335 335
+1 -4
fs/locks.c
··· 235 235 fl->fl_ops->fl_copy_lock(new, fl); 236 236 new->fl_ops = fl->fl_ops; 237 237 } 238 - if (fl->fl_lmops) { 239 - if (fl->fl_lmops->fl_copy_lock) 240 - fl->fl_lmops->fl_copy_lock(new, fl); 238 + if (fl->fl_lmops) 241 239 new->fl_lmops = fl->fl_lmops; 242 - } 243 240 } 244 241 245 242 /*
-1
include/linux/fs.h
··· 1056 1056 int (*fl_compare_owner)(struct file_lock *, struct file_lock *); 1057 1057 void (*fl_notify)(struct file_lock *); /* unblock callback */ 1058 1058 int (*fl_grant)(struct file_lock *, struct file_lock *, int); 1059 - void (*fl_copy_lock)(struct file_lock *, struct file_lock *); 1060 1059 void (*fl_release_private)(struct file_lock *); 1061 1060 void (*fl_break)(struct file_lock *); 1062 1061 int (*fl_mylease)(struct file_lock *, struct file_lock *);