projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d74119
)
Btrfs: fix free space cache leak
author
Chris Mason
<chris.mason@oracle.com>
Mon, 18 Apr 2011 12:55:34 +0000
(08:55 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 18 Apr 2011 12:55:34 +0000
(08:55 -0400)
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>
fs/btrfs/free-space-cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/free-space-cache.c
b/fs/btrfs/free-space-cache.c
index a3f420def0e9dfd17790671bfe50535e7bdeb72c..11d2e9cea09e95b329cfe4e37aec5b50bcc46135 100644
(file)
--- a/
fs/btrfs/free-space-cache.c
+++ b/
fs/btrfs/free-space-cache.c
@@
-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);