Re: [PATCH v2 6/6] Btrfs: remove always true check in unlock_up
On 2018年05月18日 11:00, Liu Bo wrote: > As unlock_up() is written as > > for () { >if (!path->locks[i]) >break; >... >if (... && path->locks[i]) { >} > } > > Apparently, @path->locks[i] is always true at this 'if'. > > Signed-off-by: Liu Bo
[PATCH v2 6/6] Btrfs: remove always true check in unlock_up
As unlock_up() is written as for () { if (!path->locks[i]) break; ... if (... && path->locks[i]) { } } Apparently, @path->locks[i] is always true at this 'if'. Signed-off-by: Liu Bo--- fs/btrfs/ctree.c | 2 +- 1 file changed, 1 insertion(+), 1