summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2014-09-23 22:22:33 +0800
committerChris Mason <clm@fb.com>2014-10-03 16:14:58 -0700
commit8146502820231da924ca22d147cdcf733ac9a057 (patch)
treea4ff285ca64394aea238a249ac9bf41fbc7fbe11 /mm/hugetlb.c
parent55e3bd2e0c2e1cfb43429b962e61415e0526bc01 (diff)
downloadlinux-8146502820231da924ca22d147cdcf733ac9a057.tar.bz2
Btrfs: fix crash of btrfs_release_extent_buffer_page
This is actually inspired by Filipe's patch. When write_one_eb() fails on submit_extent_page(), it'll give up writing this eb and mark it with EXTENT_BUFFER_IOERR. So if it's not the last page that encounter the failure, there are some left pages which remain DIRTY, and if a later COW on this eb happens, ie. eb is COWed and freed, it'd run into BUG_ON in btrfs_release_extent_buffer_page() for the DIRTY page, ie. BUG_ON(PageDirty(page)); This adds the missing clear_page_dirty_for_io() for the rest pages of eb. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions