diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-05-18 09:29:48 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-05-18 09:29:48 +1000 |
commit | 4f47e7917c1761c062bf93154a729de7e96bcc55 (patch) | |
tree | c79ed7734ed2e49431fab29783ed58916eadc8c5 /fs/btrfs/send.c | |
parent | cfb825fa2e18837a28a015dc8a68a6456f84972b (diff) | |
parent | 4b1370b4e34a1487b79173bf4201201cc58c9979 (diff) |
Merge remote-tracking branch 'btrfs-kdave/for-next'
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index fc496a6f842a..e8185c83f667 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -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; |