]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add new function ext4_block_zero_page_range()
authorAllison Henderson <achender@linux.vnet.ibm.com>
Wed, 25 May 2011 11:41:32 +0000 (07:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 25 May 2011 11:41:32 +0000 (07:41 -0400)
commit9ba27ccd0985ce04fe1c384bad42cae8c5fd77c2
tree4696b50debf9794f2cbb966cccbedadb93dc996a
parent9cf12d1100d4c992e6ae1435d0e82b80568c7fdb
ext4: add new function ext4_block_zero_page_range()

This patch modifies the existing ext4_block_truncate_page() function
which was used by the truncate code path, and which zeroes out block
unaligned data, by adding a new length parameter, and renames it to
ext4_block_zero_page_rage().  This function can now be used to zero out the
head of a block, the tail of a block, or the middle
of a block.

The ext4_block_truncate_page() function is now a wrapper to
ext4_block_zero_page_range().

[ext4 punch hole patch series 2/5 v7]

Signed-off-by: Allison Henderson <achender@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Mingming Cao <cmm@us.ibm.com>
fs/ext4/ext4.h
fs/ext4/inode.c