Btrfs: remove no longer used 'sync' member from transaction handle
authorFilipe Manana <fdmanana@suse.com>
Mon, 11 Mar 2019 13:10:56 +0000 (13:10 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:18 +0000 (19:02 +0200)
Commit db2462a6ad3d ("btrfs: don't run delayed refs in the end transaction
logic") removed its last use, so now it does absolutely nothing, therefore
remove it.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/transaction.h

index c5880329ae37c661b4e87b3cafc0599e776f242d..b0c86a817a99c32554c02e54ef23aea4144dccb8 100644 (file)
@@ -2910,12 +2910,6 @@ static void delayed_ref_async_start(struct btrfs_work *work)
                goto done;
        }
 
-       /*
-        * trans->sync means that when we call end_transaction, we won't
-        * wait on delayed refs
-        */
-       trans->sync = true;
-
        /* Don't bother flushing if we got into a different transaction */
        if (trans->transid > async->transid)
                goto end;
index 34fe8a58b0e9cb65d5faddfcec1b655858ed8589..94c1c86fd18a23819e93ea56c114a1142fb928bf 100644 (file)
@@ -2165,7 +2165,6 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
                inode_unlock(inode);
                goto out;
        }
-       trans->sync = true;
 
        ret = btrfs_log_dentry_safe(trans, dentry, start, end, &ctx);
        if (ret < 0) {
index f1ba78949d1b0c23b9ac13293a268278c4e5ce06..b34678e7968ed2e704db2fc18ccfc8e2f288aaa7 100644 (file)
@@ -120,7 +120,6 @@ struct btrfs_trans_handle {
        bool allocating_chunk;
        bool can_flush_pending_bgs;
        bool reloc_reserved;
-       bool sync;
        bool dirty;
        struct btrfs_root *root;
        struct btrfs_fs_info *fs_info;