]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/jbd2.h
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)
commit259709b07da103edc40b8c5bdb2d5c0e77374f94
tree358bb3da52897264271a9ff45dd5869f2056aa39
parentd47992f86b307985b3215bcf141d56d1849d71df
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