btrfs: get fs_info from eb in btrfs_exclude_logged_extents
[sfrench/cifs-2.6.git] / fs / btrfs / extent-tree.c
index c5880329ae37c661b4e87b3cafc0599e776f242d..44fd4553004b13e6c73057db4af7a49042d34743 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;
@@ -6607,9 +6601,9 @@ out_lock:
        return ret;
 }
 
-int btrfs_exclude_logged_extents(struct btrfs_fs_info *fs_info,
-                                struct extent_buffer *eb)
+int btrfs_exclude_logged_extents(struct extent_buffer *eb)
 {
+       struct btrfs_fs_info *fs_info = eb->fs_info;
        struct btrfs_file_extent_item *item;
        struct btrfs_key key;
        int found_type;