Skip to content

Commit aa59cdd

Browse files
Don BradyDelphix Engineering
Don Brady
authored and
Delphix Engineering
committed
DLPX-83701 Make function mnt_add_count() traceable (#24)
1 parent c1d1f4a commit aa59cdd

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
@@ -142,7 +142,7 @@ void mnt_release_group_id(struct mount *mnt)
142142
/*
143143
* vfsmount lock must be held for read
144144
*/
145-
static inline void mnt_add_count(struct mount *mnt, int n)
145+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
146146
{
147147
#ifdef CONFIG_SMP
148148
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1514,7 +1514,8 @@ static int do_umount_root(struct super_block *sb)
15141514
return ret;
15151515
}
15161516

1517-
static int do_umount(struct mount *mnt, int flags)
1517+
/* force a bpftrace dynamic function probe here */
1518+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
15181519
{
15191520
struct super_block *sb = mnt->mnt.mnt_sb;
15201521
int retval;

0 commit comments

Comments
 (0)