/linux-master/fs/nfsd/ |
H A D | nfs4xdr.c | 2695 if (cur.dentry == cur.mnt->mnt_root) { 2859 if (path.dentry != path.mnt->mnt_root) 3152 struct super_block *sb = args->exp->ex_path.mnt->mnt_sb; 3294 args->dentry == args->exp->ex_path.mnt->mnt_root) { 3504 .mnt = exp->ex_path.mnt,
|
H A D | nfs4state.c | 5961 path.mnt = currentfh->fh_export->ex_path.mnt;
|
H A D | vfs.c | 126 struct path path = {.mnt = mntget(exp->ex_path.mnt), 137 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && 163 * This is subtle: path.dentry is *not* on path.mnt 165 * original mnt is pinned down by exp, so we should 183 while (path->dentry == path->mnt->mnt_root && follow_up(path)) 193 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), 870 path.mnt [all...] |
/linux-master/fs/nfs/ |
H A D | inode.c | 871 if ((path->mnt->mnt_flags & MNT_NOATIME) || 872 ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)))
|
/linux-master/fs/erofs/ |
H A D | fscache.c | 455 struct vfsmount *mnt = kern_mount(&erofs_anon_fs_type); local 456 if (IS_ERR(mnt)) { 457 err = PTR_ERR(mnt); 460 erofs_pseudo_mnt = mnt;
|
/linux-master/fs/smb/server/ |
H A D | vfs.c | 104 err = mnt_want_write(parent_path->mnt); 122 path->mnt = mntget(parent_path->mnt); 137 mnt_drop_write(parent_path->mnt); 189 err = vfs_create(mnt_idmap(path.mnt), d_inode(path.dentry), 228 idmap = mnt_idmap(path.mnt); 612 idmap = mnt_idmap(path->mnt); 663 if (oldpath.mnt != newpath.mnt) { 668 err = vfs_link(oldpath.dentry, mnt_idmap(newpath.mnt), [all...] |
H A D | smb2pdu.c | 2318 struct mnt_idmap *idmap = mnt_idmap(path->mnt); 2414 struct mnt_idmap *idmap = mnt_idmap(path->mnt); 2450 struct mnt_idmap *idmap = mnt_idmap(path->mnt); 2517 rc = ksmbd_vfs_set_dos_attrib_xattr(mnt_idmap(path->mnt), path, &da, true); 2535 rc = ksmbd_vfs_get_dos_attrib_xattr(mnt_idmap(path->mnt), 3092 idmap = mnt_idmap(path.mnt); 3197 idmap = mnt_idmap(path.mnt); 5428 min_t(unsigned int, path.mnt->mnt_sb->s_blocksize, 4096);
|
/linux-master/net/unix/ |
H A D | af_unix.c | 618 u->path.mnt = NULL; 984 u->path.mnt = NULL; 1225 idmap = mnt_idmap(parent.mnt); 1239 u->path.mnt = mntget(parent.mnt);
|
/linux-master/mm/ |
H A D | shmem.c | 4832 static struct file *__shmem_file_setup(struct vfsmount *mnt, const char *name, argument 4838 if (IS_ERR(mnt)) 4839 return ERR_CAST(mnt); 4847 if (is_idmapped_mnt(mnt)) 4850 inode = shmem_get_inode(&nop_mnt_idmap, mnt->mnt_sb, NULL, 4861 res = alloc_file_pseudo(inode, mnt, name, O_RDWR, 4898 * @mnt: the tmpfs mount where the file will be created 4903 struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt, const char *name, argument 4906 return __shmem_file_setup(mnt, name, size, flags, 0);
|
/linux-master/include/linux/ |
H A D | shmem_fs.h | 93 extern struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt,
|
H A D | fs.h | 2508 extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); 2620 return mnt_idmap(file->f_path.mnt); 2625 * @mnt: the mount to check 2627 * If @mnt has an non @nop_mnt_idmap attached to it then @mnt is mapped. 2631 static inline bool is_idmapped_mnt(const struct vfsmount *mnt) argument 2633 return mnt_idmap(mnt) != &nop_mnt_idmap; 2647 static inline struct file *file_open_root_mnt(struct vfsmount *mnt, argument 2650 return file_open_root(&(struct path){.mnt = mnt, [all...] |
/linux-master/fs/fuse/ |
H A D | dir.c | 311 struct vfsmount *mnt; local 314 fsc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); 322 mnt = fc_mount(fsc); 323 if (!IS_ERR(mnt)) 324 mntget(mnt); 327 return mnt;
|
/linux-master/security/selinux/ |
H A D | selinuxfs.c | 2147 selinux_null.mnt = kern_mount(&sel_fs_type); 2148 if (IS_ERR(selinux_null.mnt)) { 2150 err = PTR_ERR(selinux_null.mnt); 2151 selinux_null.mnt = NULL; 2155 selinux_null.dentry = d_hash_and_lookup(selinux_null.mnt->mnt_root,
|
/linux-master/security/ |
H A D | security.c | 1430 * Check permission before obtaining filesystem statistics for the @mnt 1465 * @mnt: mounted filesystem 1468 * Check permission before the @mnt file system is unmounted. 1472 int security_sb_umount(struct vfsmount *mnt, int flags) argument 1474 return call_int_hook(sb_umount, mnt, flags);
|
/linux-master/fs/ |
H A D | namei.c | 548 mntget(path->mnt); 562 mntput(path->mnt); 602 p->path.mnt = NULL; 645 * path_connected - Verify that a dentry is below mnt.mnt_root 646 * @mnt: The mountpoint to check. 652 static bool path_connected(struct vfsmount *mnt, struct dentry *dentry) argument 654 struct super_block *sb = mnt->mnt_sb; 657 if (mnt->mnt_root == sb->s_root) 660 return is_subdir(dentry, mnt->mnt_root); 696 nd->path.mnt 1274 struct mount *mnt = real_mount(path->mnt); local 1380 struct vfsmount *mnt = path->mnt; local 1468 struct vfsmount *mnt = path->mnt; local 2656 vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt, const char *name, unsigned int flags, struct path *path) argument [all...] |
H A D | exec.c | 113 return (path->mnt->mnt_flags & MNT_NOEXEC) || 114 (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); 1653 if (!mnt_may_suid(file->f_path.mnt))
|
H A D | inode.c | 1803 static bool relatime_need_update(struct vfsmount *mnt, struct inode *inode, argument 1808 if (!(mnt->mnt_flags & MNT_RELATIME)) 1936 struct vfsmount *mnt = path->mnt; local 1945 if (HAS_UNMAPPED_ID(mnt_idmap(mnt), inode)) 1953 if (mnt->mnt_flags & MNT_NOATIME) 1955 if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) 1960 if (!relatime_need_update(mnt, inode, now)) 1972 struct vfsmount *mnt = path->mnt; local [all...] |
/linux-master/kernel/trace/ |
H A D | trace.c | 9596 struct vfsmount *mnt; local 9607 mnt = vfs_submount(mntpt, type, "tracefs", NULL); 9609 if (IS_ERR(mnt)) 9611 mntget(mnt); 9613 return mnt;
|
/linux-master/fs/overlayfs/ |
H A D | copy_up.c | 647 struct path upperpath = { .mnt = ovl_upper_mnt(ofs), .dentry = temp }; 744 struct path path = { .mnt = ovl_upper_mnt(ofs) };
|
/linux-master/fs/f2fs/ |
H A D | file.c | 2810 if (file_in->f_path.mnt != file_out->f_path.mnt ||
|
/linux-master/drivers/scsi/aacraid/ |
H A D | aachba.c | 656 (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) && 657 (le32_to_cpu(dresp->mnt[0].state) != FSCS_HIDDEN)) { 659 dresp->mnt[0].fileinfo.bdevinfo.block_size = 0x200; 663 le32_to_cpu(dresp->mnt[0].fileinfo.bdevinfo.block_size); 667 dresp->mnt[0].fileinfo.bdevinfo 671 if (dresp->mnt[0].state & cpu_to_le32(FSCS_NOT_READY)) 675 fsa_dev_ptr->type = le32_to_cpu(dresp->mnt[0].vol); 677 = ((u64)le32_to_cpu(dresp->mnt[0].capacity)) + 678 (((u64)le32_to_cpu(dresp->mnt[0].capacityhigh)) << 32); 679 fsa_dev_ptr->ro = ((le32_to_cpu(dresp->mnt[ [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | hugetlb_reparenting_test.sh | 39 MNT='/mnt/huge/' 192 rm -rf /mnt/huge/*
|
H A D | charge_reserved_hugetlb.sh | 54 if [[ -e /mnt/huge ]]; then 55 rm -rf /mnt/huge/* 56 umount /mnt/huge || echo error 57 rmdir /mnt/huge 262 if [[ -e /mnt/huge ]]; then 263 rm -rf /mnt/huge/* 264 umount /mnt/huge 265 rmdir /mnt/huge 292 mkdir -p /mnt/huge 293 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/hug [all...] |
/linux-master/tools/perf/util/ |
H A D | mem-events.c | 178 static bool perf_pmu__mem_events_supported(const char *mnt, struct perf_pmu *pmu, argument 187 scnprintf(path, PATH_MAX, "%s/devices/%s/events/%s", mnt, pmu->name, e->event_name); 194 const char *mnt = sysfs__mount(); local 198 if (!mnt) 211 e->supported |= perf_pmu__mem_events_supported(mnt, pmu, e); 237 const char *mnt = sysfs__mount(); local 258 if (!s || !perf_pmu__mem_events_supported(mnt, pmu, e))
|
H A D | cpumap.c | 430 const char *mnt; local 438 mnt = sysfs__mountpoint(); 439 if (!mnt) 443 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); 454 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); 470 const char *mnt; local 477 mnt = sysfs__mountpoint(); 478 if (!mnt) 482 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); 556 const char *mnt; local [all...] |