summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-10-16 16:29:23 +0300
committerDavid Sterba <dsterba@suse.com>2017-11-01 20:45:34 +0100
commiteb7b9d6a467409cc0b6c369b0a72489bf3be6801 (patch)
tree8c069664ae0d94008069ac094c3c241c181e8508 /fs/btrfs
parent6dd38f81f9c90fb5eec358d46f393f4366c9de50 (diff)
downloadlinux-stable-eb7b9d6a467409cc0b6c369b0a72489bf3be6801.tar.gz
linux-stable-eb7b9d6a467409cc0b6c369b0a72489bf3be6801.tar.bz2
linux-stable-eb7b9d6a467409cc0b6c369b0a72489bf3be6801.zip
btrfs: send: remove unused code
This code was first introduced in 31db9f7c23fb ("Btrfs: introduce BTRFS_IOC_SEND for btrfs send/receive") and it was not functional, then it got slightly refactored in e938c8ad543c ("Btrfs: code cleanups for send/receive"), alas it was still dead. So let's remove it for good! Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/send.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index d9ddcdbdd2e7..13b98a554aab 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -1271,12 +1271,6 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_)
*/
if (ino >= bctx->cur_objectid)
return 0;
-#if 0
- if (ino > bctx->cur_objectid)
- return 0;
- if (offset + bctx->extent_len > bctx->cur_offset)
- return 0;
-#endif
}
bctx->found++;