mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
UPSTREAM: ANDROID: fuse-bpf: Fix non-fusebpf build
Added #ifdefs around fuse-bpf init/cleanup code Bug: 202785178 Test: builds with and without CONFIG_FUSE_BPF Signed-off-by: Daniel Rosenberg <drosen@google.com> Change-Id: Ie15bb04e439b496e4842303437b3f55c3da14f2c
This commit is contained in:
parent
3665b480d1
commit
5387caaa4b
1 changed files with 6 additions and 0 deletions
|
|
@ -1911,17 +1911,21 @@ static int __init fuse_init(void)
|
|||
if (res)
|
||||
goto err_sysfs_cleanup;
|
||||
|
||||
#ifdef CONFIG_FUSE_BPF
|
||||
res = fuse_bpf_init();
|
||||
if (res)
|
||||
goto err_ctl_cleanup;
|
||||
#endif
|
||||
|
||||
sanitize_global_limit(&max_user_bgreq);
|
||||
sanitize_global_limit(&max_user_congthresh);
|
||||
|
||||
return 0;
|
||||
|
||||
#ifdef CONFIG_FUSE_BPF
|
||||
err_ctl_cleanup:
|
||||
fuse_ctl_cleanup();
|
||||
#endif
|
||||
err_sysfs_cleanup:
|
||||
fuse_sysfs_cleanup();
|
||||
err_dev_cleanup:
|
||||
|
|
@ -1939,7 +1943,9 @@ static void __exit fuse_exit(void)
|
|||
fuse_ctl_cleanup();
|
||||
fuse_sysfs_cleanup();
|
||||
fuse_fs_cleanup();
|
||||
#ifdef CONFIG_FUSE_BPF
|
||||
fuse_bpf_cleanup();
|
||||
#endif
|
||||
fuse_dev_cleanup();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue