• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/

Lines Matching refs:vfsmount

32 /* spinlock for vfsmount related operations, inplace of dcache_lock */
46 static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
54 struct vfsmount *alloc_vfsmnt(const char *name)
56 struct vfsmount *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL);
79 int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb)
88 void free_vfsmnt(struct vfsmount *mnt)
95 * find the first or last mount at @dentry on vfsmount @mnt depending on
98 struct vfsmount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry,
103 struct vfsmount *p, *found = NULL;
110 p = list_entry(tmp, struct vfsmount, mnt_hash);
121 * the vfsmount struct.
123 struct vfsmount *lookup_mnt(struct vfsmount *mnt, struct dentry *dentry)
125 struct vfsmount *child_mnt;
133 static inline int check_mnt(struct vfsmount *mnt)
154 static void detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd)
165 void mnt_set_mountpoint(struct vfsmount *mnt, struct dentry *dentry,
166 struct vfsmount *child_mnt)
173 static void attach_mnt(struct vfsmount *mnt, struct nameidata *nd)
184 static void commit_tree(struct vfsmount *mnt)
186 struct vfsmount *parent = mnt->mnt_parent;
187 struct vfsmount *m;
204 static struct vfsmount *next_mnt(struct vfsmount *p, struct vfsmount *root)
217 return list_entry(next, struct vfsmount, mnt_child);
220 static struct vfsmount *skip_mnt_tree(struct vfsmount *p)
224 p = list_entry(prev, struct vfsmount, mnt_child);
230 static struct vfsmount *clone_mnt(struct vfsmount *old, struct dentry *root,
234 struct vfsmount *mnt = alloc_vfsmnt(old->mnt_devname);
270 static inline void __mntput(struct vfsmount *mnt)
278 void mntput_no_expire(struct vfsmount *mnt)
298 void mnt_pin(struct vfsmount *mnt)
307 void mnt_unpin(struct vfsmount *mnt)
329 return list_entry(p, struct vfsmount, mnt_list);
336 struct list_head *p = ((struct vfsmount *)v)->mnt_list.next;
338 return p == &n->list ? NULL : list_entry(p, struct vfsmount, mnt_list);
353 struct vfsmount *mnt = v;
408 struct vfsmount *mnt = v;
452 int may_umount_tree(struct vfsmount *mnt)
456 struct vfsmount *p;
486 int may_umount(struct vfsmount *mnt)
500 struct vfsmount *mnt;
502 mnt = list_first_entry(head, struct vfsmount, mnt_hash);
506 struct vfsmount *m;
520 void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill)
522 struct vfsmount *p;
542 static int do_umount(struct vfsmount *mnt, int flags)
556 * (2) the usage count == 1 [parent vfsmount] + 1 [sys_umount]
589 * to rootfs. GC would eventually take care of the old vfsmount.
702 struct vfsmount *copy_tree(struct vfsmount *mnt, struct dentry *dentry,
705 struct vfsmount *res, *p, *q, *r, *s;
817 static int attach_recursive_mnt(struct vfsmount *source_mnt,
821 struct vfsmount *dest_mnt = nd->mnt;
823 struct vfsmount *child, *p;
851 static int graft_tree(struct vfsmount *mnt, struct nameidata *nd)
885 struct vfsmount *m, *mnt = nd->mnt;
910 struct vfsmount *mnt = NULL;
982 static inline int tree_contains_unbindable(struct vfsmount *mnt)
984 struct vfsmount *p;
995 struct vfsmount *p;
1071 struct vfsmount *mnt;
1091 int do_add_mount(struct vfsmount *newmnt, struct nameidata *nd,
1135 static void expire_mount(struct vfsmount *mnt, struct list_head *mounts,
1151 * contributed by the vfsmount parent and the mntget above
1173 * - delete the vfsmount from the appropriate namespace under lock
1179 struct vfsmount *mnt;
1183 mnt = list_first_entry(graveyard, struct vfsmount, mnt_expire);
1211 struct vfsmount *mnt, *next;
1219 /* extract from the expiration list every vfsmount that matches the
1221 * - only referenced by its parent vfsmount
1247 static int select_submounts(struct vfsmount *parent, struct list_head *graveyard)
1249 struct vfsmount *this_parent = parent;
1258 struct vfsmount *mnt = list_entry(tmp, struct vfsmount, mnt_child);
1292 void shrink_submounts(struct vfsmount *mountpoint, struct list_head *mounts)
1455 struct vfsmount *rootmnt = NULL, *pwdmnt = NULL, *altrootmnt = NULL;
1456 struct vfsmount *p, *q;
1581 void set_fs_root(struct fs_struct *fs, struct vfsmount *mnt,
1585 struct vfsmount *old_rootmnt;
1602 void set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
1606 struct vfsmount *old_pwdmnt;
1674 struct vfsmount *tmp;
1775 struct vfsmount *mnt;
1808 mnt_cache = kmem_cache_create("mnt_cache", sizeof(struct vfsmount),
1859 struct vfsmount *root = ns->root;