Skip to content

pstore: Initial use of cleanup.h

Kees Cook linux-hardening lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v15 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pstore: inode: Convert kfree() usage to __free(kfree)fs/pstore/inode.c+4 -60 replies
2/4pstore: inode: Convert mutex usage to guard(mutex)fs/pstore/inode.c+31 -450 replies
3/4pstore: inode: Use __free(pstore_iput) for inode allocationsfs/pstore/inode.c+5 -50 replies
4/4pstore: inode: Use cleanup.h for struct pstore_privatefs/pstore/inode.c+4 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] pstore: Initial use of cleanup.h

Hi,

Mostly as practice for myself, I rewrote a bunch of the error handling paths in pstore to use the new cleanup.h routines. I'm enjoying this part:
"44 insertions(+), 65 deletions(-)"

It also passes basic testing. :)

-Kees

v2: do not add a global iput macro
v1: https://lore.kernel.org/lkml/[email protected]/

Kees Cook (4):
pstore: inode: Convert kfree() usage to __free(kfree)
pstore: inode: Convert mutex usage to guard(mutex)
pstore: inode: Use __free(pstore_iput) for inode allocations
pstore: inode: Use cleanup.h for struct pstore_private

 fs/pstore/inode.c | 109 +++++++++++++++++++---------------------------
 1 file changed, 44 insertions(+), 65 deletions(-)
Signature · 1 line
2.34.1