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 | |
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')
-rw-r--r-- | include/linux/fs.h | 20 | ||||
-rw-r--r-- | include/linux/generic_acl.h | 4 | ||||
-rw-r--r-- | include/linux/ramfs.h | 3 | ||||
-rw-r--r-- | include/linux/reiserfs_acl.h | 4 | ||||
-rw-r--r-- | include/linux/reiserfs_xattr.h | 6 | ||||
-rw-r--r-- | include/linux/xattr.h | 2 |
6 files changed, 20 insertions, 19 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 *); |
diff --git a/include/linux/generic_acl.h b/include/linux/generic_acl.h index ca666d18ed67..574bea4013b6 100644 --- a/include/linux/generic_acl.h +++ b/include/linux/generic_acl.h | |||
@@ -5,8 +5,8 @@ | |||
5 | 5 | ||
6 | struct inode; | 6 | struct inode; |
7 | 7 | ||
8 | extern struct xattr_handler generic_acl_access_handler; | 8 | extern const struct xattr_handler generic_acl_access_handler; |
9 | extern struct xattr_handler generic_acl_default_handler; | 9 | extern const struct xattr_handler generic_acl_default_handler; |
10 | 10 | ||
11 | int generic_acl_init(struct inode *, struct inode *); | 11 | int generic_acl_init(struct inode *, struct inode *); |
12 | int generic_acl_chmod(struct inode *); | 12 | int generic_acl_chmod(struct inode *); |
diff --git a/include/linux/ramfs.h b/include/linux/ramfs.h index 8600508c77a6..e7320b5e82fb 100644 --- a/include/linux/ramfs.h +++ b/include/linux/ramfs.h | |||
@@ -1,7 +1,8 @@ | |||
1 | #ifndef _LINUX_RAMFS_H | 1 | #ifndef _LINUX_RAMFS_H |
2 | #define _LINUX_RAMFS_H | 2 | #define _LINUX_RAMFS_H |
3 | 3 | ||
4 | struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev); | 4 | struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, |
5 | int mode, dev_t dev); | ||
5 | extern int ramfs_get_sb(struct file_system_type *fs_type, | 6 | extern int ramfs_get_sb(struct file_system_type *fs_type, |
6 | int flags, const char *dev_name, void *data, struct vfsmount *mnt); | 7 | int flags, const char *dev_name, void *data, struct vfsmount *mnt); |
7 | 8 | ||
diff --git a/include/linux/reiserfs_acl.h b/include/linux/reiserfs_acl.h index b4448853900e..3fd8c4506bbb 100644 --- a/include/linux/reiserfs_acl.h +++ b/include/linux/reiserfs_acl.h | |||
@@ -53,8 +53,8 @@ int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, | |||
53 | struct inode *dir, struct dentry *dentry, | 53 | struct inode *dir, struct dentry *dentry, |
54 | struct inode *inode); | 54 | struct inode *inode); |
55 | int reiserfs_cache_default_acl(struct inode *dir); | 55 | int reiserfs_cache_default_acl(struct inode *dir); |
56 | extern struct xattr_handler reiserfs_posix_acl_default_handler; | 56 | extern const struct xattr_handler reiserfs_posix_acl_default_handler; |
57 | extern struct xattr_handler reiserfs_posix_acl_access_handler; | 57 | extern const struct xattr_handler reiserfs_posix_acl_access_handler; |
58 | 58 | ||
59 | #else | 59 | #else |
60 | 60 | ||
diff --git a/include/linux/reiserfs_xattr.h b/include/linux/reiserfs_xattr.h index 7fa02b4af838..b2cf2089769b 100644 --- a/include/linux/reiserfs_xattr.h +++ b/include/linux/reiserfs_xattr.h | |||
@@ -58,9 +58,9 @@ int reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *, | |||
58 | struct inode *, const char *, const void *, | 58 | struct inode *, const char *, const void *, |
59 | size_t, int); | 59 | size_t, int); |
60 | 60 | ||
61 | extern struct xattr_handler reiserfs_xattr_user_handler; | 61 | extern const struct xattr_handler reiserfs_xattr_user_handler; |
62 | extern struct xattr_handler reiserfs_xattr_trusted_handler; | 62 | extern const struct xattr_handler reiserfs_xattr_trusted_handler; |
63 | extern struct xattr_handler reiserfs_xattr_security_handler; | 63 | extern const struct xattr_handler reiserfs_xattr_security_handler; |
64 | #ifdef CONFIG_REISERFS_FS_SECURITY | 64 | #ifdef CONFIG_REISERFS_FS_SECURITY |
65 | int reiserfs_security_init(struct inode *dir, struct inode *inode, | 65 | int reiserfs_security_init(struct inode *dir, struct inode *inode, |
66 | struct reiserfs_security_handle *sec); | 66 | struct reiserfs_security_handle *sec); |
diff --git a/include/linux/xattr.h b/include/linux/xattr.h index fb9b7e6e1e2d..0cfa1e9c4cc1 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h | |||
@@ -37,7 +37,7 @@ struct inode; | |||
37 | struct dentry; | 37 | struct dentry; |
38 | 38 | ||
39 | struct xattr_handler { | 39 | struct xattr_handler { |
40 | char *prefix; | 40 | const char *prefix; |
41 | int flags; /* fs private flags passed back to the handlers */ | 41 | int flags; /* fs private flags passed back to the handlers */ |
42 | size_t (*list)(struct dentry *dentry, char *list, size_t list_size, | 42 | size_t (*list)(struct dentry *dentry, char *list, size_t list_size, |
43 | const char *name, size_t name_len, int handler_flags); | 43 | const char *name, size_t name_len, int handler_flags); |