diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 6c08c03fc03cec5a8c719583532611d73783f0a2..1e9cceeaf4c42017ea528071021fd26b2a152319 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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)