]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/fscache: remove spin_lock() from the condition in while()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 10 May 2013 18:50:24 +0000 (19:50 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 31 May 2013 20:32:57 +0000 (21:32 +0100)
commitdc6d0996f9ea1f42038bf4fb57209a7cda074b25
treeb7033ab0c9a2836105da401a0de09278139fa759
parent7b0b224d45d0b9e5a71ae9084adacebaba93cc37
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 <bigeasy@linutronix.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-By: Milosz Tanski <milosz@adfin.com>
fs/fscache/page.c