From: Miklos Szeredi <mszeredi@xxxxxxx> Create a function sync_sb() and export it to modules. This is the generic interface for writing back dirty data from a single superblock. Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxx> --- Index: linux/fs/fs-writeback.c =================================================================== --- linux.orig/fs/fs-writeback.c 2007-02-27 14:40:54.000000000 +0100 +++ linux/fs/fs-writeback.c 2007-02-27 14:41:12.000000000 +0100 @@ -400,6 +400,14 @@ sync_sb_inodes(struct super_block *sb, s return; /* Leave any unwritten inodes on s_io */ } +void sync_sb(struct super_block *sb, struct writeback_control *wbc) +{ + spin_lock(&inode_lock); + sync_sb_inodes(sb, wbc); + spin_unlock(&inode_lock); +} +EXPORT_SYMBOL(sync_sb); + /* * Start writeback of dirty pagecache data against all unlocked inodes. * Index: linux/include/linux/fs.h =================================================================== --- linux.orig/include/linux/fs.h 2007-02-27 14:41:09.000000000 +0100 +++ linux/include/linux/fs.h 2007-02-27 14:41:12.000000000 +0100 @@ -1240,6 +1240,7 @@ static inline void file_accessed(struct } int sync_inode(struct inode *inode, struct writeback_control *wbc); +void sync_sb(struct super_block *sb, struct writeback_control *wbc); /** * struct export_operations - for nfsd to communicate with file systems -- - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html