Skip to content

Some fixes to lib/fs.c

Andrea Claudi netdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- on 1/2, no code changes, add fixes tag suggested by Phil Sutter and his Acked-by;
- on 2/2, simplify changes using conditional close() calls, as suggested by Phil Sutter.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/fs: avoid double call to mkdir on make_path()lib/fs.c+1 -10 replies
2/2lib/fs: Fix single return points for get_cgroup2_*lib/fs.c+9 -60 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPhil Sutter
1/2A-b
2/2

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

Read the v2 thread

Cover letter [PATCH iproute2 v2 0/2] Some fixes to lib/fs.c

This series contains a couple of fixes and improvements on lib/fs.c
- in functions get_cgroup2_id() and get_cgroup2_path(), fixes cleanup on single return point;
- in function make_path(), avoid to call mkdir() two times in a row.

v1->v2:
- on 1/2, no code changes, add fixes tag suggested by Phil Sutter and his Acked-by;
- on 2/2, simplify changes using conditional close() calls, as suggested by Phil Sutter.

Andrea Claudi (2):
lib/fs: avoid double call to mkdir on make_path() lib/fs: Fix single return points for get_cgroup2_*

 lib/fs.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
Signature · 1 line
2.29.2