Skip to content

Commit 892046e

Browse files
Don Bradypalash-gandhi
Don Brady
authored andcommitted
DLPX-83701 Make function mnt_add_count() traceable (#24)
1 parent 52012ae commit 892046e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/namespace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void mnt_release_group_id(struct mount *mnt)
169169
/*
170170
* vfsmount lock must be held for read
171171
*/
172-
static inline void mnt_add_count(struct mount *mnt, int n)
172+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
173173
{
174174
#ifdef CONFIG_SMP
175175
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1704,7 +1704,8 @@ static int do_umount_root(struct super_block *sb)
17041704
return ret;
17051705
}
17061706

1707-
static int do_umount(struct mount *mnt, int flags)
1707+
/* force a bpftrace dynamic function probe here */
1708+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
17081709
{
17091710
struct super_block *sb = mnt->mnt.mnt_sb;
17101711
int retval;

0 commit comments

Comments
 (0)