Lines Matching full:layers
232 /* Hack! Reuse ofs->layers as a vfsmount array before freeing it */ in ovl_free_fs()
233 mounts = (struct vfsmount **) ofs->layers; in ovl_free_fs()
235 iput(ofs->layers[i].trap); in ovl_free_fs()
236 mounts[i] = ofs->layers[i].mnt; in ovl_free_fs()
239 kfree(ofs->layers); in ovl_free_fs()
894 * file handles, so they require that all layers support them. in ovl_lower_dir()
1127 pr_err("upper fs is r/o, try multi-lower layers mount\n"); in ovl_get_upper()
1528 * as all lower layers with null uuid are on the same fs. in ovl_lower_uuid_ok()
1582 struct ovl_layer *layers) in ovl_get_layers() argument
1596 * All lower layers that share the same fs as upper layer, use the same in ovl_get_layers()
1622 * Check if lower root conflicts with this overlay layers before in ovl_get_layers()
1649 * Make lower layers R/O. That way fchmod/fchown on lower file in ovl_get_layers()
1654 layers[ofs->numlayer].trap = trap; in ovl_get_layers()
1655 layers[ofs->numlayer].mnt = mnt; in ovl_get_layers()
1656 layers[ofs->numlayer].idx = ofs->numlayer; in ovl_get_layers()
1657 layers[ofs->numlayer].fsid = fsid; in ovl_get_layers()
1658 layers[ofs->numlayer].fs = &ofs->fs[fsid]; in ovl_get_layers()
1664 * When all layers on same fs, overlay can use real inode numbers. in ovl_get_layers()
1674 pr_info("\"xino=on\" is useless with all layers on same fs, ignore.\n"); in ovl_get_layers()
1702 struct ovl_fs *ofs, struct ovl_layer *layers) in ovl_get_lowerstack() argument
1734 err = ovl_get_layers(sb, ofs, stack, numlower, layers); in ovl_get_lowerstack()
1745 oe->lowerstack[i].layer = &ofs->layers[i+1]; in ovl_get_lowerstack()
1796 * Check if any of the layers or work dirs overlap.
1824 ofs->layers[i].mnt->mnt_root, in ovl_check_overlapping_layers()
1877 struct ovl_layer *layers; in ovl_fill_super() local
1924 layers = kcalloc(numlower + 1, sizeof(struct ovl_layer), GFP_KERNEL); in ovl_fill_super()
1925 if (!layers) in ovl_fill_super()
1928 ofs->layers = layers; in ovl_fill_super()
1955 err = ovl_get_upper(sb, ofs, &layers[0], &upperpath); in ovl_fill_super()
1979 oe = ovl_get_lowerstack(sb, splitlower, numlower, ofs, layers); in ovl_fill_super()