OSDN Git Service

perf namespaces: Use the need_setns() accessors instead of accessing ->need_setns...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Apr 2023 01:11:58 +0000 (22:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Apr 2023 01:21:54 +0000 (22:21 -0300)
commit4d623903f1ed63a06e469c4ce45231440d1be5b6
tree1b84231c4d0ebf3ff1d67b16eda49e296772189c
parentc35ce1d918c12900375a60165c908de47856900d
perf namespaces: Use the need_setns() accessors instead of accessing ->need_setns directly

This uses pre-existing accessors and reduces the use of
RC_CHK_ACCESS(nsi).

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/namespaces.c