Skip to content
Commit 78aaced3 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: don't lock the next page in write_cache_pages if not needed



If we have accumulated a contiguous region of memory to be written
out, and the next page can added to this region, don't bother locking
(and then unlocking the page) before writing out the memory.  In the
unlikely event that the next page was being written back by some other
CPU, we can also skip waiting that page to finish writeback.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent ee6ecbcc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment