]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: wake up transaction thread from SYNC_FS ioctl
authorDavid Sterba <dsterba@suse.cz>
Wed, 23 Jul 2014 12:39:35 +0000 (14:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:38:18 +0000 (09:38 -0700)
commitb1a821f574f0d2200dd3514010246341d1d7abf5
treee0aa6e53c44ffce84d715a90e6027c7e85ffb748
parentd7892a4c389d54bccb9bce8e65eb053a33bbe290
btrfs: wake up transaction thread from SYNC_FS ioctl

commit 2fad4e83e12591eb3bd213875b9edc2d18e93383 upstream.

The transaction thread may want to do more work, namely it pokes the
cleaner ktread that will start processing uncleaned subvols.

This can be triggered by user via the 'btrfs fi sync' command, otherwise
there was a delay up to 30 seconds before the cleaner started to clean
old snapshots.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/ioctl.c