summaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2012-08-01 07:56:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-08-01 09:01:46 -0700
commit068535f1fef4c90aee23eb7b9b9a71c5b72d7cd0 (patch)
treeca71858417d881bc8f72f4a2a7b035d041f7a43c /fs/locks.c
parent2d534926205db9ffce4bbbde67cb9b2cee4b835c (diff)
downloadlinux-068535f1fef4c90aee23eb7b9b9a71c5b72d7cd0.tar.bz2
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>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/locks.c b/fs/locks.c
index cdcf219a7391..7e81bfc75164 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -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);