diff options
author | Chris Mason <clm@fb.com> | 2016-06-17 10:04:57 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-06-17 10:04:57 -0700 |
commit | de18c165509edb36bde42ca6ff930854f85e21ea (patch) | |
tree | 0e2bedc70d8b60958fb49fcb3392e95efacf39eb /fs/btrfs/super.c | |
parent | 719da39a61173c849f70656ed1a302e4b6deaa5b (diff) | |
parent | dd5c93111dc9d26e038ac437f7a403d617e82c62 (diff) |
Merge branch 'for-chris' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.7
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 4339b6613f19..60e7179ed4b7 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -235,7 +235,7 @@ void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, trans->aborted = errno; /* Nothing used. The other threads that have joined this * transaction may be able to continue. */ - if (!trans->blocks_used && list_empty(&trans->new_bgs)) { + if (!trans->dirty && list_empty(&trans->new_bgs)) { const char *errstr; errstr = btrfs_decode_error(errno); @@ -1807,6 +1807,8 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data) } } sb->s_flags &= ~MS_RDONLY; + + fs_info->open = 1; } out: wake_up_process(fs_info->transaction_kthread); |