From: Artem Bityutskiy Date: Tue, 23 Jun 2009 09:30:43 +0000 (+0300) Subject: UBIFS: slightly optimize write-buffer timer usage X-Git-Tag: Release-2010-05/1~3^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f9f01281975fe1e57a49c350da09b1b7ad382d;p=pandora-kernel.git UBIFS: slightly optimize write-buffer timer usage This patch adds the following minor optimization: 1. If write-buffer does not use the timer, indicate it with the wbuf->no_timer variable, instead of using the wbuf->softlimit variable. This is better because wbuf->softlimit is of ktime_t type, and the ktime_to_ns function contains 64-bit multiplication. 2. Do not call the 'hrtimer_cancel()' function for write-buffers which do not use timers. 3. Do not cancel the timer in 'ubifs_put_super()' because the synchronization function does this. This patch also removes a confusing comment. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed