]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove calls to ext4_jbd2_file_inode() from delalloc write path
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Nov 2012 04:08:57 +0000 (23:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Nov 2012 04:08:57 +0000 (23:08 -0500)
commit7124d192c4c024b6d213ed53d2d6b81e8d2381ba
tree496fc7b7ce6ae9375340d9994a0fbaf522e08890
parentaa9936dad289ea74fe1a9c8c8256dede0facb0eb
ext4: remove calls to ext4_jbd2_file_inode() from delalloc write path

The calls to ext4_jbd2_file_inode() are needed to guarantee that we do
not expose stale data in the data=ordered mode.  However, they are not
necessary because in all of the cases where we have newly allocated
blocks in the delayed allocation write path, we immediately submit the
dirty pages for I/O.  Hence, we can avoid the overhead of adding the
inode to the list of inodes whose data pages will be to be flushed out
to disk completely during the next commit operation.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c