From: Sebastian Andrzej Siewior Date: Fri, 10 May 2013 18:50:24 +0000 (+0100) Subject: fs/fscache: remove spin_lock() from the condition in while() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~79^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee8be57bc331f00d520c4c8a78ffa9590ed41c2c;p=pandora-kernel.git fs/fscache: remove spin_lock() from the condition in while() The spinlock() within the condition in while() will cause a compile error if it is not a function. This is not a problem on mainline but it does not look pretty and there is no reason to do it that way. That patch writes it a little differently and avoids the double condition. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: David Howells Tested-By: Milosz Tanski Acked-by: Jeff Layton --- Reading git-diff-tree failed