From: Alexander Block Date: Wed, 1 Aug 2012 12:47:03 +0000 (+0200) Subject: Btrfs: ignore non-FS inodes for send/receive X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2981e225f7048b36470383bf5622c42139bd96f7;p=linux-beck.git Btrfs: ignore non-FS inodes for send/receive We have to ignore inode/space cache objects in send/receive. Reported-by: Alex Lyakas Signed-off-by: Alexander Block --- diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index db051d17b0be..a4011a9148fd 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4287,6 +4287,11 @@ static int changed_cb(struct btrfs_root *left_root, if (ret < 0) goto out; + /* Ignore non-FS objects */ + if (key->objectid == BTRFS_FREE_INO_OBJECTID || + key->objectid == BTRFS_FREE_SPACE_OBJECTID) + goto out; + if (key->type == BTRFS_INODE_ITEM_KEY) ret = changed_inode(sctx, result); else if (key->type == BTRFS_INODE_REF_KEY)