aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h20
-rw-r--r--include/linux/generic_acl.h4
-rw-r--r--include/linux/ramfs.h3
-rw-r--r--include/linux/reiserfs_acl.h4
-rw-r--r--include/linux/reiserfs_xattr.h6
-rw-r--r--include/linux/xattr.h2
6 files changed, 20 insertions, 19 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1775d362732..b336cb9ca9a 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 *);
diff --git a/include/linux/generic_acl.h b/include/linux/generic_acl.h
index ca666d18ed6..574bea4013b 100644
--- a/include/linux/generic_acl.h
+++ b/include/linux/generic_acl.h
@@ -5,8 +5,8 @@
5 5
6struct inode; 6struct inode;
7 7
8extern struct xattr_handler generic_acl_access_handler; 8extern const struct xattr_handler generic_acl_access_handler;
9extern struct xattr_handler generic_acl_default_handler; 9extern const struct xattr_handler generic_acl_default_handler;
10 10
11int generic_acl_init(struct inode *, struct inode *); 11int generic_acl_init(struct inode *, struct inode *);
12int generic_acl_chmod(struct inode *); 12int generic_acl_chmod(struct inode *);
diff --git a/include/linux/ramfs.h b/include/linux/ramfs.h
index 8600508c77a..e7320b5e82f 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
4struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev); 4struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
5 int mode, dev_t dev);
5extern int ramfs_get_sb(struct file_system_type *fs_type, 6extern 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 b4448853900..3fd8c4506bb 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);
55int reiserfs_cache_default_acl(struct inode *dir); 55int reiserfs_cache_default_acl(struct inode *dir);
56extern struct xattr_handler reiserfs_posix_acl_default_handler; 56extern const struct xattr_handler reiserfs_posix_acl_default_handler;
57extern struct xattr_handler reiserfs_posix_acl_access_handler; 57extern 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 7fa02b4af83..b2cf2089769 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
61extern struct xattr_handler reiserfs_xattr_user_handler; 61extern const struct xattr_handler reiserfs_xattr_user_handler;
62extern struct xattr_handler reiserfs_xattr_trusted_handler; 62extern const struct xattr_handler reiserfs_xattr_trusted_handler;
63extern struct xattr_handler reiserfs_xattr_security_handler; 63extern const struct xattr_handler reiserfs_xattr_security_handler;
64#ifdef CONFIG_REISERFS_FS_SECURITY 64#ifdef CONFIG_REISERFS_FS_SECURITY
65int reiserfs_security_init(struct inode *dir, struct inode *inode, 65int 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 fb9b7e6e1e2..0cfa1e9c4cc 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -37,7 +37,7 @@ struct inode;
37struct dentry; 37struct dentry;
38 38
39struct xattr_handler { 39struct 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);