Commit 575a75d6 authored by Alexandru Moise's avatar Alexandru Moise Committed by David Sterba

btrfs: pass proper enum type to start_transaction()

Signed-off-by: default avatarAlexandru Moise <00moses.alexander00@gmail.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9780c497
...@@ -634,17 +634,20 @@ struct btrfs_trans_handle *btrfs_start_transaction_lflush( ...@@ -634,17 +634,20 @@ struct btrfs_trans_handle *btrfs_start_transaction_lflush(
struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root)
{ {
return start_transaction(root, 0, TRANS_JOIN, 0); return start_transaction(root, 0, TRANS_JOIN,
BTRFS_RESERVE_NO_FLUSH);
} }
struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root) struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root)
{ {
return start_transaction(root, 0, TRANS_JOIN_NOLOCK, 0); return start_transaction(root, 0, TRANS_JOIN_NOLOCK,
BTRFS_RESERVE_NO_FLUSH);
} }
struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root) struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root)
{ {
return start_transaction(root, 0, TRANS_USERSPACE, 0); return start_transaction(root, 0, TRANS_USERSPACE,
BTRFS_RESERVE_NO_FLUSH);
} }
/* /*
...@@ -662,7 +665,8 @@ struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root ...@@ -662,7 +665,8 @@ struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root
*/ */
struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root) struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root)
{ {
return start_transaction(root, 0, TRANS_ATTACH, 0); return start_transaction(root, 0, TRANS_ATTACH,
BTRFS_RESERVE_NO_FLUSH);
} }
/* /*
...@@ -677,7 +681,8 @@ btrfs_attach_transaction_barrier(struct btrfs_root *root) ...@@ -677,7 +681,8 @@ btrfs_attach_transaction_barrier(struct btrfs_root *root)
{ {
struct btrfs_trans_handle *trans; struct btrfs_trans_handle *trans;
trans = start_transaction(root, 0, TRANS_ATTACH, 0); trans = start_transaction(root, 0, TRANS_ATTACH,
BTRFS_RESERVE_NO_FLUSH);
if (IS_ERR(trans) && PTR_ERR(trans) == -ENOENT) if (IS_ERR(trans) && PTR_ERR(trans) == -ENOENT)
btrfs_wait_for_commit(root, 0); btrfs_wait_for_commit(root, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment