summaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorLukas Czerner2013-05-28 05:32:35 +0200
committerTheodore Ts'o2013-05-28 05:32:35 +0200
commit5a7203947a1d9b6f3a00a39fda08c2466489555f (patch)
treef735cb5f4dbf4b0aa750572dbf1efac69ce2d4af /fs/ext4/inode.c
parentreiserfs: use ->invalidatepage() length argument (diff)
downloadkernel-qcow2-linux-5a7203947a1d9b6f3a00a39fda08c2466489555f.tar.gz
kernel-qcow2-linux-5a7203947a1d9b6f3a00a39fda08c2466489555f.tar.xz
kernel-qcow2-linux-5a7203947a1d9b6f3a00a39fda08c2466489555f.zip
mm: teach truncate_inode_pages_range() to handle non page aligned ranges
This commit changes truncate_inode_pages_range() so it can handle non page aligned regions of the truncate. Currently we can hit BUG_ON when the end of the range is not page aligned, but we can handle unaligned start of the range. Being able to handle non page aligned regions of the page can help file system punch_hole implementations and save some work, because once we're holding the page we might as well deal with it right away. In previous commits we've changed ->invalidatepage() prototype to accept 'length' argument to be able to specify range to invalidate. No we can use that new ability in truncate_inode_pages_range(). Signed-off-by: Lukas Czerner <lczerner@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
0 files changed, 0 insertions, 0 deletions