Home
last modified time | relevance | path

Searched refs:mnt_count (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/fs/
Dmount.h23 int mnt_count; member
46 int mnt_count; member
Dnamespace.c148 this_cpu_add(mnt->mnt_pcp->mnt_count, n); in mnt_add_count()
151 mnt->mnt_count += n; in mnt_add_count()
166 count += per_cpu_ptr(mnt->mnt_pcp, cpu)->mnt_count; in mnt_get_count()
171 return mnt->mnt_count; in mnt_get_count()
196 this_cpu_add(mnt->mnt_pcp->mnt_count, 1); in alloc_vfsmnt()
198 mnt->mnt_count = 1; in alloc_vfsmnt()
/Linux-v5.4/fs/nilfs2/
Dsuper.c797 int mnt_count; in nilfs_setup_super() local
808 mnt_count = le16_to_cpu(sbp[0]->s_mnt_count); in nilfs_setup_super()
813 } else if (max_mnt_count >= 0 && mnt_count >= max_mnt_count) { in nilfs_setup_super()
820 sbp[0]->s_mnt_count = cpu_to_le16(mnt_count + 1); in nilfs_setup_super()
/Linux-v5.4/Documentation/filesystems/
Dpath-lookup.rst313 mnt->mnt_count
316 ``mnt_count`` is a per-CPU reference counter on "``mount``" structures.
319 it needs to check with every CPU. Taking a ``mnt_count`` reference
322 ``mnt_count`` doesn't ensure that the mount remains in the namespace and,
326 filesystem. So a reference through ``->mnt_count`` provides a stable
339 the ``mnt_count``. Finally the value in ``mount_lock`` is checked against
341 was a change, the ``mnt_count`` is decremented and the whole process is
380 step. A reference through ``d_lockref`` and ``mnt_count`` is always
852 For ``mnt->mnt_count`` it is safe to take a reference as long as
/Linux-v5.4/fs/ext4/
Dxattr.c2702 static unsigned int mnt_count; in ext4_expand_extra_isize_ea() local
2793 if (error && (mnt_count != le16_to_cpu(sbi->s_es->s_mnt_count))) { in ext4_expand_extra_isize_ea()
2796 mnt_count = le16_to_cpu(sbi->s_es->s_mnt_count); in ext4_expand_extra_isize_ea()