diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-05-10 20:50:24 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-06-19 15:16:47 +0200 |
commit | ee8be57bc331f00d520c4c8a78ffa9590ed41c2c (patch) | |
tree | b7033ab0c9a2836105da401a0de09278139fa759 /fs/cachefiles/namei.c | |
parent | Add wait_on_atomic_t() and wake_up_atomic_t() (diff) | |
download | linux-ee8be57bc331f00d520c4c8a78ffa9590ed41c2c.tar.xz linux-ee8be57bc331f00d520c4c8a78ffa9590ed41c2c.zip |
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>
Acked-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cachefiles/namei.c')
0 files changed, 0 insertions, 0 deletions