aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-11-12 14:24:35 +0100
committerDavid Sterba <dsterba@suse.cz>2014-11-12 16:53:14 +0100
commitd51033d05547675f898ce4233a7d8d1a0dfe2984 (patch)
treedbdf9ce4507515b1305ee354d6e968ab3aa01b15 /fs/btrfs/ctree.h
parentbtrfs: switch inode_cache option handling to pending changes (diff)
downloadlinux-dev-d51033d05547675f898ce4233a7d8d1a0dfe2984.tar.xz
linux-dev-d51033d05547675f898ce4233a7d8d1a0dfe2984.zip
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 1c9157e4ab0c..817fc19b8159 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2132,6 +2132,7 @@ struct btrfs_ioctl_defrag_range_args {
#define BTRFS_PENDING_SET_INODE_MAP_CACHE (0)
#define BTRFS_PENDING_CLEAR_INODE_MAP_CACHE (1)
+#define BTRFS_PENDING_COMMIT (2)
#define btrfs_test_pending(info, opt) \
test_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)