diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2011-01-26 03:19:22 -0500 |
---|---|---|
committer | Li Zefan <lizf@cn.fujitsu.com> | 2011-01-26 12:10:30 -0500 |
commit | b897abec032deb7cc3ce67392a1f544ac965ddea (patch) | |
tree | 9014f850ad04b51953ae010713605a758bd1bb63 | |
parent | d0f69686c2ae775529aadc7a8acc6f13ad41de66 (diff) |
Btrfs: Fix memory leak in writepage fixup work
fixup, which is allocated when starting page write to fix up the
extent without ORDERED bit set, should be freed after this work
is done.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 5f9194438f7c..3a6edc4c5642 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1544,6 +1544,7 @@ out: | |||
1544 | out_page: | 1544 | out_page: |
1545 | unlock_page(page); | 1545 | unlock_page(page); |
1546 | page_cache_release(page); | 1546 | page_cache_release(page); |
1547 | kfree(fixup); | ||
1547 | } | 1548 | } |
1548 | 1549 | ||
1549 | /* | 1550 | /* |