diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-08-20 17:46:11 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:54:02 +0100 |
commit | b9729ce014f6c22d4ca7fda97a7d8ea432af5f91 (patch) | |
tree | 8273aacc8642037934c4b0590b2f27e4819ab63d /fs/btrfs/reflink.c | |
parent | btrfs: locking: remove all the blocking helpers (diff) | |
download | linux-b9729ce014f6c22d4ca7fda97a7d8ea432af5f91.tar.xz linux-b9729ce014f6c22d4ca7fda97a7d8ea432af5f91.zip |
btrfs: locking: rip out path->leave_spinning
We no longer distinguish between blocking and spinning, so rip out all
this code.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reflink.c')
-rw-r--r-- | fs/btrfs/reflink.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c index 99aa87c08912..5d0bb7c3dc33 100644 --- a/fs/btrfs/reflink.c +++ b/fs/btrfs/reflink.c @@ -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); |