Lines Matching refs:seq
502 unsigned seq, m_seq; member
511 unsigned seq; member
626 struct path *path, unsigned seq) in legitimize_path() argument
639 return !read_seqcount_retry(&path->dentry->d_seq, seq); in legitimize_path()
647 if (unlikely(!legitimize_path(nd, &last->link, last->seq))) { in legitimize_links()
680 static int unlazy_walk(struct nameidata *nd, struct dentry *dentry, unsigned seq) in unlazy_walk() argument
706 if (read_seqcount_retry(&parent->d_seq, nd->seq)) in unlazy_walk()
712 if (read_seqcount_retry(&dentry->d_seq, seq)) in unlazy_walk()
747 static int unlazy_link(struct nameidata *nd, struct path *link, unsigned seq) in unlazy_link() argument
749 if (unlikely(!legitimize_path(nd, link, seq))) { in unlazy_link()
816 unsigned seq; in set_root_rcu() local
819 seq = read_seqcount_begin(&fs->seq); in set_root_rcu()
822 } while (read_seqcount_retry(&fs->seq, seq)); in set_root_rcu()
1025 nd->seq = nd->root_seq; in get_link()
1026 if (unlikely(read_seqcount_retry(&d->d_seq, nd->seq))) in get_link()
1306 unsigned seq; in follow_dotdot_rcu() local
1309 seq = read_seqcount_begin(&parent->d_seq); in follow_dotdot_rcu()
1310 if (unlikely(read_seqcount_retry(&old->d_seq, nd->seq))) in follow_dotdot_rcu()
1313 nd->seq = seq; in follow_dotdot_rcu()
1322 unsigned seq = read_seqcount_begin(&mountpoint->d_seq); in follow_dotdot_rcu() local
1331 nd->seq = seq; in follow_dotdot_rcu()
1344 nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq); in follow_dotdot_rcu()
1544 unsigned seq; in lookup_fast() local
1546 dentry = __d_lookup_rcu(parent, &nd->last, &seq); in lookup_fast()
1556 if (read_seqcount_retry(&dentry->d_seq, seq)) in lookup_fast()
1566 if (__read_seqcount_retry(&parent->d_seq, nd->seq)) in lookup_fast()
1569 *seqp = seq; in lookup_fast()
1589 if (unlazy_walk(nd, dentry, seq)) in lookup_fast()
1667 struct inode *inode, unsigned seq) in pick_link() argument
1682 if (unlikely(unlazy_link(nd, link, seq))) in pick_link()
1696 last->seq = seq; in pick_link()
1708 struct inode *inode, unsigned seq) in should_follow_link() argument
1716 if (read_seqcount_retry(&link->dentry->d_seq, seq)) in should_follow_link()
1719 return pick_link(nd, link, inode, seq); in should_follow_link()
1728 unsigned seq; in walk_component() local
1741 err = lookup_fast(nd, &path, &inode, &seq); in walk_component()
1750 seq = 0; /* we are already out of RCU mode */ in walk_component()
1759 err = should_follow_link(nd, &path, flags & WALK_GET, inode, seq); in walk_component()
1764 nd->seq = seq; in walk_component()
2018 nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq); in path_init()
2019 nd->root_seq = nd->seq; in path_init()
2034 nd->seq = nd->root_seq; in path_init()
2043 unsigned seq; in path_init() local
2048 seq = read_seqcount_begin(&fs->seq); in path_init()
2050 nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq); in path_init()
2051 } while (read_seqcount_retry(&fs->seq, seq)); in path_init()
2076 nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq); in path_init()
2088 if (likely(!read_seqcount_retry(&nd->path.dentry->d_seq, nd->seq))) in path_init()
3018 unsigned seq; in do_last() local
3039 error = lookup_fast(nd, &path, &inode, &seq); in do_last()
3126 seq = 0; /* out of RCU mode, so the value doesn't matter */ in do_last()
3136 inode, seq); in do_last()
3149 nd->seq = seq; in do_last()