]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: yield during large unlinks
authorTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2013 16:27:47 +0000 (12:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Jul 2013 16:27:47 +0000 (12:27 -0400)
commit3223fd0fe49c4cdcf9302874a2ace4dc13dae22e
treee25d5da6bcad2c7b233c13bed016599f15936a95
parentdecae3aab04735f660c60d07a28d16658477123d
ext4: yield during large unlinks

During large unlink operations on files with extents, we can use a lot
of CPU time.  This adds a cond_resched() call when starting to examine
the next level of a multi-level extent tree.  Multi-level extent trees
are rare in the first place, and this should rarely be executed.

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