btrfs: account for non-CoW'd blocks in btrfs_abort_transaction
[deliverable/linux.git] / fs / btrfs / super.c
index 4339b6613f190da6feaf83b2e2c2e07ea0aca062..bf70d33b57910f3bc821c1c7fce755103f5d8bba 100644 (file)
@@ -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);
This page took 0.02422 seconds and 5 git commands to generate.