mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +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
@ -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…
x
Reference in New Issue
Block a user