diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/buffer_head.h | 12 | ||||
| -rw-r--r-- | include/linux/fs.h | 14 | ||||
| -rw-r--r-- | include/linux/fs_struct.h | 10 | ||||
| -rw-r--r-- | include/linux/mnt_namespace.h | 2 | ||||
| -rw-r--r-- | include/linux/mpage.h | 10 | ||||
| -rw-r--r-- | include/linux/nsproxy.h | 1 | ||||
| -rw-r--r-- | include/linux/sched.h | 3 |
7 files changed, 24 insertions, 28 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 3d7bcde2e332..7b73bb8f1970 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -332,22 +332,10 @@ extern int __set_page_dirty_buffers(struct page *page); | |||
| 332 | 332 | ||
| 333 | static inline void buffer_init(void) {} | 333 | static inline void buffer_init(void) {} |
| 334 | static inline int try_to_free_buffers(struct page *page) { return 1; } | 334 | static inline int try_to_free_buffers(struct page *page) { return 1; } |
| 335 | static inline int sync_blockdev(struct block_device *bdev) { return 0; } | ||
| 336 | static inline int inode_has_buffers(struct inode *inode) { return 0; } | 335 | static inline int inode_has_buffers(struct inode *inode) { return 0; } |
| 337 | static inline void invalidate_inode_buffers(struct inode *inode) {} | 336 | static inline void invalidate_inode_buffers(struct inode *inode) {} |
| 338 | static inline int remove_inode_buffers(struct inode *inode) { return 1; } | 337 | static inline int remove_inode_buffers(struct inode *inode) { return 1; } |
| 339 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } | 338 | static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; } |
| 340 | static inline void invalidate_bdev(struct block_device *bdev) {} | ||
| 341 | |||
| 342 | static inline struct super_block *freeze_bdev(struct block_device *sb) | ||
| 343 | { | ||
| 344 | return NULL; | ||
| 345 | } | ||
| 346 | |||
| 347 | static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) | ||
| 348 | { | ||
| 349 | return 0; | ||
| 350 | } | ||
| 351 | 339 | ||
| 352 | #endif /* CONFIG_BLOCK */ | 340 | #endif /* CONFIG_BLOCK */ |
| 353 | #endif /* _LINUX_BUFFER_HEAD_H */ | 341 | #endif /* _LINUX_BUFFER_HEAD_H */ |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 61211ad823fe..a09e17c8f5fd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1741,6 +1741,8 @@ extern void drop_collected_mounts(struct vfsmount *); | |||
| 1741 | 1741 | ||
| 1742 | extern int vfs_statfs(struct dentry *, struct kstatfs *); | 1742 | extern int vfs_statfs(struct dentry *, struct kstatfs *); |
| 1743 | 1743 | ||
| 1744 | extern int current_umask(void); | ||
| 1745 | |||
| 1744 | /* /sys/fs */ | 1746 | /* /sys/fs */ |
| 1745 | extern struct kobject *fs_kobj; | 1747 | extern struct kobject *fs_kobj; |
| 1746 | 1748 | ||
| @@ -1885,6 +1887,18 @@ extern int fsync_super(struct super_block *); | |||
| 1885 | extern int fsync_no_super(struct block_device *); | 1887 | extern int fsync_no_super(struct block_device *); |
| 1886 | #else | 1888 | #else |
| 1887 | static inline void bd_forget(struct inode *inode) {} | 1889 | static inline void bd_forget(struct inode *inode) {} |
| 1890 | static inline int sync_blockdev(struct block_device *bdev) { return 0; } | ||
| 1891 | static inline void invalidate_bdev(struct block_device *bdev) {} | ||
| 1892 | |||
| 1893 | static inline struct super_block *freeze_bdev(struct block_device *sb) | ||
| 1894 | { | ||
| 1895 | return NULL; | ||
| 1896 | } | ||
| 1897 | |||
| 1898 | static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) | ||
| 1899 | { | ||
| 1900 | return 0; | ||
| 1901 | } | ||
| 1888 | #endif | 1902 | #endif |
| 1889 | extern const struct file_operations def_blk_fops; | 1903 | extern const struct file_operations def_blk_fops; |
| 1890 | extern const struct file_operations def_chr_fops; | 1904 | extern const struct file_operations def_chr_fops; |
diff --git a/include/linux/fs_struct.h b/include/linux/fs_struct.h index 18b467dbe278..78a05bfcd8eb 100644 --- a/include/linux/fs_struct.h +++ b/include/linux/fs_struct.h | |||
| @@ -4,12 +4,10 @@ | |||
| 4 | #include <linux/path.h> | 4 | #include <linux/path.h> |
| 5 | 5 | ||
| 6 | struct fs_struct { | 6 | struct fs_struct { |
| 7 | atomic_t count; /* This usage count is used by check_unsafe_exec() for | 7 | int users; |
| 8 | * security checking purposes - therefore it may not be | ||
| 9 | * incremented, except by clone(CLONE_FS). | ||
| 10 | */ | ||
| 11 | rwlock_t lock; | 8 | rwlock_t lock; |
| 12 | int umask; | 9 | int umask; |
| 10 | int in_exec; | ||
| 13 | struct path root, pwd; | 11 | struct path root, pwd; |
| 14 | }; | 12 | }; |
| 15 | 13 | ||
| @@ -19,6 +17,8 @@ extern void exit_fs(struct task_struct *); | |||
| 19 | extern void set_fs_root(struct fs_struct *, struct path *); | 17 | extern void set_fs_root(struct fs_struct *, struct path *); |
| 20 | extern void set_fs_pwd(struct fs_struct *, struct path *); | 18 | extern void set_fs_pwd(struct fs_struct *, struct path *); |
| 21 | extern struct fs_struct *copy_fs_struct(struct fs_struct *); | 19 | extern struct fs_struct *copy_fs_struct(struct fs_struct *); |
| 22 | extern void put_fs_struct(struct fs_struct *); | 20 | extern void free_fs_struct(struct fs_struct *); |
| 21 | extern void daemonize_fs_struct(void); | ||
| 22 | extern int unshare_fs_struct(void); | ||
| 23 | 23 | ||
| 24 | #endif /* _LINUX_FS_STRUCT_H */ | 24 | #endif /* _LINUX_FS_STRUCT_H */ |
diff --git a/include/linux/mnt_namespace.h b/include/linux/mnt_namespace.h index 830bbcd449d6..3a059298cc19 100644 --- a/include/linux/mnt_namespace.h +++ b/include/linux/mnt_namespace.h | |||
| @@ -22,6 +22,8 @@ struct proc_mounts { | |||
| 22 | int event; | 22 | int event; |
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | struct fs_struct; | ||
| 26 | |||
| 25 | extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, | 27 | extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, |
| 26 | struct fs_struct *); | 28 | struct fs_struct *); |
| 27 | extern void __put_mnt_ns(struct mnt_namespace *ns); | 29 | extern void __put_mnt_ns(struct mnt_namespace *ns); |
diff --git a/include/linux/mpage.h b/include/linux/mpage.h index 5c42821da2d1..068a0c9946af 100644 --- a/include/linux/mpage.h +++ b/include/linux/mpage.h | |||
| @@ -11,21 +11,11 @@ | |||
| 11 | */ | 11 | */ |
| 12 | #ifdef CONFIG_BLOCK | 12 | #ifdef CONFIG_BLOCK |
| 13 | 13 | ||
| 14 | struct mpage_data { | ||
| 15 | struct bio *bio; | ||
| 16 | sector_t last_block_in_bio; | ||
| 17 | get_block_t *get_block; | ||
| 18 | unsigned use_writepage; | ||
| 19 | }; | ||
| 20 | |||
| 21 | struct writeback_control; | 14 | struct writeback_control; |
| 22 | 15 | ||
| 23 | struct bio *mpage_bio_submit(int rw, struct bio *bio); | ||
| 24 | int mpage_readpages(struct address_space *mapping, struct list_head *pages, | 16 | int mpage_readpages(struct address_space *mapping, struct list_head *pages, |
| 25 | unsigned nr_pages, get_block_t get_block); | 17 | unsigned nr_pages, get_block_t get_block); |
| 26 | int mpage_readpage(struct page *page, get_block_t get_block); | 18 | int mpage_readpage(struct page *page, get_block_t get_block); |
| 27 | int __mpage_writepage(struct page *page, struct writeback_control *wbc, | ||
| 28 | void *data); | ||
| 29 | int mpage_writepages(struct address_space *mapping, | 19 | int mpage_writepages(struct address_space *mapping, |
| 30 | struct writeback_control *wbc, get_block_t get_block); | 20 | struct writeback_control *wbc, get_block_t get_block); |
| 31 | int mpage_writepage(struct page *page, get_block_t *get_block, | 21 | int mpage_writepage(struct page *page, get_block_t *get_block, |
diff --git a/include/linux/nsproxy.h b/include/linux/nsproxy.h index afad7dec1b36..7b370c7cfeff 100644 --- a/include/linux/nsproxy.h +++ b/include/linux/nsproxy.h | |||
| @@ -8,6 +8,7 @@ struct mnt_namespace; | |||
| 8 | struct uts_namespace; | 8 | struct uts_namespace; |
| 9 | struct ipc_namespace; | 9 | struct ipc_namespace; |
| 10 | struct pid_namespace; | 10 | struct pid_namespace; |
| 11 | struct fs_struct; | ||
| 11 | 12 | ||
| 12 | /* | 13 | /* |
| 13 | * A structure to contain pointers to all per-process | 14 | * A structure to contain pointers to all per-process |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 206ac003e8c0..9da5aa0771ef 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -68,7 +68,7 @@ struct sched_param { | |||
| 68 | #include <linux/smp.h> | 68 | #include <linux/smp.h> |
| 69 | #include <linux/sem.h> | 69 | #include <linux/sem.h> |
| 70 | #include <linux/signal.h> | 70 | #include <linux/signal.h> |
| 71 | #include <linux/fs_struct.h> | 71 | #include <linux/path.h> |
| 72 | #include <linux/compiler.h> | 72 | #include <linux/compiler.h> |
| 73 | #include <linux/completion.h> | 73 | #include <linux/completion.h> |
| 74 | #include <linux/pid.h> | 74 | #include <linux/pid.h> |
| @@ -97,6 +97,7 @@ struct futex_pi_state; | |||
| 97 | struct robust_list_head; | 97 | struct robust_list_head; |
| 98 | struct bio; | 98 | struct bio; |
| 99 | struct bts_tracer; | 99 | struct bts_tracer; |
| 100 | struct fs_struct; | ||
| 100 | 101 | ||
| 101 | /* | 102 | /* |
| 102 | * List of flags we want to share for kernel threads, | 103 | * List of flags we want to share for kernel threads, |
