Skip to content

Commit a43c6ff

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

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
@@ -163,7 +163,7 @@ void mnt_release_group_id(struct mount *mnt)
163163
/*
164164
* vfsmount lock must be held for read
165165
*/
166-
static inline void mnt_add_count(struct mount *mnt, int n)
166+
static noinline __noclone void mnt_add_count(struct mount *mnt, int n)
167167
{
168168
#ifdef CONFIG_SMP
169169
this_cpu_add(mnt->mnt_pcp->mnt_count, n);
@@ -1590,7 +1590,8 @@ static int do_umount_root(struct super_block *sb)
15901590
return ret;
15911591
}
15921592

1593-
static int do_umount(struct mount *mnt, int flags)
1593+
/* force a bpftrace dynamic function probe here */
1594+
static noinline __noclone int do_umount(struct mount *mnt, int flags)
15941595
{
15951596
struct super_block *sb = mnt->mnt.mnt_sb;
15961597
int retval;

0 commit comments

Comments
 (0)