Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229498 > unrolled thread

Re: [PATCH] fs/super.c: use && instead of & for warn_on condition

Started byOleg Nesterov <oleg@redhat.com>
First post2015-09-21 17:50 +0200
Last post2015-09-21 17:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] fs/super.c: use && instead of & for warn_on condition Oleg Nesterov <oleg@redhat.com> - 2015-09-21 17:50 +0200

#1229498 — Re: [PATCH] fs/super.c: use && instead of & for warn_on condition

FromOleg Nesterov <oleg@redhat.com>
Date2015-09-21 17:50 +0200
SubjectRe: [PATCH] fs/super.c: use && instead of & for warn_on condition
Message-ID<qbbvR-2wt-37@gated-at.bofh.it>
On 09/21, Vincent Stehlé wrote:
>
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -1199,7 +1199,7 @@ int __sb_start_write(struct super_block *sb, int level, bool wait)
>  	else
>  		ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1);
>
> -	WARN_ON(force_trylock & !ret);
> +	WARN_ON(force_trylock && !ret);

OOPS! yes, this is a typo, thanks! Harmless in this particular case,
but still.

Acked-by: Oleg Nesterov <oleg@redhat.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web