/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | mount.h | 34 static inline struct vfsmount *mntget(struct vfsmount *mnt) argument 36 if (mnt) 37 atomic_inc(&mnt->mnt_count); 38 return mnt; 41 extern void __mntput(struct vfsmount *mnt); 43 static inline void mntput(struct vfsmount *mnt) argument 45 if (mnt) { 46 if (atomic_dec_and_test(&mnt->mnt_count)) 47 __mntput(mnt);
|
H A D | fs_struct.h | 24 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 29 struct vfsmount *mnt, 37 fs->rootmnt = mntget(mnt); 47 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 52 struct vfsmount *mnt, 60 fs->pwdmnt = mntget(mnt); 28 set_fs_root(struct fs_struct *fs, struct vfsmount *mnt, struct dentry *dentry) argument 51 set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt, struct dentry *dentry) argument
|
H A D | smb_fs_sb.h | 27 struct smb_mount_data_kernel *mnt; member in struct:smb_sb_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | mount.h | 34 static inline struct vfsmount *mntget(struct vfsmount *mnt) argument 36 if (mnt) 37 atomic_inc(&mnt->mnt_count); 38 return mnt; 41 extern void __mntput(struct vfsmount *mnt); 43 static inline void mntput(struct vfsmount *mnt) argument 45 if (mnt) { 46 if (atomic_dec_and_test(&mnt->mnt_count)) 47 __mntput(mnt);
|
H A D | fs_struct.h | 24 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. 29 struct vfsmount *mnt, 37 fs->rootmnt = mntget(mnt); 47 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values. 52 struct vfsmount *mnt, 60 fs->pwdmnt = mntget(mnt); 28 set_fs_root(struct fs_struct *fs, struct vfsmount *mnt, struct dentry *dentry) argument 51 set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt, struct dentry *dentry) argument
|
H A D | smb_fs_sb.h | 27 struct smb_mount_data_kernel *mnt; member in struct:smb_sb_info
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/ |
H A D | namespace.c | 34 static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry) argument 36 unsigned long tmp = ((unsigned long) mnt / L1_CACHE_BYTES); 44 struct vfsmount *mnt = kmem_cache_alloc(mnt_cache, GFP_KERNEL); local 45 if (mnt) { 46 memset(mnt, 0, sizeof(struct vfsmount)); 47 atomic_set(&mnt->mnt_count,1); 48 INIT_LIST_HEAD(&mnt->mnt_hash); 49 INIT_LIST_HEAD(&mnt->mnt_child); 50 INIT_LIST_HEAD(&mnt->mnt_mounts); 51 INIT_LIST_HEAD(&mnt 64 free_vfsmnt(struct vfsmount *mnt) argument 71 lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) argument 89 check_mnt(struct vfsmount *mnt) argument 98 detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd) argument 109 attach_mnt(struct vfsmount *mnt, struct nameidata *nd) argument 138 struct vfsmount *mnt = alloc_vfsmnt(old->mnt_devname); local 151 __mntput(struct vfsmount *mnt) argument 194 struct vfsmount *mnt = v; local 253 may_umount(struct vfsmount *mnt) argument 260 umount_tree(struct vfsmount *mnt) argument 286 do_umount(struct vfsmount *mnt, int flags) argument 413 copy_tree(struct vfsmount *mnt, struct dentry *dentry) argument 451 graft_tree(struct vfsmount *mnt, struct nameidata *nd) argument 487 struct vfsmount *mnt = NULL; local 613 struct vfsmount *mnt; local 986 struct vfsmount *mnt; local [all...] |
H A D | namei.c | 256 mntput(nd->mnt); 350 static inline int __follow_up(struct vfsmount **mnt, struct dentry **base) argument 355 parent=(*mnt)->mnt_parent; 356 if (parent == *mnt) { 361 dentry=dget((*mnt)->mnt_mountpoint); 365 mntput(*mnt); 366 *mnt = parent; 370 int follow_up(struct vfsmount **mnt, struct dentry **dentry) argument 372 return __follow_up(mnt, dentry); 375 static inline int __follow_down(struct vfsmount **mnt, struc argument 393 follow_down(struct vfsmount **mnt, struct dentry **dentry) argument 690 struct vfsmount *mnt = NULL, *oldmnt; local [all...] |
H A D | super.c | 412 void free_vfsmnt(struct vfsmount *mnt); 670 if (nd.mnt->mnt_flags & MNT_NODEV) 786 struct vfsmount *mnt; local 791 mnt = alloc_vfsmnt(name); 792 if (!mnt) 804 mnt->mnt_sb = sb; 805 mnt->mnt_root = dget(sb->s_root); 806 mnt->mnt_mountpoint = sb->s_root; 807 mnt->mnt_parent = mnt; [all...] |
H A D | file_table.c | 103 struct vfsmount * mnt = file->f_vfsmnt; local 125 mntput(mnt);
|
H A D | open.c | 397 set_fs_pwd(current->fs, nd.mnt, nd.dentry); 410 struct vfsmount *mnt; local 419 mnt = file->f_vfsmnt; 428 set_fs_pwd(current->fs, mnt, dentry); 453 set_fs_root(current->fs, nd.mnt, nd.dentry); 654 return dentry_open(nd.dentry, nd.mnt, flags); 659 struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags) argument 680 f->f_vfsmnt = mnt; 717 mntput(mnt);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/smbfs/ |
H A D | inode.c | 286 parse_options(struct smb_mount_data_kernel *mnt, char *options) argument 310 mnt->version = value; 313 mnt->uid = value; 316 mnt->gid = value; 319 mnt->file_mode = (value & S_IRWXUGO) | S_IFREG; 322 mnt->dir_mode = (value & S_IRWXUGO) | S_IFDIR; 325 strncpy(mnt->codepage.local_name, optarg, 329 strncpy(mnt->codepage.remote_name, optarg, 333 mnt->ttl = value; 336 mnt 356 struct smb_mount_data_kernel *mnt = m->mnt_sb->u.smbfs_sb.mnt; local 422 struct smb_mount_data_kernel *mnt; local [all...] |
H A D | ioctl.c | 34 result = put_user(NEW_TO_OLD_UID(server->mnt->mounted_uid), 38 result = put_user(server->mnt->mounted_uid, (uid_t *) arg);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/intermezzo/ |
H A D | fileset.c | 385 struct vfsmount *mnt; local 386 PRESTO_ALLOC(mnt, sizeof(*mnt)); 387 if (mnt) { 388 memset(mnt, 0, sizeof(struct vfsmount)); 389 atomic_set(&mnt->mnt_count,1); 390 INIT_LIST_HEAD(&mnt->mnt_hash); 391 INIT_LIST_HEAD(&mnt->mnt_child); 392 INIT_LIST_HEAD(&mnt->mnt_mounts); 393 INIT_LIST_HEAD(&mnt 399 izo_setup_ctxt(struct dentry *root, struct vfsmount *mnt, struct run_ctxt *save) argument 420 izo_cleanup_ctxt(struct vfsmount *mnt, struct run_ctxt *save) argument 484 struct vfsmount *mnt; local 510 struct vfsmount *mnt; local 574 struct vfsmount *mnt; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/autofs4/ |
H A D | expire.c | 19 * mnt is the mount tree under the autofs mountpoint 21 static inline int is_vfsmnt_tree_busy(struct vfsmount *mnt) argument 23 struct vfsmount *this_parent = mnt; 27 count = atomic_read(&mnt->mnt_count) - 1; 31 DPRINTK(("is_vfsmnt_tree_busy: mnt=%p, this_parent=%p, next=%p\n", 32 mnt, this_parent, next)); 55 if (this_parent != mnt) { 67 static int check_vfsmnt(struct vfsmount *mnt, struct dentry *dentry) argument 70 struct vfsmount *vfs = lookup_mnt(mnt, dentry); 153 struct vfsmount *mnt, 152 autofs4_expire(struct super_block *sb, struct vfsmount *mnt, struct autofs_sb_info *sbi, int do_now) argument 217 autofs4_expire_run(struct super_block *sb, struct vfsmount *mnt, struct autofs_sb_info *sbi, struct autofs_packet_expire *pkt_p) argument 246 autofs4_expire_multi(struct super_block *sb, struct vfsmount *mnt, struct autofs_sb_info *sbi, int *arg) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/router/misc/ |
H A D | rootprep.sh | 33 mkdir -p mnt
|
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/ext2fs/ |
H A D | ismounted.c | 46 struct mntent *mnt; local 67 while ((mnt = getmntent (f)) != NULL) { 68 if (strcmp(file, mnt->mnt_fsname) == 0) 70 if (stat(mnt->mnt_fsname, &st_buf) == 0) { 84 if (mnt == 0) { 111 if (stat(mnt->mnt_dir, &st_buf) < 0) { 116 mtab_file, mnt->mnt_dir); 125 mtab_file, file, mnt->mnt_dir); 134 if (hasmntopt(mnt, MNTOPT_RO)) 139 strncpy(mtpt, mnt [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/ |
H A D | quotas.c | 203 struct mntent *mnt; local 222 while ((mnt = getmntent(fp))) { 223 if ( sys_stat(mnt->mnt_dir,&S) == -1 ) 240 if (strcmp(mnt->mnt_type, "xfs")==0) { 241 r=get_smb_linux_xfs_quota(mnt->mnt_fsname, euser_id, egrp_id, &D); 243 r=get_smb_linux_gen_quota(mnt->mnt_fsname, euser_id, egrp_id, &D); 245 r=get_smb_linux_v2_quota(mnt->mnt_fsname, euser_id, egrp_id, &D); 247 r=get_smb_linux_v1_quota(mnt->mnt_fsname, euser_id, egrp_id, &D); 297 struct mntent *mnt; local 322 while ((mnt 584 static struct mnttab mnt; local 588 struct mntent *mnt; local 810 struct mntent *mnt; local [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/client/ |
H A D | smbumount.c | 104 struct mntent *mnt; local 157 while ((mnt = getmntent(mtab)) != NULL) { 158 if (strcmp(mnt->mnt_dir, mount_point) != 0) { 159 addmntent(new_mtab, mnt);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/autofs/ |
H A D | dirhash.c | 38 struct vfsmount *mnt) 83 mntget(mnt); 85 if (!follow_down(&mnt, &dentry)) { 87 mntput(mnt); 91 while (d_mountpoint(dentry) && follow_down(&mnt, &dentry)) 95 if ( may_umount(mnt) == 0 ) { 96 mntput(mnt); 101 mntput(mnt); 36 autofs_expire(struct super_block *sb, struct autofs_sb_info *sbi, struct vfsmount *mnt) argument
|
H A D | autofs_i.h | 136 struct autofs_dir_ent *autofs_expire(struct super_block *,struct autofs_sb_info *, struct vfsmount *mnt);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/proc/ |
H A D | base.c | 45 static int proc_fd_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) argument 48 *mnt = mntget(inode->u.proc_i.file->f_vfsmnt); 55 static int proc_exe_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) argument 74 *mnt = mntget(vma->vm_file->f_vfsmnt); 87 static int proc_cwd_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) argument 98 *mnt = mntget(fs->pwdmnt); 107 static int proc_root_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt) argument 118 *mnt = mntget(fs->rootmnt); 192 struct vfsmount *our_vfsmnt, *vfsmnt, *mnt; local 204 mnt 471 do_proc_readlink(struct dentry *dentry, struct vfsmount *mnt, char * buffer, int buflen) argument 497 struct vfsmount *mnt = NULL; local [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/ |
H A D | sysquotas.c | 52 struct mntent *mnt; local 71 while ((mnt = getmntent(fp))) { 72 if ( sys_stat(mnt->mnt_dir,&S) == -1 ) 76 (*mntpath) = strdup(mnt->mnt_dir); 77 (*bdev) = strdup(mnt->mnt_fsname); 78 (*fs) = strdup(mnt->mnt_type);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc64/solaris/ |
H A D | fs.c | 409 static int report_statvfs(struct vfsmount *mnt, struct inode *inode, u32 buf) argument 415 error = vfs_statfs(mnt->mnt_sb, &s); 417 const char *p = mnt->mnt_sb->s_type->name; 423 if (mnt->mnt_flags & MNT_NOSUID) i |= 2; 443 static int report_statvfs64(struct vfsmount *mnt, struct inode *inode, u32 buf) argument 449 error = vfs_statfs(mnt->mnt_sb, &s); 451 const char *p = mnt->mnt_sb->s_type->name; 457 if (mnt->mnt_flags & MNT_NOSUID) i |= 2; 485 error = report_statvfs(nd.mnt, inode, buf); 515 error = report_statvfs64(nd.mnt, inod [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/hotplug/ |
H A D | pci_hotplug_core.c | 386 struct vfsmount *mnt; local 397 mnt = kern_mount (&pcihpfs_fs_type); 398 if (IS_ERR(mnt)) { 404 pcihpfs_mount = mnt; 412 mntput(mnt); 421 struct vfsmount *mnt; local 424 mnt = pcihpfs_mount; 430 mntput(mnt);
|