]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: optimize ext4_writepage() for attempted 4k delalloc writes
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Oct 2015 14:49:23 +0000 (10:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Oct 2015 14:49:23 +0000 (10:49 -0400)
commita6603133d2f23cd5844ab451a03d9f14bc46bf6b
tree1cb956df150d20b0d1cf3f34fbf970b6a84561c5
parent00848bdbf7c5a5b6f7fd1b4d847cdf99cddcb84e
ext4: optimize ext4_writepage() for attempted 4k delalloc writes

In cases where the file system block size is the same as the page
size, and ext4_writepage() is asked to write out a page which is
either has the unwritten bit set in the extent tree, or which does not
yet have a block assigned due to delayed allocation, we can bail out
early and, unlocking the page earlier and avoiding a round trip
through ext4_bio_write_page() with the attendant calls to
set_page_writeback() and redirty_page_for_writeback().

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