Fix corners in writepage and btrfs_truncate_page
authorChris Mason <chris.mason@oracle.com>
Thu, 15 May 2008 13:13:45 +0000 (09:13 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000 (11:04 -0400)
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: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/file.c
fs/btrfs/inode.c

Simple merge
diff --cc fs/btrfs/file.c
Simple merge
Simple merge