mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
Btrfs: fix free space cache leak
The free space caching code was recently reworked to cache all the pages it needed instead of using find_get_page everywhere. One loop was missed though, so it ended up leaking pages. This fixes it to use our page array instead of find_get_page. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
6d74119f1a
commit
f65647c29b
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ int btrfs_write_out_cache(struct btrfs_root *root,
|
|||
out_of_space = true;
|
||||
break;
|
||||
}
|
||||
page = find_get_page(inode->i_mapping, index);
|
||||
page = pages[index];
|
||||
|
||||
addr = kmap(page);
|
||||
memcpy(addr, entry->bitmap, PAGE_CACHE_SIZE);
|
||||
|
|
Loading…
Reference in a new issue