From 4821180ff8e6a3a81f0200a6df89bbcdf0125d33 Mon Sep 17 00:00:00 2001 From: Don Brady Date: Wed, 30 Nov 2022 14:35:33 -0700 Subject: [PATCH] DLPX-83701 Make function mnt_add_count() traceable --- fs/namespace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 417ea402309e8..96c1a5d6a5ee8 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -142,7 +142,7 @@ void mnt_release_group_id(struct mount *mnt) /* * vfsmount lock must be held for read */ -static inline void mnt_add_count(struct mount *mnt, int n) +static noinline __noclone void mnt_add_count(struct mount *mnt, int n) { #ifdef CONFIG_SMP this_cpu_add(mnt->mnt_pcp->mnt_count, n); @@ -1514,7 +1514,8 @@ static int do_umount_root(struct super_block *sb) return ret; } -static int do_umount(struct mount *mnt, int flags) +/* force a bpftrace dynamic function probe here */ +static noinline __noclone int do_umount(struct mount *mnt, int flags) { struct super_block *sb = mnt->mnt.mnt_sb; int retval;