]> 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)
commitd86e174180bcbcbdf1ba65fdbe93a8618352b0de
tree496fc7b7ce6ae9375340d9994a0fbaf522e08890
parent0243638e266bb0b8221d6061e25a7ef52f27d284
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