Skip to content

ucounts: misc cleanups

Eric W. Biederman linux-mm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am 877dearzfo.fsf_-_@disp2133

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ucounts: In set_cred_ucounts assume new->ucounts is non-NULLkernel/cred.c+2 -30 replies
2/4ucounts: Remove unnecessary test for NULL ucount in get_ucountskernel/ucount.c+1 -10 replies
3/4ucounts: Add get_ucounts_or_wrap for claritykernel/ucount.c+10 -40 replies
4/4ucounts: Use atomic_long_sub_return for claritykernel/ucount.c+3 -30 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchYu Zhao
SeriesT-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] ucounts: misc cleanups

The following changes are a set of miscellaneous fixes that makes the ucount code a little bit easier to read. There are all things that I ran into while helping hunt the crazy reference count bug.

I am aiming these at the next merge window and 5.16 rather than bug fixes to get into the current 5.15.

Eric W. Biederman (4):
ucounts: In set_cred_ucounts assume new->ucounts is non-NULL
ucounts: Remove unnecessary test for NULL ucount in get_ucounts
ucounts: Add get_ucounts_or_wrap for clarity
ucounts: Use atomic_long_sub_return for clarity

 kernel/cred.c   |  5 ++---
 kernel/ucount.c | 20 +++++++++++++-------
 2 files changed, 15 insertions(+), 10 deletions(-)

Eric