aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-04-27 10:43:52 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:04 -0400
commitc15c54f5f056ee4819da9fde59a5f2cd45445f23 (patch)
tree0b8d142f0b8d44b71bf7ff9db7a373f90d0556a3 /include/linux/fs.h
parent5cee5815d1564bbbd505fea86f4550f1efdb5cd0 (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/linux/fs.h')
-rw-r--r--include/linux/fs.h3
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 *);
1942extern void emergency_thaw_all(void); 1942extern void emergency_thaw_all(void);
1943extern int thaw_bdev(struct block_device *bdev, struct super_block *sb); 1943extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
1944extern int fsync_bdev(struct block_device *); 1944extern int fsync_bdev(struct block_device *);
1945extern int fsync_super(struct super_block *);
1946extern int fsync_no_super(struct block_device *); 1945extern int fsync_no_super(struct block_device *);
1947#else 1946#else
1948static inline void bd_forget(struct inode *inode) {} 1947static 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
1961extern int fsync_super(struct super_block *);
1962extern const struct file_operations def_blk_fops; 1962extern const struct file_operations def_blk_fops;
1963extern const struct file_operations def_chr_fops; 1963extern const struct file_operations def_chr_fops;
1964extern const struct file_operations bad_sock_fops; 1964extern const struct file_operations bad_sock_fops;
@@ -2077,7 +2077,6 @@ extern int filemap_fdatawrite_range(struct address_space *mapping,
2077 2077
2078extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync); 2078extern int vfs_fsync(struct file *file, struct dentry *dentry, int datasync);
2079extern void sync_supers(void); 2079extern void sync_supers(void);
2080extern void sync_filesystems(int wait);
2081extern void emergency_sync(void); 2080extern void emergency_sync(void);
2082extern void emergency_remount(void); 2081extern void emergency_remount(void);
2083extern int do_remount_sb(struct super_block *sb, int flags, 2082extern int do_remount_sb(struct super_block *sb, int flags,