diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index a04707f740d6..038177cfabbb 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -375,7 +375,8 @@ start_transaction(struct btrfs_root *root, u64 num_items, unsigned int type, | |||
375 | if (test_bit(BTRFS_FS_STATE_ERROR, &root->fs_info->fs_state)) | 375 | if (test_bit(BTRFS_FS_STATE_ERROR, &root->fs_info->fs_state)) |
376 | return ERR_PTR(-EROFS); | 376 | return ERR_PTR(-EROFS); |
377 | 377 | ||
378 | if (current->journal_info) { | 378 | if (current->journal_info && |
379 | current->journal_info != (void *)BTRFS_SEND_TRANS_STUB) { | ||
379 | WARN_ON(type & TRANS_EXTWRITERS); | 380 | WARN_ON(type & TRANS_EXTWRITERS); |
380 | h = current->journal_info; | 381 | h = current->journal_info; |
381 | h->use_count++; | 382 | h->use_count++; |