]> git.hungrycats.org Git - linux/commit
btrfs: do commit in sync_fs if there are pending changes
authorDavid Sterba <dsterba@suse.cz>
Fri, 28 Mar 2014 16:38:48 +0000 (17:38 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:15:42 +0000 (08:15 -0500)
commitc9575b5f38c8b70133468d45a6851f62918eb886
treeb42f174ce5a1261fb6b134656a54a52030819840
parent862fd33e3aa13c7b6ce0c69945a0a5f6ef65b713
btrfs: do commit in sync_fs if there are pending changes

If a pending change is requested, it's not processed unless there is a
transaction commit about to happen, not even after sync or SYNC_FS
ioctl. For example a remount that toggles the inode_cache option will
not take effect after sync on a quiescent filesystem.

Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit 6b5fe46dfa52441f49c7432b1c1b1cb767834708)
fs/btrfs/super.c