From: Jan Schmidt Subject: Re: [PATCH v6 2/8] btrfs scrub: added unverified_errors Date: Mon, 25 Jul 2011 09:38:31 +0200 Message-ID: <4E2D1D77.9030601@jan-o-sch.net> References: <4E2D173B.4040302@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org To: Li Zefan Return-path: In-Reply-To: <4E2D173B.4040302@cn.fujitsu.com> List-ID: On 25.07.2011 09:11, Li Zefan wrote: >> + spin_lock(&sdev->stat_lock); >> + ++sdev->stat.read_errors; >> + spin_unlock(&sdev->stat_lock); > > Normally we write "i++" instead of "++i" if the return value is > ignored. Checkpatch didn't say so, it can't be too wrong. For the next time I can do it the other way round if it makes people happier. -Jan