From: Artem Bityutskiy Date: Tue, 23 Jun 2009 09:30:43 +0000 (+0300) Subject: UBIFS: slightly optimize write-buffer timer usage X-Git-Tag: v2.6.31-rc3~22^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b335b9d7d5f0b832e90ac469480789c07be80ad;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