Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Export sync_filesystem() for modular ->remount_fs() use

This patch changes sync_filesystem() to be EXPORT_SYMBOL().

The reason this is needed is that starting with 3.15 kernel, due to
Theodore Ts'o's commit 02b9984d6408 ("fs: push sync_filesystem() down to
the file system's remount_fs()"), all file systems that have dirty data
to be written out need to call sync_filesystem() from their
->remount_fs() method when remounting read-only.

As this is now a generically required function rather than an internal
only function it should be EXPORT_SYMBOL() so that all file systems can
call it.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Anton Altaparmakov and committed by
Linus Torvalds
10096fb1 8e6353bb

+1 -1
+1 -1
fs/sync.c
··· 65 65 return ret; 66 66 return __sync_filesystem(sb, 1); 67 67 } 68 - EXPORT_SYMBOL_GPL(sync_filesystem); 68 + EXPORT_SYMBOL(sync_filesystem); 69 69 70 70 static void sync_inodes_one_sb(struct super_block *sb, void *arg) 71 71 {