summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorChris Mason2009-04-20 21:50:09 +0200
committerChris Mason2009-04-20 21:53:09 +0200
commit11c8349b4eb68f2b04cd8ece577377e6c0e5dd4b (patch)
treebaeaabbe0a10d903ba3e0d6ff90ae9934912fc21 /security
parentBtrfs: add a priority queue to the async thread helpers (diff)
downloadkernel-qcow2-linux-11c8349b4eb68f2b04cd8ece577377e6c0e5dd4b.tar.gz
kernel-qcow2-linux-11c8349b4eb68f2b04cd8ece577377e6c0e5dd4b.tar.xz
kernel-qcow2-linux-11c8349b4eb68f2b04cd8ece577377e6c0e5dd4b.zip
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: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions