diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 22:37:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 22:37:45 -0400 |
commit | e8bebe2f71d26871b0970ae1d9cf0ed3cdd9569d (patch) | |
tree | c0d82cbd11daaf579b74121c6641d58947091094 /include/linux/fs.h | |
parent | 6109e2ce2600e2db26cd0424bb9c6ed019723288 (diff) | |
parent | 82f3952c02add60b15eea9151d4d99b6b82066c6 (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.h | 20 |
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); | |||
1315 | extern struct list_head super_blocks; | 1315 | extern struct list_head super_blocks; |
1316 | extern spinlock_t sb_lock; | 1316 | extern 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) | ||
1320 | struct super_block { | 1318 | struct 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 | */ |
1434 | extern int file_permission(struct file *, int); | 1431 | extern int file_permission(struct file *, int); |
1435 | 1432 | extern 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); |
1784 | extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); | 1783 | extern void simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); |
1785 | int __put_super_and_need_restart(struct super_block *sb); | ||
1786 | void 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 *); | |||
1803 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, | 1800 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, |
1804 | struct vfsmount *); | 1801 | struct vfsmount *); |
1805 | extern int vfs_statfs(struct dentry *, struct kstatfs *); | 1802 | extern int vfs_statfs(struct dentry *, struct kstatfs *); |
1803 | extern int freeze_super(struct super_block *super); | ||
1804 | extern int thaw_super(struct super_block *super); | ||
1806 | 1805 | ||
1807 | extern int current_umask(void); | 1806 | extern int current_umask(void); |
1808 | 1807 | ||
@@ -2088,9 +2087,9 @@ extern int __filemap_fdatawrite_range(struct address_space *mapping, | |||
2088 | extern int filemap_fdatawrite_range(struct address_space *mapping, | 2087 | extern int filemap_fdatawrite_range(struct address_space *mapping, |
2089 | loff_t start, loff_t end); | 2088 | loff_t start, loff_t end); |
2090 | 2089 | ||
2091 | extern int vfs_fsync_range(struct file *file, struct dentry *dentry, | 2090 | extern 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); |
2093 | extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync); | 2092 | extern int vfs_fsync(struct file *file, int datasync); |
2094 | extern int generic_write_sync(struct file *file, loff_t pos, loff_t count); | 2093 | extern int generic_write_sync(struct file *file, loff_t pos, loff_t count); |
2095 | extern void sync_supers(void); | 2094 | extern void sync_supers(void); |
2096 | extern void emergency_sync(void); | 2095 | extern void emergency_sync(void); |
@@ -2330,6 +2329,7 @@ extern struct super_block *get_super(struct block_device *); | |||
2330 | extern struct super_block *get_active_super(struct block_device *bdev); | 2329 | extern struct super_block *get_active_super(struct block_device *bdev); |
2331 | extern struct super_block *user_get_super(dev_t); | 2330 | extern struct super_block *user_get_super(dev_t); |
2332 | extern void drop_super(struct super_block *sb); | 2331 | extern void drop_super(struct super_block *sb); |
2332 | extern void iterate_supers(void (*)(struct super_block *, void *), void *); | ||
2333 | 2333 | ||
2334 | extern int dcache_dir_open(struct inode *, struct file *); | 2334 | extern int dcache_dir_open(struct inode *, struct file *); |
2335 | extern int dcache_dir_close(struct inode *, struct file *); | 2335 | extern int dcache_dir_close(struct inode *, struct file *); |