Home
last modified time | relevance | path

Searched refs:upper (Results 1 – 15 of 15) sorted by relevance

/fs/overlayfs/
Dexport.c286 struct dentry *upper = upper_alias ?: index; in ovl_obtain_alias() local
297 if (d_is_dir(upper ?: lower)) in ovl_obtain_alias()
300 oip.upperdentry = dget(upper); in ovl_obtain_alias()
303 dput(upper); in ovl_obtain_alias()
307 if (upper) in ovl_obtain_alias()
329 ovl_dentry_init_reval(dentry, upper); in ovl_obtain_alias()
460 struct dentry *upper = ovl_index_upper(ofs, index); in ovl_lookup_real_inode() local
463 if (IS_ERR_OR_NULL(upper)) in ovl_lookup_real_inode()
464 return upper; in ovl_lookup_real_inode()
473 this = ovl_lookup_real(sb, upper, &ofs->layers[0]); in ovl_lookup_real_inode()
[all …]
Ddir.c232 static int ovl_set_opaque_xerr(struct dentry *dentry, struct dentry *upper, in ovl_set_opaque_xerr() argument
238 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_OPAQUE, "y", 1, xerr); in ovl_set_opaque_xerr()
368 struct dentry *upper; in ovl_clear_empty() local
389 upper = upperpath.dentry; in ovl_clear_empty()
390 if (upper->d_parent->d_inode != udir) in ovl_clear_empty()
398 err = ovl_copy_xattr(dentry->d_sb, upper, opaquedir); in ovl_clear_empty()
412 err = ovl_do_rename(wdir, opaquedir, udir, upper, RENAME_EXCHANGE); in ovl_clear_empty()
416 ovl_cleanup_whiteouts(upper, list); in ovl_clear_empty()
417 ovl_cleanup(wdir, upper); in ovl_clear_empty()
466 struct dentry *upper; in ovl_create_over_whiteout() local
[all …]
Dcopy_up.c398 struct dentry *upper) in ovl_set_origin() argument
417 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_ORIGIN, fh->buf, in ovl_set_origin()
426 static int ovl_set_upper_fh(struct ovl_fs *ofs, struct dentry *upper, in ovl_set_upper_fh() argument
432 fh = ovl_encode_real_fh(ofs, upper, true); in ovl_set_upper_fh()
448 struct dentry *upper) in ovl_create_index() argument
482 err = ovl_set_upper_fh(ofs, upper, temp); in ovl_create_index()
520 struct dentry *upper; in ovl_link_up() local
534 upper = lookup_one_len(c->dentry->d_name.name, upperdir, in ovl_link_up()
536 err = PTR_ERR(upper); in ovl_link_up()
537 if (!IS_ERR(upper)) { in ovl_link_up()
[all …]
Dnamei.c487 struct dentry *upper; in ovl_index_upper() local
496 upper = ovl_decode_real_fh(ofs, fh, ovl_upper_mnt(ofs), true); in ovl_index_upper()
499 if (IS_ERR_OR_NULL(upper)) in ovl_index_upper()
500 return upper ?: ERR_PTR(-ESTALE); in ovl_index_upper()
502 if (!d_is_dir(upper)) { in ovl_index_upper()
504 index, upper); in ovl_index_upper()
505 dput(upper); in ovl_index_upper()
509 return upper; in ovl_index_upper()
523 struct dentry *upper = NULL; in ovl_verify_index() local
569 upper = ovl_index_upper(ofs, index); in ovl_verify_index()
[all …]
Doverlayfs.h445 struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper,
452 static inline int ovl_verify_origin(struct ovl_fs *ofs, struct dentry *upper, in ovl_verify_origin() argument
455 return ovl_verify_set_fh(ofs, upper, OVL_XATTR_ORIGIN, origin, in ovl_verify_origin()
460 struct dentry *upper, bool set) in ovl_verify_upper() argument
462 return ovl_verify_set_fh(ofs, index, OVL_XATTR_UPPER, upper, true, set); in ovl_verify_upper()
469 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list);
545 void ovl_check_protattr(struct inode *inode, struct dentry *upper);
546 int ovl_set_protattr(struct inode *inode, struct dentry *upper,
592 int ovl_set_attr(struct dentry *upper, struct kstat *stat);
596 struct dentry *upper);
DKconfig6 An overlay filesystem combines two filesystems - an 'upper' filesystem
8 object in the 'upper' filesystem is visible while the object in the
10 merged with the 'upper' object.
50 the index directory to map lower inodes to upper inodes by default.
78 inconsistencies on lookup, like redirect from multiple upper dirs to
Dutil.c686 void ovl_check_protattr(struct inode *inode, struct dentry *upper) in ovl_check_protattr() argument
693 res = ovl_do_getxattr(ofs, upper, OVL_XATTR_PROTATTR, buf, in ovl_check_protattr()
715 upper, res); in ovl_check_protattr()
721 int ovl_set_protattr(struct inode *inode, struct dentry *upper, in ovl_set_protattr() argument
746 err = ovl_check_setxattr(ofs, upper, OVL_XATTR_PROTATTR, in ovl_set_protattr()
749 err = ovl_do_removexattr(ofs, upper, OVL_XATTR_PROTATTR); in ovl_set_protattr()
Dreaddir.c1004 void ovl_cleanup_whiteouts(struct dentry *upper, struct list_head *list) in ovl_cleanup_whiteouts() argument
1008 inode_lock_nested(upper->d_inode, I_MUTEX_CHILD); in ovl_cleanup_whiteouts()
1015 dentry = lookup_one_len(p->name, upper, p->len); in ovl_cleanup_whiteouts()
1018 upper->d_name.name, p->len, p->name, in ovl_cleanup_whiteouts()
1023 ovl_cleanup(upper->d_inode, dentry); in ovl_cleanup_whiteouts()
1026 inode_unlock(upper->d_inode); in ovl_cleanup_whiteouts()
Dinode.c1068 static bool ovl_hash_bylower(struct super_block *sb, struct dentry *upper, in ovl_hash_bylower() argument
1086 if ((upper || !ovl_indexdir(sb)) && in ovl_hash_bylower()
1091 if (sb->s_export_op && upper) in ovl_hash_bylower()
Dsuper.c148 struct dentry *upper; in ovl_dentry_revalidate_common() local
156 upper = ovl_i_dentry_upper(inode); in ovl_dentry_revalidate_common()
157 if (upper) in ovl_dentry_revalidate_common()
158 ret = ovl_revalidate_real(upper, flags, weak); in ovl_dentry_revalidate_common()
/fs/btrfs/
Dbackref.c2571 INIT_LIST_HEAD(&node->upper);
2602 struct btrfs_backref_node *upper; local
2609 while (!list_empty(&node->upper)) {
2610 edge = list_entry(node->upper.next, struct btrfs_backref_edge,
2612 upper = edge->node[UPPER];
2621 if (list_empty(&upper->lower)) {
2622 list_add_tail(&upper->lower, &cache->leaves);
2623 upper->lowest = 1;
2680 struct btrfs_backref_node *upper; local
2713 upper = btrfs_backref_alloc_node(cache, ref_key->offset,
[all …]
Dbackref.h177 struct list_head upper; member
283 struct btrfs_backref_node *upper, in btrfs_backref_link_edge() argument
286 ASSERT(upper && lower && upper->level == lower->level + 1); in btrfs_backref_link_edge()
288 edge->node[UPPER] = upper; in btrfs_backref_link_edge()
290 list_add_tail(&edge->list[LOWER], &lower->upper); in btrfs_backref_link_edge()
292 list_add_tail(&edge->list[UPPER], &upper->lower); in btrfs_backref_link_edge()
346 ASSERT(list_empty(&node->upper)); in btrfs_backref_drop_node()
Drelocation.c189 while (!list_empty(&node->upper)) { in walk_up_backref()
190 edge = list_entry(node->upper.next, in walk_up_backref()
213 if (list_is_last(&edge->list[LOWER], &lower->upper)) { in walk_down_backref()
397 ASSERT(list_empty(&cur->upper)); in handle_useless_nodes()
421 if (list_empty(&lower->upper)) in handle_useless_nodes()
605 &new_edge->node[LOWER]->upper); in clone_backref_node()
2329 if (list_empty(&next->upper)) in calcu_metadata_size()
2332 edge = list_entry(next->upper.next, in calcu_metadata_size()
2396 struct btrfs_backref_node *upper; in do_relocation() local
2414 list_for_each_entry(edge, &node->upper, list[LOWER]) { in do_relocation()
[all …]
Dctree.c2761 struct extent_buffer *upper = path->nodes[1]; in __push_leaf_right() local
2867 btrfs_set_node_key(upper, &disk_key, slot + 1); in __push_leaf_right()
2868 btrfs_mark_buffer_dirty(upper); in __push_leaf_right()
2908 struct extent_buffer *upper; in push_leaf_right() local
2918 upper = path->nodes[1]; in push_leaf_right()
2919 if (slot >= btrfs_header_nritems(upper) - 1) in push_leaf_right()
2924 right = btrfs_read_node_slot(upper, slot + 1); in push_leaf_right()
2939 ret = btrfs_cow_block(trans, root, right, upper, in push_leaf_right()
/fs/fat/
Dnamei_vfat.c268 upper:1, member
273 (x)->upper = 1; \
303 info->upper = 0; in to_shortname_char()
311 info->upper = 0; in to_shortname_char()
315 info->upper = 0; in to_shortname_char()
452 return (base_info.upper && ext_info.upper); in vfat_create_shortname()
454 if ((base_info.upper || base_info.lower) && in vfat_create_shortname()
455 (ext_info.upper || ext_info.lower)) { in vfat_create_shortname()
456 if (!base_info.upper && base_info.lower) in vfat_create_shortname()
458 if (!ext_info.upper && ext_info.lower) in vfat_create_shortname()