aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 215696a0f16f..5adf32b90f36 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -65,6 +65,11 @@ extern int dir_notify_enable;
65#define FMODE_PREAD 8 65#define FMODE_PREAD 8
66#define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */ 66#define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */
67 67
68/* File is being opened for execution. Primary users of this flag are
69 distributed filesystems that can use it to achieve correct ETXTBUSY
70 behavior for cross-node execution/opening_for_writing of files */
71#define FMODE_EXEC 16
72
68#define RW_MASK 1 73#define RW_MASK 1
69#define RWA_MASK 2 74#define RWA_MASK 2
70#define READ 0 75#define READ 0
@@ -673,7 +678,6 @@ extern spinlock_t files_lock;
673#define FL_POSIX 1 678#define FL_POSIX 1
674#define FL_FLOCK 2 679#define FL_FLOCK 2
675#define FL_ACCESS 8 /* not trying to lock, just looking */ 680#define FL_ACCESS 8 /* not trying to lock, just looking */
676#define FL_LOCKD 16 /* lock held by rpc.lockd */
677#define FL_LEASE 32 /* lease held on this file */ 681#define FL_LEASE 32 /* lease held on this file */
678#define FL_SLEEP 128 /* A blocking lock */ 682#define FL_SLEEP 128 /* A blocking lock */
679 683
@@ -737,8 +741,6 @@ struct file_lock {
737#define OFFT_OFFSET_MAX INT_LIMIT(off_t) 741#define OFFT_OFFSET_MAX INT_LIMIT(off_t)
738#endif 742#endif
739 743
740extern struct list_head file_lock_list;
741
742#include <linux/fcntl.h> 744#include <linux/fcntl.h>
743 745
744extern int fcntl_getlk(struct file *, struct flock __user *); 746extern int fcntl_getlk(struct file *, struct flock __user *);
@@ -760,10 +762,9 @@ extern void locks_init_lock(struct file_lock *);
760extern void locks_copy_lock(struct file_lock *, struct file_lock *); 762extern void locks_copy_lock(struct file_lock *, struct file_lock *);
761extern void locks_remove_posix(struct file *, fl_owner_t); 763extern void locks_remove_posix(struct file *, fl_owner_t);
762extern void locks_remove_flock(struct file *); 764extern void locks_remove_flock(struct file *);
763extern struct file_lock *posix_test_lock(struct file *, struct file_lock *); 765extern int posix_test_lock(struct file *, struct file_lock *, struct file_lock *);
764extern int posix_lock_file(struct file *, struct file_lock *); 766extern int posix_lock_file(struct file *, struct file_lock *);
765extern int posix_lock_file_wait(struct file *, struct file_lock *); 767extern int posix_lock_file_wait(struct file *, struct file_lock *);
766extern void posix_block_lock(struct file_lock *, struct file_lock *);
767extern int posix_unblock_lock(struct file *, struct file_lock *); 768extern int posix_unblock_lock(struct file *, struct file_lock *);
768extern int posix_locks_deadlock(struct file_lock *, struct file_lock *); 769extern int posix_locks_deadlock(struct file_lock *, struct file_lock *);
769extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl); 770extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl);
@@ -1092,6 +1093,7 @@ struct super_operations {
1092 void (*umount_begin) (struct super_block *); 1093 void (*umount_begin) (struct super_block *);
1093 1094
1094 int (*show_options)(struct seq_file *, struct vfsmount *); 1095 int (*show_options)(struct seq_file *, struct vfsmount *);
1096 int (*show_stats)(struct seq_file *, struct vfsmount *);
1095 1097
1096 ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t); 1098 ssize_t (*quota_read)(struct super_block *, int, char *, size_t, loff_t);
1097 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t); 1099 ssize_t (*quota_write)(struct super_block *, int, const char *, size_t, loff_t);
@@ -1558,7 +1560,6 @@ extern void destroy_inode(struct inode *);
1558extern struct inode *new_inode(struct super_block *); 1560extern struct inode *new_inode(struct super_block *);
1559extern int remove_suid(struct dentry *); 1561extern int remove_suid(struct dentry *);
1560extern void remove_dquot_ref(struct super_block *, int, struct list_head *); 1562extern void remove_dquot_ref(struct super_block *, int, struct list_head *);
1561extern struct mutex iprune_mutex;
1562 1563
1563extern void __insert_inode_hash(struct inode *, unsigned long hashval); 1564extern void __insert_inode_hash(struct inode *, unsigned long hashval);
1564extern void remove_inode_hash(struct inode *); 1565extern void remove_inode_hash(struct inode *);