Skip to content

Commit

Permalink
DLPX-83701 Make function mnt_add_count() traceable (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Brady authored and Delphix Engineering committed Aug 19, 2023
1 parent 79160f2 commit 6ec2f14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void mnt_release_group_id(struct mount *mnt)
/*
* vfsmount lock must be held for read
*/
static inline void mnt_add_count(struct mount *mnt, int n)
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
{
#ifdef CONFIG_SMP
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
Expand Down Expand Up @@ -1590,7 +1590,8 @@ static int do_umount_root(struct super_block *sb)
return ret;
}

static int do_umount(struct mount *mnt, int flags)
/* force a bpftrace dynamic function probe here */
static noinline __noclone int do_umount(struct mount *mnt, int flags)
{
struct super_block *sb = mnt->mnt.mnt_sb;
int retval;
Expand Down

0 comments on commit 6ec2f14

Please sign in to comment.