[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211028094724.59043-1-lmb@cloudflare.com>
Date: Thu, 28 Oct 2021 10:47:20 +0100
From: Lorenz Bauer <lmb@...udflare.com>
To: viro@...iv.linux.org.uk, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>
Cc: mszeredi@...hat.com, gregkh@...uxfoundation.org,
Lorenz Bauer <lmb@...udflare.com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: [PATCH bpf-next v3 0/4] Support RENAME_EXCHANGE on bpffs
Add support for renameat2(RENAME_EXCHANGE) on bpffs. This is useful
for atomic upgrades of our sk_lookup control plane.
v3:
- Re-use shmem_exchange (Miklos)
v2:
- Test exchanging a map and a directory (Alexei)
- Use ASSERT macros (Andrii)
Lorenz Bauer (4):
libfs: move shmem_exchange to simple_rename_exchange
libfs: support RENAME_EXCHANGE in simple_rename()
selftests: bpf: convert test_bpffs to ASSERT macros
selftests: bpf: test RENAME_EXCHANGE and RENAME_NOREPLACE on bpffs
fs/libfs.c | 29 ++++++-
include/linux/fs.h | 2 +
mm/shmem.c | 24 +-----
.../selftests/bpf/prog_tests/test_bpffs.c | 85 ++++++++++++++++---
4 files changed, 105 insertions(+), 35 deletions(-)
--
2.32.0
Powered by blists - more mailing lists