diff options
author | Jan Kara <jack@suse.cz> | 2009-04-27 10:43:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:04 -0400 |
commit | c15c54f5f056ee4819da9fde59a5f2cd45445f23 (patch) | |
tree | 0b8d142f0b8d44b71bf7ff9db7a373f90d0556a3 /include | |
parent | 5cee5815d1564bbbd505fea86f4550f1efdb5cd0 (diff) |
vfs: Move syncing code from super.c to sync.c (version 4)
Move sync_filesystems(), __fsync_super(), fsync_super() from
super.c to sync.c where it fits better.
[build fixes folded]
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index f00df653cf2b..d3f7159993cf 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1942,7 +1942,6 @@ extern struct super_block *freeze_bdev(struct block_device *); | |||
1942 | extern void emergency_thaw_all(void); | 1942 | extern void emergency_thaw_all(void); |
1943 | extern int thaw_bdev(struct block_device *bdev, struct super_block *sb); | 1943 | extern int thaw_bdev(struct block_device *bdev, struct super_block *sb); |
1944 | extern int fsync_bdev(struct block_device *); | 1944 | extern int fsync_bdev(struct block_device *); |
1945 | extern int fsync_super(struct super_block *); | ||
1946 | extern int fsync_no_super(struct block_device *); | 1945 | extern int fsync_no_super(struct block_device *); |
1947 | #else | 1946 | #else |
1948 | static inline void bd_forget(struct inode *inode) {} | 1947 | static inline void bd_forget(struct inode *inode) {} |
@@ -1959,6 +1958,7 @@ static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) | |||
1959 | return 0; | 1958 | return 0; |
1960 | } | 1959 | } |
1961 | #endif | 1960 | #endif |
1961 | extern int fsync_super(struct super_block *); | ||
1962 | extern const struct file_operations def_blk_fops; | 1962 | extern const struct file_operations def_blk_fops; |
1963 | extern const struct file_operations def_chr_fops; | 1963 | extern const struct file_operations def_chr_fops; |
1964 | extern const struct file_operations bad_sock_fops; | 1964 | extern const struct file_operations bad_sock_fops; |
@@ -2077,7 +2077,6 @@ extern int filemap_fdatawrite_range(struct address_space *mapping, | |||
2077 | 2077 | ||
2078 | extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync); | 2078 | extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync); |
2079 | extern void sync_supers(void); | 2079 | extern void sync_supers(void); |
2080 | extern void sync_filesystems(int wait); | ||
2081 | extern void emergency_sync(void); | 2080 | extern void emergency_sync(void); |
2082 | extern void emergency_remount(void); | 2081 | extern void emergency_remount(void); |
2083 | extern int do_remount_sb(struct super_block *sb, int flags, | 2082 | extern int do_remount_sb(struct super_block *sb, int flags, |