aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 22:37:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-21 22:37:45 -0400
commite8bebe2f71d26871b0970ae1d9cf0ed3cdd9569d (patch)
treec0d82cbd11daaf579b74121c6641d58947091094 /include/linux/fs.h
parent6109e2ce2600e2db26cd0424bb9c6ed019723288 (diff)
parent82f3952c02add60b15eea9151d4d99b6b82066c6 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (69 commits) fix handling of offsets in cris eeprom.c, get rid of fake on-stack files get rid of home-grown mutex in cris eeprom.c switch ecryptfs_write() to struct inode *, kill on-stack fake files switch ecryptfs_get_locked_page() to struct inode * simplify access to ecryptfs inodes in ->readpage() and friends AFS: Don't put struct file on the stack Ban ecryptfs over ecryptfs logfs: replace inode uid,gid,mode initialization with helper function ufs: replace inode uid,gid,mode initialization with helper function udf: replace inode uid,gid,mode init with helper ubifs: replace inode uid,gid,mode initialization with helper function sysv: replace inode uid,gid,mode initialization with helper function reiserfs: replace inode uid,gid,mode initialization with helper function ramfs: replace inode uid,gid,mode initialization with helper function omfs: replace inode uid,gid,mode initialization with helper function bfs: replace inode uid,gid,mode initialization with helper function ocfs2: replace inode uid,gid,mode initialization with helper function nilfs2: replace inode uid,gid,mode initialization with helper function minix: replace inode uid,gid,mode init with helper ext4: replace inode uid,gid,mode init with helper ... Trivial conflict in fs/fs-writeback.c (mark bitfields unsigned)
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1775d362732d..b336cb9ca9a0 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1315,8 +1315,6 @@ extern int send_sigurg(struct fown_struct *fown);
1315extern struct list_head super_blocks; 1315extern struct list_head super_blocks;
1316extern spinlock_t sb_lock; 1316extern spinlock_t sb_lock;
1317 1317
1318#define sb_entry(list) list_entry((list), struct super_block, s_list)
1319#define S_BIAS (1<<30)
1320struct super_block { 1318struct super_block {
1321 struct list_head s_list; /* Keep this first */ 1319 struct list_head s_list; /* Keep this first */
1322 dev_t s_dev; /* search index; _not_ kdev_t */ 1320 dev_t s_dev; /* search index; _not_ kdev_t */
@@ -1335,12 +1333,11 @@ struct super_block {
1335 struct rw_semaphore s_umount; 1333 struct rw_semaphore s_umount;
1336 struct mutex s_lock; 1334 struct mutex s_lock;
1337 int s_count; 1335 int s_count;
1338 int s_need_sync;
1339 atomic_t s_active; 1336 atomic_t s_active;
1340#ifdef CONFIG_SECURITY 1337#ifdef CONFIG_SECURITY
1341 void *s_security; 1338 void *s_security;
1342#endif 1339#endif
1343 struct xattr_handler **s_xattr; 1340 const struct xattr_handler **s_xattr;
1344 1341
1345 struct list_head s_inodes; /* all inodes */ 1342 struct list_head s_inodes; /* all inodes */
1346 struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ 1343 struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */
@@ -1432,7 +1429,8 @@ extern void dentry_unhash(struct dentry *dentry);
1432 * VFS file helper functions. 1429 * VFS file helper functions.
1433 */ 1430 */
1434extern int file_permission(struct file *, int); 1431extern int file_permission(struct file *, int);
1435 1432extern void inode_init_owner(struct inode *inode, const struct inode *dir,
1433 mode_t mode);
1436/* 1434/*
1437 * VFS FS_IOC_FIEMAP helper definitions. 1435 * VFS FS_IOC_FIEMAP helper definitions.
1438 */ 1436 */
@@ -1745,6 +1743,7 @@ struct file_system_type {
1745 1743
1746 struct lock_class_key s_lock_key; 1744 struct lock_class_key s_lock_key;
1747 struct lock_class_key s_umount_key; 1745 struct lock_class_key s_umount_key;
1746 struct lock_class_key s_vfs_rename_key;
1748 1747
1749 struct lock_class_key i_lock_key; 1748 struct lock_class_key i_lock_key;
1750 struct lock_class_key i_mutex_key; 1749 struct lock_class_key i_mutex_key;
@@ -1782,8 +1781,6 @@ extern int get_sb_pseudo(struct file_system_type *, char *,
1782 const struct super_operations *ops, unsigned long, 1781 const struct super_operations *ops, unsigned long,
1783 struct vfsmount *mnt); 1782 struct vfsmount *mnt);
1784extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); 1783extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
1785int __put_super_and_need_restart(struct super_block *sb);
1786void put_super(struct super_block *sb);
1787 1784
1788/* Alas, no aliases. Too much hassle with bringing module.h everywhere */ 1785/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
1789#define fops_get(fops) \ 1786#define fops_get(fops) \
@@ -1803,6 +1800,8 @@ extern void drop_collected_mounts(struct vfsmount *);
1803extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, 1800extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *,
1804 struct vfsmount *); 1801 struct vfsmount *);
1805extern int vfs_statfs(struct dentry *, struct kstatfs *); 1802extern int vfs_statfs(struct dentry *, struct kstatfs *);
1803extern int freeze_super(struct super_block *super);
1804extern int thaw_super(struct super_block *super);
1806 1805
1807extern int current_umask(void); 1806extern int current_umask(void);
1808 1807
@@ -2088,9 +2087,9 @@ extern int __filemap_fdatawrite_range(struct address_space *mapping,
2088extern int filemap_fdatawrite_range(struct address_space *mapping, 2087extern int filemap_fdatawrite_range(struct address_space *mapping,
2089 loff_t start, loff_t end); 2088 loff_t start, loff_t end);
2090 2089
2091extern int vfs_fsync_range(struct file *file, struct dentry *dentry, 2090extern int vfs_fsync_range(struct file *file, loff_t start, loff_t end,
2092 loff_t start, loff_t end, int datasync); 2091 int datasync);
2093extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync); 2092extern int vfs_fsync(struct file *file, int datasync);
2094extern int generic_write_sync(struct file *file, loff_t pos, loff_t count); 2093extern int generic_write_sync(struct file *file, loff_t pos, loff_t count);
2095extern void sync_supers(void); 2094extern void sync_supers(void);
2096extern void emergency_sync(void); 2095extern void emergency_sync(void);
@@ -2330,6 +2329,7 @@ extern struct super_block *get_super(struct block_device *);
2330extern struct super_block *get_active_super(struct block_device *bdev); 2329extern struct super_block *get_active_super(struct block_device *bdev);
2331extern struct super_block *user_get_super(dev_t); 2330extern struct super_block *user_get_super(dev_t);
2332extern void drop_super(struct super_block *sb); 2331extern void drop_super(struct super_block *sb);
2332extern void iterate_supers(void (*)(struct super_block *, void *), void *);
2333 2333
2334extern int dcache_dir_open(struct inode *, struct file *); 2334extern int dcache_dir_open(struct inode *, struct file *);
2335extern int dcache_dir_close(struct inode *, struct file *); 2335extern int dcache_dir_close(struct inode *, struct file *);