diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:13:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:13:34 -0400 |
commit | 7420a8c0de8d99b201aeeab6fed16ca95ebf55a5 (patch) | |
tree | 0787800f490f98ffd41b958e52ab15732335744e /include/linux/fs.h | |
parent | 12ba8d1e9262ce81a695795410bd9ee5c9407ba1 (diff) | |
parent | 72f98e72551fad573c6cace8e8551ef094f482dd (diff) |
Merge branch 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
* 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
locks: turn lock_flocks into a spinlock
fasync: re-organize fasync entry insertion to allow it under a spinlock
locks/nfsd: allocate file lock outside of spinlock
lockd: fix nlmsvc_notify_blocked locking
lockd: push lock_flocks down
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 240eb1d4f876..b2a6009cba10 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1122,6 +1122,7 @@ extern int fcntl_getlease(struct file *filp); | |||
1122 | 1122 | ||
1123 | /* fs/locks.c */ | 1123 | /* fs/locks.c */ |
1124 | extern void locks_init_lock(struct file_lock *); | 1124 | extern void locks_init_lock(struct file_lock *); |
1125 | extern struct file_lock * locks_alloc_lock(void); | ||
1125 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); | 1126 | extern void locks_copy_lock(struct file_lock *, struct file_lock *); |
1126 | extern void __locks_copy_lock(struct file_lock *, const struct file_lock *); | 1127 | extern void __locks_copy_lock(struct file_lock *, const struct file_lock *); |
1127 | extern void locks_remove_posix(struct file *, fl_owner_t); | 1128 | extern void locks_remove_posix(struct file *, fl_owner_t); |
@@ -1310,6 +1311,11 @@ struct fasync_struct { | |||
1310 | 1311 | ||
1311 | /* SMP safe fasync helpers: */ | 1312 | /* SMP safe fasync helpers: */ |
1312 | extern int fasync_helper(int, struct file *, int, struct fasync_struct **); | 1313 | extern int fasync_helper(int, struct file *, int, struct fasync_struct **); |
1314 | extern struct fasync_struct *fasync_insert_entry(int, struct file *, struct fasync_struct **, struct fasync_struct *); | ||
1315 | extern int fasync_remove_entry(struct file *, struct fasync_struct **); | ||
1316 | extern struct fasync_struct *fasync_alloc(void); | ||
1317 | extern void fasync_free(struct fasync_struct *); | ||
1318 | |||
1313 | /* can be called from interrupts */ | 1319 | /* can be called from interrupts */ |
1314 | extern void kill_fasync(struct fasync_struct **, int, int); | 1320 | extern void kill_fasync(struct fasync_struct **, int, int); |
1315 | 1321 | ||