summaryrefslogtreecommitdiffstats
path: root/usr/initramfs_data.S
diff options
context:
space:
mode:
authorjiangyiwen2015-11-06 03:43:55 +0100
committerLinus Torvalds2015-11-06 04:34:48 +0100
commit4e357b932a665e62eb0642633057b8d7156ed8db (patch)
tree3c07cabd793ff81d1cb5cd872fc6ce0387580665 /usr/initramfs_data.S
parentocfs2_direct_IO_write() misses ocfs2_is_overwrite() error code (diff)
downloadkernel-qcow2-linux-4e357b932a665e62eb0642633057b8d7156ed8db.tar.gz
kernel-qcow2-linux-4e357b932a665e62eb0642633057b8d7156ed8db.tar.xz
kernel-qcow2-linux-4e357b932a665e62eb0642633057b8d7156ed8db.zip
ocfs2: fill in the unused portion of the block with zeros by dio_zero_block()
A simplified test case is (this case from Ryan): 1) dd if=/dev/zero of=/mnt/hello bs=512 count=1 oflag=direct; 2) truncate /mnt/hello -s 2097152 file 'hello' is not exist before test. After this command, file 'hello' should be all zero. But 512~4096 is some random data. Setting bh state to new when get a new block, if so, direct_io_worker()->dio_zero_block() will fill-in the unused portion of the block with zero. Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com> Reviewed-by: Joseph Qi <joseph.qi@huawei.com> Cc: Mark Fasheh <mfasheh@suse.de> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'usr/initramfs_data.S')
0 files changed, 0 insertions, 0 deletions