From: Andrea Claudi <aclaudi@redhat.com>
To: netdev@vger.kernel.org
Cc: stephen@networkplumber.org, dsahern@gmail.com
Subject: [PATCH iproute2 v2 0/2] Some fixes to lib/fs.c
Date: Mon, 22 Feb 2021 19:14:30 +0100 [thread overview]
Message-ID: <cover.1614016514.git.aclaudi@redhat.com> (raw)
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(-)
--
2.29.2
next reply other threads:[~2021-02-22 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 18:14 Andrea Claudi [this message]
2021-02-22 18:14 ` [PATCH iproute2 v2 1/2] lib/fs: avoid double call to mkdir on make_path() Andrea Claudi
2021-02-22 18:14 ` [PATCH iproute2 v2 2/2] lib/fs: Fix single return points for get_cgroup2_* Andrea Claudi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1614016514.git.aclaudi@redhat.com \
--to=aclaudi@redhat.com \
--cc=dsahern@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.