aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Moise <00moses.alexander00@gmail.com>2015-10-25 15:35:44 -0400
committerDavid Sterba <dsterba@suse.com>2016-01-07 08:30:00 -0500
commit575a75d6fabf6e1217204deca79aea26d6670a12 (patch)
tree87162b316031160bb8e304e6b543c736090e666a
parent9780c4976f5518f805b32fc00ed045b636fe8fa8 (diff)
btrfs: pass proper enum type to start_transaction()
Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/transaction.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index be8eae80ff65..fc82b02aff5c 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -634,17 +634,20 @@ struct btrfs_trans_handle *btrfs_start_transaction_lflush(
634 634
635struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) 635struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root)
636{ 636{
637 return start_transaction(root, 0, TRANS_JOIN, 0); 637 return start_transaction(root, 0, TRANS_JOIN,
638 BTRFS_RESERVE_NO_FLUSH);
638} 639}
639 640
640struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root) 641struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root)
641{ 642{
642 return start_transaction(root, 0, TRANS_JOIN_NOLOCK, 0); 643 return start_transaction(root, 0, TRANS_JOIN_NOLOCK,
644 BTRFS_RESERVE_NO_FLUSH);
643} 645}
644 646
645struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root) 647struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root)
646{ 648{
647 return start_transaction(root, 0, TRANS_USERSPACE, 0); 649 return start_transaction(root, 0, TRANS_USERSPACE,
650 BTRFS_RESERVE_NO_FLUSH);
648} 651}
649 652
650/* 653/*
@@ -662,7 +665,8 @@ struct btrfs_trans_handle *btrfs_start_ioctl_transaction(struct btrfs_root *root
662 */ 665 */
663struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root) 666struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root)
664{ 667{
665 return start_transaction(root, 0, TRANS_ATTACH, 0); 668 return start_transaction(root, 0, TRANS_ATTACH,
669 BTRFS_RESERVE_NO_FLUSH);
666} 670}
667 671
668/* 672/*
@@ -677,7 +681,8 @@ btrfs_attach_transaction_barrier(struct btrfs_root *root)
677{ 681{
678 struct btrfs_trans_handle *trans; 682 struct btrfs_trans_handle *trans;
679 683
680 trans = start_transaction(root, 0, TRANS_ATTACH, 0); 684 trans = start_transaction(root, 0, TRANS_ATTACH,
685 BTRFS_RESERVE_NO_FLUSH);
681 if (IS_ERR(trans) && PTR_ERR(trans) == -ENOENT) 686 if (IS_ERR(trans) && PTR_ERR(trans) == -ENOENT)
682 btrfs_wait_for_commit(root, 0); 687 btrfs_wait_for_commit(root, 0);
683 688