summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-06-09 16:40:38 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2008-06-23 11:52:30 -0400
commitf9f48ec72bfc9489a30bc6ddbfcf27d86a8bc651 (patch)
treeb04720f8c5eaf69a94d134793ff83b78324142fa /fs
parent694a1764d657e0f7a9b139bc7269c8d5f5a2534b (diff)
downloadlinux-f9f48ec72bfc9489a30bc6ddbfcf27d86a8bc651.tar.bz2
[patch 4/4] flock: remove unused fields from file_lock_operations
fl_insert and fl_remove are not used right now in the kernel. Remove them. Signed-off-by: Denis V. Lunev <den@openvz.org> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/locks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 11dbf08651b7..dce8c747371c 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -561,9 +561,6 @@ static void locks_insert_lock(struct file_lock **pos, struct file_lock *fl)
/* insert into file's list */
fl->fl_next = *pos;
*pos = fl;
-
- if (fl->fl_ops && fl->fl_ops->fl_insert)
- fl->fl_ops->fl_insert(fl);
}
/*
@@ -586,9 +583,6 @@ static void locks_delete_lock(struct file_lock **thisfl_p)
fl->fl_fasync = NULL;
}
- if (fl->fl_ops && fl->fl_ops->fl_remove)
- fl->fl_ops->fl_remove(fl);
-
if (fl->fl_nspid) {
put_pid(fl->fl_nspid);
fl->fl_nspid = NULL;