Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

locks: remove unused lm_release_private

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>

authored by

J. Bruce Fields and committed by
Linus Torvalds
068535f1 2d534926

+1 -8
-2
Documentation/filesystems/Locking
··· 359 359 int (*lm_compare_owner)(struct file_lock *, struct file_lock *); 360 360 void (*lm_notify)(struct file_lock *); /* unblock callback */ 361 361 int (*lm_grant)(struct file_lock *, struct file_lock *, int); 362 - void (*lm_release_private)(struct file_lock *); 363 362 void (*lm_break)(struct file_lock *); /* break_lease callback */ 364 363 int (*lm_change)(struct file_lock **, int); 365 364 ··· 367 368 lm_compare_owner: yes no 368 369 lm_notify: yes no 369 370 lm_grant: no no 370 - lm_release_private: maybe no 371 371 lm_break: yes no 372 372 lm_change yes no 373 373
+1 -5
fs/locks.c
··· 200 200 fl->fl_ops->fl_release_private(fl); 201 201 fl->fl_ops = NULL; 202 202 } 203 - if (fl->fl_lmops) { 204 - if (fl->fl_lmops->lm_release_private) 205 - fl->fl_lmops->lm_release_private(fl); 206 - fl->fl_lmops = NULL; 207 - } 203 + fl->fl_lmops = NULL; 208 204 209 205 } 210 206 EXPORT_SYMBOL_GPL(locks_release_private);
-1
include/linux/fs.h
··· 1162 1162 int (*lm_compare_owner)(struct file_lock *, struct file_lock *); 1163 1163 void (*lm_notify)(struct file_lock *); /* unblock callback */ 1164 1164 int (*lm_grant)(struct file_lock *, struct file_lock *, int); 1165 - void (*lm_release_private)(struct file_lock *); 1166 1165 void (*lm_break)(struct file_lock *); 1167 1166 int (*lm_change)(struct file_lock **, int); 1168 1167 };