mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
Btrfs: ignore non-FS inodes for send/receive
We have to ignore inode/space cache objects in send/receive. Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com> Signed-off-by: Alexander Block <ablock84@googlemail.com>
This commit is contained in:
parent
2f28f4787c
commit
2981e225f7
@ -4287,6 +4287,11 @@ static int changed_cb(struct btrfs_root *left_root,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
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)
|
if (key->type == BTRFS_INODE_ITEM_KEY)
|
||||||
ret = changed_inode(sctx, result);
|
ret = changed_inode(sctx, result);
|
||||||
else if (key->type == BTRFS_INODE_REF_KEY)
|
else if (key->type == BTRFS_INODE_REF_KEY)
|
||||||
|
Loading…
Reference in New Issue
Block a user