commit | 11c8349b4eb68f2b04cd8ece577377e6c0e5dd4b | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Mon Apr 20 15:50:09 2009 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Mon Apr 20 15:53:09 2009 -0400 |
tree | baeaabbe0a10d903ba3e0d6ff90ae9934912fc21 | |
parent | d313d7a31a752c88f7288692bd98e66d0789779b [diff] |
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>