]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: correctly handle pages w/o buffers in ext4_discard_partial_buffers()
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 14 Dec 2011 03:05:05 +0000 (22:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 14 Dec 2011 03:05:05 +0000 (22:05 -0500)
commit43cb5a0f67483f25847262ac253da1e22420c616
treea337f1415bf1c98b63fa5536c42b97059309b8d1
parent6502edb227f693da0a6aee324f1fceab3b2e37fe
ext4: correctly handle pages w/o buffers in ext4_discard_partial_buffers()

If a page has been read into memory and never been written, it has no
buffers, but we should handle the page in truncate or punch hole.

VFS code of writing operations has handled holes correctly, so this
patch removes the code handling holes in writing operations.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c