Lines Matching refs:ofs
196 static int ovl_copy_up_data(struct ovl_fs *ofs, struct path *old, in ovl_copy_up_data() argument
287 if (!error && ovl_should_sync(ofs)) in ovl_copy_up_data()
342 struct ovl_fh *ovl_encode_real_fh(struct ovl_fs *ofs, struct dentry *real, in ovl_encode_real_fh() argument
387 if (ofs->config.uuid) in ovl_encode_real_fh()
397 int ovl_set_origin(struct ovl_fs *ofs, struct dentry *lower, in ovl_set_origin() argument
409 fh = ovl_encode_real_fh(ofs, lower, false); in ovl_set_origin()
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()
436 err = ovl_do_setxattr(ofs, index, OVL_XATTR_UPPER, fh->buf, fh->fb.len); in ovl_set_upper_fh()
450 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_index() local
473 err = ovl_get_index_name(ofs, origin, &name); in ovl_create_index()
482 err = ovl_set_upper_fh(ofs, upper, temp); in ovl_create_index()
559 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_inode() local
576 err = ovl_copy_up_data(ofs, &datapath, &upperpath, in ovl_copy_up_inode()
605 err = ovl_set_origin(ofs, c->lowerpath.dentry, temp); in ovl_copy_up_inode()
611 err = ovl_check_setxattr(ofs, temp, OVL_XATTR_METACOPY, in ovl_copy_up_inode()
784 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_do_copy_up() local
806 err = ovl_get_index_name(ofs, c->lowerpath.dentry, &c->destname); in ovl_do_copy_up()
823 if (S_ISREG(c->stat.mode) && ofs->tmpfile) in ovl_do_copy_up()
857 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_need_meta_copy_up() local
859 if (!ofs->config.metacopy) in ovl_need_meta_copy_up()
897 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_meta_inode_data() local
918 err = ovl_copy_up_data(ofs, &datapath, &upperpath, c->stat.size); in ovl_copy_up_meta_inode_data()
934 err = ovl_do_removexattr(ofs, upperpath.dentry, OVL_XATTR_METACOPY); in ovl_copy_up_meta_inode_data()