[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250508184930.183040-1-jsavitz@redhat.com>
Date: Thu, 8 May 2025 14:49:28 -0400
From: Joel Savitz <jsavitz@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Joel Savitz <jsavitz@...hat.com>,
Tejun Heo <tj@...nel.org>,
Johannes Weiner <hannes@...xchg.org>,
Michal Koutný <mkoutny@...e.com>,
Christian Brauner <brauner@...nel.org>,
Al Viro <viro@...iv.linux.org.uk>,
cgroups@...r.kernel.org
Subject: [PATCH v2 0/2] Minor namespace code simplication
The two patches are independent of each other. The first patch removes
unnecssary NULL guards from free_nsproxy() and create_new_namespaces()
in line with other usage of the put_*_ns() call sites. The second patch
slightly reduces the size of the kernel when CONFIG_CGROUPS is not
selected.
Joel Savitz (2):
kernel/nsproxy: remove unnecessary guards
include/cgroup: separate {get,put}_cgroup_ns no-op case
Changes from v1:
- now removing the guards instead of adding them where missing since
checking that all calls in the NULL case were already no-ops
- added second patch
include/linux/cgroup.h | 26 ++++++++++++++------------
kernel/nsproxy.c | 30 ++++++++++--------------------
2 files changed, 24 insertions(+), 32 deletions(-)
--
2.45.2
Powered by blists - more mailing lists