diff options
author | Forrest Liu <forrestl@synology.com> | 2015-02-09 17:31:45 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-04-29 13:22:09 -0700 |
commit | 5d2361db48899789fb466ff62db5d5fc7b070e86 (patch) | |
tree | ccc1158ccc22b0ba31a44ec20f11e08682995ca1 /fs/btrfs/inode.c | |
parent | 6e17d30bfaf43e04d991392d8484f1c556810c33 (diff) |
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: Chien-Kuan Yeh <ckya@synology.com>
Signed-off-by: Forrest Liu <forrestl@synology.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Tested-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions