Home
last modified time | relevance | path

Searched refs:mnt (Results 1 – 25 of 53) sorted by relevance

123

/linux-2.4.37.9/fs/
Dnamespace.c33 static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry) in hash() argument
35 unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES); in hash()
43 struct vfsmount *mnt = kmem_cache_alloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt() local
44 if (mnt) { in alloc_vfsmnt()
45 memset(mnt, 0, sizeof(struct vfsmount)); in alloc_vfsmnt()
46 atomic_set(&mnt->mnt_count,1); in alloc_vfsmnt()
47 INIT_LIST_HEAD(&mnt->mnt_hash); in alloc_vfsmnt()
48 INIT_LIST_HEAD(&mnt->mnt_child); in alloc_vfsmnt()
49 INIT_LIST_HEAD(&mnt->mnt_mounts); in alloc_vfsmnt()
50 INIT_LIST_HEAD(&mnt->mnt_list); in alloc_vfsmnt()
[all …]
Dnamei.c256 mntput(nd->mnt); in path_release()
365 static inline int __follow_up(struct vfsmount **mnt, struct dentry **base) in __follow_up() argument
370 parent=(*mnt)->mnt_parent; in __follow_up()
371 if (parent == *mnt) { in __follow_up()
376 dentry=dget((*mnt)->mnt_mountpoint); in __follow_up()
380 mntput(*mnt); in __follow_up()
381 *mnt = parent; in __follow_up()
385 int follow_up(struct vfsmount **mnt, struct dentry **dentry) in follow_up() argument
387 return __follow_up(mnt, dentry); in follow_up()
390 static inline int __follow_down(struct vfsmount **mnt, struct dentry **dentry) in __follow_down() argument
[all …]
Dsuper.c417 void free_vfsmnt(struct vfsmount *mnt);
679 if (nd.mnt->mnt_flags & MNT_NODEV) in get_sb_bdev()
795 struct vfsmount *mnt; in do_kern_mount() local
800 mnt = alloc_vfsmnt(name); in do_kern_mount()
801 if (!mnt) in do_kern_mount()
813 mnt->mnt_sb = sb; in do_kern_mount()
814 mnt->mnt_root = dget(sb->s_root); in do_kern_mount()
815 mnt->mnt_mountpoint = sb->s_root; in do_kern_mount()
816 mnt->mnt_parent = mnt; in do_kern_mount()
819 return mnt; in do_kern_mount()
[all …]
Dopen.c414 set_fs_pwd(current->fs, nd.mnt, nd.dentry); in sys_chdir()
427 struct vfsmount *mnt; in sys_fchdir() local
436 mnt = file->f_vfsmnt; in sys_fchdir()
445 set_fs_pwd(current->fs, mnt, dentry); in sys_fchdir()
470 set_fs_root(current->fs, nd.mnt, nd.dentry); in sys_chroot()
671 return dentry_open(nd.dentry, nd.mnt, flags); in filp_open()
676 struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags) in dentry_open() argument
697 f->f_vfsmnt = mnt; in dentry_open()
734 mntput(mnt); in dentry_open()
Dfile_table.c106 struct vfsmount * mnt = file->f_vfsmnt; in fput() local
128 mntput(mnt); in fput()
/linux-2.4.37.9/fs/smbfs/
Dinode.c301 parse_options(struct smb_mount_data_kernel *mnt, char *options) in parse_options() argument
324 mnt->version = value; in parse_options()
327 mnt->uid = value; in parse_options()
331 mnt->gid = value; in parse_options()
335 mnt->file_mode = (value & S_IRWXUGO) | S_IFREG; in parse_options()
339 mnt->dir_mode = (value & S_IRWXUGO) | S_IFDIR; in parse_options()
343 strncpy(mnt->codepage.local_name, optarg, in parse_options()
347 strncpy(mnt->codepage.remote_name, optarg, in parse_options()
351 mnt->ttl = value; in parse_options()
354 mnt->timeo = value; in parse_options()
[all …]
Dioctl.c34 result = put_user(NEW_TO_OLD_UID(server->mnt->mounted_uid), in smb_ioctl()
38 result = put_user(server->mnt->mounted_uid, (uid_t *) arg); in smb_ioctl()
Dproc.c764 interruptible_sleep_on_timeout(&server->wait, server->mnt->timeo*HZ); in smb_retry()
857 if (current->uid != server->mnt->mounted_uid && in smb_newconn()
891 server->mnt->flags |= SMB_MOUNT_WIN95; in smb_newconn()
905 if (server->mnt->flags & SMB_MOUNT_OLDATTR) { in smb_newconn()
907 } else if (server->mnt->flags & SMB_MOUNT_DIRATTR) { in smb_newconn()
1711 fattr->f_uid = server->mnt->uid; in smb_init_dirent()
1712 fattr->f_gid = server->mnt->gid; in smb_init_dirent()
1723 fattr->f_mode = server->mnt->file_mode; in smb_finish_dirent()
1725 fattr->f_mode = server->mnt->dir_mode; in smb_finish_dirent()
1974 if (server->mnt->flags & SMB_MOUNT_UID) in smb_decode_unix_basic()
[all …]
/linux-2.4.37.9/include/linux/
Dmount.h34 static inline struct vfsmount *mntget(struct vfsmount *mnt) in mntget() argument
36 if (mnt) in mntget()
37 atomic_inc(&mnt->mnt_count); in mntget()
38 return mnt; in mntget()
41 extern void __mntput(struct vfsmount *mnt);
43 static inline void mntput(struct vfsmount *mnt) in mntput() argument
45 if (mnt) { in mntput()
46 if (atomic_dec_and_test(&mnt->mnt_count)) in mntput()
47 __mntput(mnt); in mntput()
Dfs_struct.h29 struct vfsmount *mnt, in set_fs_root() argument
37 fs->rootmnt = mntget(mnt); in set_fs_root()
52 struct vfsmount *mnt, in set_fs_pwd() argument
60 fs->pwdmnt = mntget(mnt); in set_fs_pwd()
Dsmb_fs_sb.h27 struct smb_mount_data_kernel *mnt; member
/linux-2.4.37.9/fs/intermezzo/
Dfileset.c395 struct vfsmount *mnt; in izo_alloc_vfsmnt() local
396 PRESTO_ALLOC(mnt, sizeof(*mnt)); in izo_alloc_vfsmnt()
397 if (mnt) { in izo_alloc_vfsmnt()
398 memset(mnt, 0, sizeof(struct vfsmount)); in izo_alloc_vfsmnt()
399 atomic_set(&mnt->mnt_count,1); in izo_alloc_vfsmnt()
400 INIT_LIST_HEAD(&mnt->mnt_hash); in izo_alloc_vfsmnt()
401 INIT_LIST_HEAD(&mnt->mnt_child); in izo_alloc_vfsmnt()
402 INIT_LIST_HEAD(&mnt->mnt_mounts); in izo_alloc_vfsmnt()
403 INIT_LIST_HEAD(&mnt->mnt_list); in izo_alloc_vfsmnt()
405 return mnt; in izo_alloc_vfsmnt()
[all …]
/linux-2.4.37.9/fs/autofs4/
Dexpire.c21 static inline int is_vfsmnt_tree_busy(struct vfsmount *mnt) in is_vfsmnt_tree_busy() argument
23 struct vfsmount *this_parent = mnt; in is_vfsmnt_tree_busy()
27 count = atomic_read(&mnt->mnt_count) - 1; in is_vfsmnt_tree_busy()
32 mnt, this_parent, next)); in is_vfsmnt_tree_busy()
55 if (this_parent != mnt) { in is_vfsmnt_tree_busy()
67 static int check_vfsmnt(struct vfsmount *mnt, struct dentry *dentry) in check_vfsmnt() argument
70 struct vfsmount *vfs = lookup_mnt(mnt, dentry); in check_vfsmnt()
153 struct vfsmount *mnt, in autofs4_expire() argument
199 if (!is_tree_busy(mnt, dentry)) { in autofs4_expire()
218 struct vfsmount *mnt, in autofs4_expire_run() argument
[all …]
/linux-2.4.37.9/fs/autofs/
Ddirhash.c38 struct vfsmount *mnt) in autofs_expire() argument
83 mntget(mnt); in autofs_expire()
85 if (!follow_down(&mnt, &dentry)) { in autofs_expire()
87 mntput(mnt); in autofs_expire()
91 while (d_mountpoint(dentry) && follow_down(&mnt, &dentry)) in autofs_expire()
95 if ( may_umount(mnt) == 0 ) { in autofs_expire()
96 mntput(mnt); in autofs_expire()
101 mntput(mnt); in autofs_expire()
Dautofs_i.h136 … autofs_dir_ent *autofs_expire(struct super_block *,struct autofs_sb_info *, struct vfsmount *mnt);
/linux-2.4.37.9/fs/proc/
Dbase.c44 static int proc_fd_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) in proc_fd_link() argument
47 *mnt = mntget(inode->u.proc_i.file->f_vfsmnt); in proc_fd_link()
54 static int proc_exe_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) in proc_exe_link() argument
73 *mnt = mntget(vma->vm_file->f_vfsmnt); in proc_exe_link()
86 static int proc_cwd_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) in proc_cwd_link() argument
97 *mnt = mntget(fs->pwdmnt); in proc_cwd_link()
106 static int proc_root_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) in proc_root_link() argument
117 *mnt = mntget(fs->rootmnt); in proc_root_link()
231 struct vfsmount *our_vfsmnt, *vfsmnt, *mnt; in proc_check_root() local
243 mnt = vfsmnt; in proc_check_root()
[all …]
/linux-2.4.37.9/arch/sparc64/solaris/
Dfs.c409 static int report_statvfs(struct vfsmount *mnt, struct inode *inode, u32 buf) in report_statvfs() argument
415 error = vfs_statfs(mnt->mnt_sb, &s); in report_statvfs()
417 const char *p = mnt->mnt_sb->s_type->name; in report_statvfs()
423 if (mnt->mnt_flags & MNT_NOSUID) i |= 2; in report_statvfs()
443 static int report_statvfs64(struct vfsmount *mnt, struct inode *inode, u32 buf) in report_statvfs64() argument
449 error = vfs_statfs(mnt->mnt_sb, &s); in report_statvfs64()
451 const char *p = mnt->mnt_sb->s_type->name; in report_statvfs64()
457 if (mnt->mnt_flags & MNT_NOSUID) i |= 2; in report_statvfs64()
485 error = report_statvfs(nd.mnt, inode, buf); in solaris_statvfs()
515 error = report_statvfs64(nd.mnt, inode, buf); in solaris_statvfs64()
/linux-2.4.37.9/drivers/hotplug/
Dpci_hotplug_core.c397 struct vfsmount *mnt; in get_mount() local
408 mnt = kern_mount (&pcihpfs_fs_type); in get_mount()
409 if (IS_ERR(mnt)) { in get_mount()
415 pcihpfs_mount = mnt; in get_mount()
423 mntput(mnt); in get_mount()
432 struct vfsmount *mnt; in remove_mount() local
435 mnt = pcihpfs_mount; in remove_mount()
441 mntput(mnt); in remove_mount()
/linux-2.4.37.9/drivers/scsi/aacraid/
Daachba.c281 (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) && in aac_get_containers()
282 (le32_to_cpu(dresp->mnt[0].state) != FSCS_HIDDEN)) { in aac_get_containers()
284 fsa_dev_ptr->type[index] = le32_to_cpu(dresp->mnt[0].vol); in aac_get_containers()
285 fsa_dev_ptr->size[index] = le32_to_cpu(dresp->mnt[0].capacity); in aac_get_containers()
286 if (le32_to_cpu(dresp->mnt[0].state) & FSCS_READONLY) in aac_get_containers()
405 (le32_to_cpu(dresp->mnt[0].vol) != CT_NONE) && in probe_container()
406 (le32_to_cpu(dresp->mnt[0].state) != FSCS_HIDDEN)) { in probe_container()
408 fsa_dev_ptr->type[cid] = le32_to_cpu(dresp->mnt[0].vol); in probe_container()
409 fsa_dev_ptr->size[cid] = le32_to_cpu(dresp->mnt[0].capacity); in probe_container()
410 if (le32_to_cpu(dresp->mnt[0].state) & FSCS_READONLY) in probe_container()
/linux-2.4.37.9/Documentation/filesystems/
Dbfs.txt15 # mount -t bfs /dev/loop0 /mnt/stand
25 # mount -t bfs -o loop stand.img /mnt/stand
/linux-2.4.37.9/kernel/
Dkmod.c80 struct vfsmount *mnt = our_fs->altrootmnt; in use_init_fs_context() local
86 mntput(mnt); in use_init_fs_context()
/linux-2.4.37.9/net/unix/
Daf_unix.c343 struct vfsmount *mnt; in unix_release_sock() local
356 mnt = sk->protinfo.af_unix.mnt; in unix_release_sock()
357 sk->protinfo.af_unix.mnt=NULL; in unix_release_sock()
395 mntput(mnt); in unix_release_sock()
475 sk->protinfo.af_unix.mnt=NULL; in unix_create1()
737 sk->protinfo.af_unix.mnt = nd.mnt; in unix_bind()
979 newsk->protinfo.af_unix.mnt=mntget(other->protinfo.af_unix.mnt); in unix_stream_connect()
/linux-2.4.37.9/fs/xfs/
Dxfs_mount.h172 #define XFS_QM_INIT(mp, mnt, fl) \ argument
173 (*(mp)->m_qm_ops.xfs_qminit)(mp, mnt, fl)
174 #define XFS_QM_MOUNT(mp, mnt, fl, mfsi_flags) \ argument
175 (*(mp)->m_qm_ops.xfs_qmmount)(mp, mnt, fl, mfsi_flags)
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/
Dinterface.c80 nd.mnt = mntget(hwgfs_vfsmount); in hwgfs_decode()
274 nd.mnt = mntget(hwgfs_vfsmount); in hwgfs_find_handle()
/linux-2.4.37.9/fs/nfsd/
Dexport.c293 exp->ex_mnt = mntget(nd.mnt); in exp_export()
329 struct vfsmount *mnt; in exp_do_unexport() local
339 mnt = unexp->ex_mnt; in exp_do_unexport()
344 mntput(mnt); in exp_do_unexport()
430 nd.mnt = mntget(exp->ex_mnt); in exp_rootfh()

123