Skip to content
Commit 211c17f5 authored by Chris Mason's avatar Chris Mason
Browse files

Fix corners in writepage and btrfs_truncate_page



The extent_io writepage calls needed an extra check for discarding
pages that started on th last byte in the file.

btrfs_truncate_page needed checks to make sure the page was still part
of the file after reading it, and most importantly, needed to wait for
all IO to the page to finish before freeing the corresponding extents on
disk.

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