Skip to content

Commit

Permalink
Btrfs: Fix memory leak in writepage fixup work
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miao Xie authored and Li Zefan committed Jan 26, 2011
1 parent d0f6968 commit b897abe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,7 @@ static void btrfs_writepage_fixup_worker(struct btrfs_work *work)
out_page:
unlock_page(page);
page_cache_release(page);
kfree(fixup);
}

/*
Expand Down

0 comments on commit b897abe

Please sign in to comment.