Skip to content

Commit 80907fe

Browse files
Don Bradyprakashsurya
authored andcommitted
DLPX-83701 Make function mnt_add_count() traceable (#16)
1 parent 30d2eb8 commit 80907fe

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
@@ -306,7 +306,7 @@ void mnt_release_group_id(struct mount *mnt)
306306
/*
307307
* vfsmount lock must be held for read
308308
*/
309-
static inline void mnt_add_count(struct mount *mnt, int n)
309+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
310310
{
311311
#ifdef CONFIG_SMP
312312
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1874,7 +1874,8 @@ static int do_umount_root(struct super_block *sb)
18741874
return ret;
18751875
}
18761876

1877-
static int do_umount(struct mount *mnt, int flags)
1877+
/* force a bpftrace dynamic function probe here */
1878+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
18781879
{
18791880
struct super_block *sb = mnt->mnt.mnt_sb;
18801881
int retval;

0 commit comments

Comments
 (0)