Skip to content

Commit 2faf02a

Browse files
Don BradyDelphix Engineering
authored andcommitted
DLPX-83701 Make function mnt_add_count() traceable (#16)
1 parent b4cad30 commit 2faf02a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fs/namespace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void mnt_release_group_id(struct mount *mnt)
326326
/*
327327
* vfsmount lock must be held for read
328328
*/
329-
static inline void mnt_add_count(struct mount *mnt, int n)
329+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
330330
{
331331
#ifdef CONFIG_SMP
332332
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1920,7 +1920,8 @@ static int do_umount_root(struct super_block *sb)
19201920
return ret;
19211921
}
19221922

1923-
static int do_umount(struct mount *mnt, int flags)
1923+
/* force a bpftrace dynamic function probe here */
1924+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
19241925
{
19251926
struct super_block *sb = mnt->mnt.mnt_sb;
19261927
int retval;

0 commit comments

Comments
 (0)