Skip to content
Commit 11c8349b authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix oops on page->mapping->host during writepage



The extent_io writepage call updates the writepage index in the inode
as it makes progress.  But, it was doing the update after unlocking the page,
which isn't legal because page->mapping can't be trusted once the page
is unlocked.

This lead to an oops, especially common with compression turned on.  The
fix here is to update the writeback index before unlocking the page.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent d313d7a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment