]> git.hungrycats.org Git - linux/commit
btrfs: introduce pending action: commit
authorDavid Sterba <dsterba@suse.cz>
Wed, 12 Nov 2014 13:24:35 +0000 (14:24 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:15:45 +0000 (08:15 -0500)
commitd2a0087a82f7b9a1ebe97607c0c790e84e5ca16e
tree7b15a9e8e5ef85847b24eaa2892d26b3e9fb680b
parent7694115042feb78e7cad7088ac9923f4a1df7484
btrfs: introduce pending action: commit

In some contexts, like in sysfs handlers, we don't want to trigger a
transaction commit. It's a heavy operation, we don't know what external
locks may be taken. Instead, make it possible to finish the operation
through sync syscall or SYNC_FS ioctl.

Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit d51033d05547675f898ce4233a7d8d1a0dfe2984)
fs/btrfs/ctree.h
fs/btrfs/transaction.c