Btrfs: Fix page count calculation
commit3a90983dbdcb2f4f48c0d771d8e5b4d88f27fae6
authorYan, Zheng <zheng.z.yan@linux.intel.com>
Tue, 18 Jan 2011 05:34:40 +0000 (18 13:34 +0800)
committerChris Mason <chris.mason@oracle.com>
Mon, 7 Feb 2011 19:13:51 +0000 (7 14:13 -0500)
tree3179f5e834e482cc3f782e709a53b08591416c76
parent8e4eef7a60eeca0fe7503e5cbd3b24ff4941c732
Btrfs: Fix page count calculation

take offset of start position into account when calculating page count.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c