]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: honor O_(D)SYNC semantic in ext4_fallocate()
authorZheng Liu <gnehzuil.liu@gmail.com>
Sat, 30 Jun 2012 23:12:57 +0000 (19:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Jun 2012 23:12:57 +0000 (19:12 -0400)
commit509b8f6f6b7e9fa62669b5930a4e1d7c3c7320b5
tree29bce2b6f2dc86433f9615a1a6a8628840ad680d
parente2438575ea67d3d5fe786d905d7f086f4d79f3f7
ext4: honor O_(D)SYNC semantic in ext4_fallocate()

Ext4 must make sure the transaction to be commited to the disk when
user opens a file with O_(D)SYNC flag and do a fallocate(2) call.

This problem had been reported by Christoph Hellwig in this thread:
http://www.spinics.net/lists/linux-btrfs/msg13621.html

Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c