]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: change jbd2_journal_invalidatepage to accept length
authorLukas Czerner <lczerner@redhat.com>
Wed, 22 May 2013 03:20:03 +0000 (23:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2013 03:20:03 +0000 (23:20 -0400)
commit2beb37282d693f7f9650bcd4f6dd4dfaf680c1c3
tree358bb3da52897264271a9ff45dd5869f2056aa39
parent9a4271c44155c329897e2a4506c2dec15d8c1356
jbd2: change jbd2_journal_invalidatepage to accept length

invalidatepage now accepts range to invalidate and there are two file
system using jbd2 also implementing punch hole feature which can benefit
from this. We need to implement the same thing for jbd2 layer in order to
allow those file system take benefit of this functionality.

This commit adds length argument to the jbd2_journal_invalidatepage()
and updates all instances in ext4 and ocfs2.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/inode.c
fs/jbd2/transaction.c
fs/ocfs2/aops.c
include/linux/jbd2.h