aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 21:13:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-27 21:13:34 -0400
commit7420a8c0de8d99b201aeeab6fed16ca95ebf55a5 (patch)
tree0787800f490f98ffd41b958e52ab15732335744e /include/linux/fs.h
parent12ba8d1e9262ce81a695795410bd9ee5c9407ba1 (diff)
parent72f98e72551fad573c6cace8e8551ef094f482dd (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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 240eb1d4f87..b2a6009cba1 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 */
1124extern void locks_init_lock(struct file_lock *); 1124extern void locks_init_lock(struct file_lock *);
1125extern struct file_lock * locks_alloc_lock(void);
1125extern void locks_copy_lock(struct file_lock *, struct file_lock *); 1126extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1126extern void __locks_copy_lock(struct file_lock *, const struct file_lock *); 1127extern void __locks_copy_lock(struct file_lock *, const struct file_lock *);
1127extern void locks_remove_posix(struct file *, fl_owner_t); 1128extern 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: */
1312extern int fasync_helper(int, struct file *, int, struct fasync_struct **); 1313extern int fasync_helper(int, struct file *, int, struct fasync_struct **);
1314extern struct fasync_struct *fasync_insert_entry(int, struct file *, struct fasync_struct **, struct fasync_struct *);
1315extern int fasync_remove_entry(struct file *, struct fasync_struct **);
1316extern struct fasync_struct *fasync_alloc(void);
1317extern void fasync_free(struct fasync_struct *);
1318
1313/* can be called from interrupts */ 1319/* can be called from interrupts */
1314extern void kill_fasync(struct fasync_struct **, int, int); 1320extern void kill_fasync(struct fasync_struct **, int, int);
1315 1321