mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
Revert "bpftool: Mount bpffs when pinmaps path not under the bpffs"
This reverts commit65dd9cbafewhich is commitda5f8fd1f0upstream. It breaks the build, so should be dropped. Reported-by: Salvatore Bonaccorso <carnil@debian.org> Link: https://lore.kernel.org/r/ZrSe8gZ_GyFv1knq@eldamar.lan Cc: Tao Chen <chen.dylane@gmail.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Quentin Monnet <qmo@kernel.org> Cc: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -1707,10 +1707,6 @@ static int load_with_options(int argc, char **argv, bool first_prog_only)
|
||||
}
|
||||
|
||||
if (pinmaps) {
|
||||
err = create_and_mount_bpffs_dir(pinmaps);
|
||||
if (err)
|
||||
goto err_unpin;
|
||||
|
||||
err = bpf_object__pin_maps(obj, pinmaps);
|
||||
if (err) {
|
||||
p_err("failed to pin all maps");
|
||||
|
||||
Reference in New Issue
Block a user