diff options
author | Theodore Ts'o <tytso@mit.edu> | 2015-10-03 17:49:23 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-03 17:49:23 +0300 |
commit | cccd147a57e47527ce9c27fcd5f0a1c5669d6870 (patch) | |
tree | 1cb956df150d20b0d1cf3f34fbf970b6a84561c5 /fs/ext4/readpage.c | |
parent | 937d7b84dca58f2565715f2c8e52f14c3d65fb22 (diff) | |
download | linux-cccd147a57e47527ce9c27fcd5f0a1c5669d6870.tar.xz |
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>
Diffstat (limited to 'fs/ext4/readpage.c')
0 files changed, 0 insertions, 0 deletions