Re: [PATCH] Btrfs: remove redundant judgment

From: David Sterba
Date: Thu Apr 07 2022 - 06:51:57 EST


On Thu, Apr 07, 2022 at 01:57:00AM +0000, cgel.zte@xxxxxxxxx wrote:
> < Ok, we can drop the check, have you looked if there are more similar
> < places to update?
> I found six by coccinelle, but they are in different paths.Should I
> send one patch or six?

As this is a simple change it can be in one patch, provided that it's
the same logic (dropping inode check before iput).

I've found only 2 instances with this coccinelle script:

@@
expression E;
@@

* if (E)
* iput(E);
--

not sure where you found 6.