diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-28 11:45:21 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:28 +0200 |
commit | d005dbeca0814551ed243fc2d51480d0cd925d67 (patch) | |
tree | 3f3bb07ac53a69c153e6d90174f3924b94776343 /fs/btrfs/inode.c | |
parent | 28c4a3e21ad030d7571ee9b1b246a5cbfd886627 (diff) | |
download | linux-d005dbeca0814551ed243fc2d51480d0cd925d67.tar.bz2 |
btrfs: remove unused pointer inode in relink_file_extents
Pointer inode is being assigned but is never used hence it is redundant
and can be removed. It's been unused since the introduction in
38c227d87c49a ("Btrfs: snapshot-aware defrag").
Cleans up clang warning:
variable ‘inode’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f2ce88d65f90..56e523774049 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2750,12 +2750,9 @@ static void relink_file_extents(struct new_sa_defrag_extent *new) struct btrfs_path *path; struct sa_defrag_extent_backref *backref; struct sa_defrag_extent_backref *prev = NULL; - struct inode *inode; struct rb_node *node; int ret; - inode = new->inode; - path = btrfs_alloc_path(); if (!path) return; |