ext4: let ext4_discard_partial_buffers handle unaligned range correctly
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Mon, 31 Oct 2011 22:04:38 +0000 (18:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 Oct 2011 22:04:38 +0000 (18:04 -0400)
commitedb5ac8993e25143f6af1ab143843a65c52e2a15
treed7ddf9603bcb2c540d5c240102a0dafc10f42eef
parent5129d05fda57be13f434dbe8536de39a6c25496d
ext4: let ext4_discard_partial_buffers handle unaligned range correctly

As comment says, we should handle unaligned range rather than aligned
one.  This fixes a bug found by running xfstests #91.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
fs/ext4/inode.c