Skip to contentSkip to conversation

btrfs: remove stillborn code

PATCH New Nikolay Borisov 1 participant 1 message Oct 16, 2017 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: remove stillborn 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!

---
 fs/btrfs/send.c | 6 ------
 1 file changed, 6 deletions(-)
fs/btrfs/send.c +0 -6
index d9ddcdbdd2e7..13b98a554aab 100644
@@ -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++;
Signature · 1 line
2.7.4