]> git.baikalelectronics.ru Git - kernel.git/commit
Export sync_filesystem() for modular ->remount_fs() use
authorAnton Altaparmakov <aia21@cam.ac.uk>
Thu, 21 Aug 2014 10:09:27 +0000 (11:09 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Sep 2014 15:16:21 +0000 (08:16 -0700)
commita9c5f142366fa9100e487d4251f75d189d6168a0
tree934ba0e840f4c7bc0b7cbe2d97b9587fb96d7252
parente62096d45296fc107ac06bca31c259673ef4b8f9
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 2e145e80eeef ("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>
fs/sync.c