aboutsummaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-10-03 10:49:23 -0400
committerMister Oyster <oysterized@gmail.com>2017-12-31 01:44:57 +0100
commit0a1c35eaa245f0a901ee0b84f68826099db9bd97 (patch)
tree572dca517191492f7a48206f435ce0e6aabf3e92 /include/linux/blkdev.h
parentf556a9fb4fbe2e4904fe4b10bef9e653690c18b0 (diff)
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> Signed-off-by: Joe Maples <joe@frap129.org>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions