aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index f5021fcb154e..a8ab8f5ef38e 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1638,9 +1638,7 @@ static void do_async_commit(struct work_struct *work)
1638 * Tell lockdep about it. 1638 * Tell lockdep about it.
1639 */ 1639 */
1640 if (ac->newtrans->type & __TRANS_FREEZABLE) 1640 if (ac->newtrans->type & __TRANS_FREEZABLE)
1641 rwsem_acquire_read( 1641 __sb_writers_acquired(ac->root->fs_info->sb, SB_FREEZE_FS);
1642 &ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1],
1643 0, 1, _THIS_IP_);
1644 1642
1645 current->journal_info = ac->newtrans; 1643 current->journal_info = ac->newtrans;
1646 1644
@@ -1679,9 +1677,7 @@ int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans,
1679 * async commit thread will be the one to unlock it. 1677 * async commit thread will be the one to unlock it.
1680 */ 1678 */
1681 if (ac->newtrans->type & __TRANS_FREEZABLE) 1679 if (ac->newtrans->type & __TRANS_FREEZABLE)
1682 rwsem_release( 1680 __sb_writers_release(root->fs_info->sb, SB_FREEZE_FS);
1683 &root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1],
1684 1, _THIS_IP_);
1685 1681
1686 schedule_work(&ac->work); 1682 schedule_work(&ac->work);
1687 1683