Skip to content
Commit 5d2361db authored by Forrest Liu's avatar Forrest Liu Committed by Chris Mason
Browse files

Btrfs: btrfs_release_extent_buffer_page didn't free pages of dummy extent



btrfs_release_extent_buffer_page() can't handle dummy extent that
allocated by btrfs_clone_extent_buffer() properly. That is because
reference count of pages that allocated by btrfs_clone_extent_buffer()
was 2, 1 by alloc_page(), and another by attach_extent_buffer_page().

Running following command repeatly can check this memory leak problem

    btrfs inspect-internal inode-resolve 256 /mnt/btrfs

Signed-off-by: default avatarChien-Kuan Yeh <ckya@synology.com>
Signed-off-by: default avatarForrest Liu <forrestl@synology.com>
Reviewed-by: default avatarFilipe Manana <fdmanana@suse.com>
Tested-by: default avatarFilipe Manana <fdmanana@suse.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 6e17d30b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment