Skip to content

Commit

Permalink
btrfs: Remove unused root var from relink_file_extents
Browse files Browse the repository at this point in the history
Added in 38c227d ("Btrfs: snapshot-aware defrag") but subsequently
made redundant by 0b246af ("btrfs: root->fs_info cleanup, add
fs_info convenience variables").

Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
lorddoskias authored and kdave committed Mar 30, 2018
1 parent 4eeb97c commit 8535dc1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2772,12 +2772,10 @@ static void relink_file_extents(struct new_sa_defrag_extent *new)
struct sa_defrag_extent_backref *backref;
struct sa_defrag_extent_backref *prev = NULL;
struct inode *inode;
struct btrfs_root *root;
struct rb_node *node;
int ret;

inode = new->inode;
root = BTRFS_I(inode)->root;

path = btrfs_alloc_path();
if (!path)
Expand Down

0 comments on commit 8535dc1

Please sign in to comment.