Skip to content

Commit 539f5b7

Browse files
Don BradyDelphix Engineering
authored andcommitted
DLPX-83701 Make function mnt_add_count() traceable (#16)
1 parent cdf7544 commit 539f5b7

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
@@ -275,7 +275,7 @@ void mnt_release_group_id(struct mount *mnt)
275275
/*
276276
* vfsmount lock must be held for read
277277
*/
278-
static inline void mnt_add_count(struct mount *mnt, int n)
278+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
279279
{
280280
#ifdef CONFIG_SMP
281281
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1834,7 +1834,8 @@ static int do_umount_root(struct super_block *sb)
18341834
return ret;
18351835
}
18361836

1837-
static int do_umount(struct mount *mnt, int flags)
1837+
/* force a bpftrace dynamic function probe here */
1838+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
18381839
{
18391840
struct super_block *sb = mnt->mnt.mnt_sb;
18401841
int retval;

0 commit comments

Comments
 (0)