btrfs: explicitly protect ->last_byte_to_unpin in unpin_extent_range
[sfrench/cifs-2.6.git] / fs / btrfs / reflink.c
index 99aa87c089121b79acf26bcd3503f7f73f69ad5e..5d0bb7c3dc335e4b4ecced4960d14d3161116bf4 100644 (file)
@@ -347,7 +347,6 @@ static int btrfs_clone(struct inode *src, struct inode *inode,
                u64 drop_start;
 
                /* Note the key will change type as we walk through the tree */
-               path->leave_spinning = 1;
                ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path,
                                0, 0);
                if (ret < 0)
@@ -417,7 +416,6 @@ process_slot:
                                   size);
 
                btrfs_release_path(path);
-               path->leave_spinning = 0;
 
                memcpy(&new_key, &key, sizeof(new_key));
                new_key.objectid = btrfs_ino(BTRFS_I(inode));
@@ -533,7 +531,6 @@ process_slot:
                 * mixing buffered and direct IO writes against this file.
                 */
                btrfs_release_path(path);
-               path->leave_spinning = 0;
 
                ret = btrfs_replace_file_extents(inode, path, last_dest_end,
                                destoff + len - 1, NULL, &trans);