Re: [PATCH] btrfs: fix typo in btrfs_statfs()

From: David Sterba
Date: Mon Apr 04 2016 - 07:30:57 EST


On Mon, Apr 04, 2016 at 11:13:57AM +0100, Luis de Bethencourt wrote:
> Correct a typo in the chunk_mutex name.
>
> Signed-off-by: Luis de Bethencourt <luisbg@xxxxxxxxxxxxxxx>
> ---
>
> Hi,
>
> I noticed this typo while fixing bug 114281 [0]. If this type of fixes are
> not welcomed I could squash it into the patch for that bug.

> - * holding chunk_muext to avoid allocating new chunks, holding
> + * holding chunk_mutex to avoid allocating new chunks, holding

In this case it's a name of a mutex, so this makes sense eg. when one is
grepping for it. I'm not against fixing typos in comments in general,
it's usually better to fix several at once, eg. per file, see
bb7ab3b92e46da06b580c6f83abe7894dc449cca . If you find more, then please
send an updated patch, I'll queue this one into cleanups and can replace
it later.