btrfs: remove unused members dir_path from recorded_ref
authorDavid Sterba <dsterba@suse.com>
Thu, 13 Apr 2017 17:11:04 +0000 (19:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:59 +0000 (18:25 +0200)
The two members do not seem to be used since the initial commit.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c

index fc496a6f842a87d3544e80b3b9e063d57417f788..e8185c83f667f6e471347bbeb415454ffcb451fa 100644 (file)
@@ -2769,12 +2769,10 @@ out:
 
 struct recorded_ref {
        struct list_head list;
-       char *dir_path;
        char *name;
        struct fs_path *full_path;
        u64 dir;
        u64 dir_gen;
-       int dir_path_len;
        int name_len;
 };
 
@@ -2798,12 +2796,6 @@ static int __record_ref(struct list_head *head, u64 dir,
 
        ref->name = (char *)kbasename(ref->full_path->start);
        ref->name_len = ref->full_path->end - ref->name;
-       ref->dir_path = ref->full_path->start;
-       if (ref->name == ref->full_path->start)
-               ref->dir_path_len = 0;
-       else
-               ref->dir_path_len = ref->full_path->end -
-                               ref->full_path->start - 1 - ref->name_len;
 
        list_add_tail(&ref->list, head);
        return 0;