summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2002-06-04 19:41:32 -0700
committerRussell King <rmk@flint.arm.linux.org.uk>2002-06-04 19:41:32 -0700
commit167cd4dfc4a68c34e45e77d828ad05e15f1e873f (patch)
tree99cd508c8cd84c5d98700519876824bbfc1f7bdd /include/linux
parent726efabdb1d70977d209fc2a7dae4dc1651c2087 (diff)
[PATCH] fcntl_[sg]etlk() only need the file *
Another simple part of a Matthew Wilcox patch. We do not need to pass the file descriptor to the fcntl_[sg]etlk functions, only the struct file * which we have already got from the file descriptor and verified.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index b85ad43e6549..4a612a1c3c0a 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -576,11 +576,11 @@ extern struct list_head file_lock_list;
#include <linux/fcntl.h>
-extern int fcntl_getlk(unsigned int, struct flock *);
-extern int fcntl_setlk(unsigned int, unsigned int, struct flock *);
+extern int fcntl_getlk(struct file *, struct flock *);
+extern int fcntl_setlk(struct file *, unsigned int, struct flock *);
-extern int fcntl_getlk64(unsigned int, struct flock64 *);
-extern int fcntl_setlk64(unsigned int, unsigned int, struct flock64 *);
+extern int fcntl_getlk64(struct file *, struct flock64 *);
+extern int fcntl_setlk64(struct file *, unsigned int, struct flock64 *);
/* fs/locks.c */
extern void locks_init_lock(struct file_lock *);