xiu...@redhat.com wrote: > -error: > +error_locked: > folio_unlock(folio); > folio_put(folio); > +error_unlocked:
I would do: error: if (folio) { folio_unlock(folio); folio_put(folio); } David -- Linux-cachefs mailing list Linux-cachefs@redhat.com https://listman.redhat.com/mailman/listinfo/linux-cachefs