Lines Matching refs:dent

1442 	struct dentry *dent, *dir;
1464 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata,
1466 if (IS_ERR(dent))
1468 rawdata->dents[AAFS_LOADDATA_ABI] = dent;
1470 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata,
1472 if (IS_ERR(dent))
1474 rawdata->dents[AAFS_LOADDATA_REVISION] = dent;
1477 dent = aafs_create_file("sha256", S_IFREG | 0444, dir,
1479 if (IS_ERR(dent))
1481 rawdata->dents[AAFS_LOADDATA_HASH] = dent;
1484 dent = aafs_create_file("compressed_size", S_IFREG | 0444, dir,
1487 if (IS_ERR(dent))
1489 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent;
1491 dent = aafs_create_file("raw_data", S_IFREG | 0444,
1493 if (IS_ERR(dent))
1495 rawdata->dents[AAFS_LOADDATA_DATA] = dent;
1496 d_inode(dent)->i_size = rawdata->size;
1507 return PTR_ERR(dent);
1571 struct dentry *dent;
1573 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops);
1574 if (IS_ERR(dent))
1577 return dent;
1685 struct dentry *dent = NULL, *dir;
1694 dent = prof_dir(p);
1696 dent = aafs_create_dir("profiles", dent);
1697 if (IS_ERR(dent))
1699 prof_child_dir(p) = parent = dent;
1717 dent = aafs_create_dir(profile->dirname, parent);
1718 if (IS_ERR(dent))
1720 prof_dir(profile) = dir = dent;
1722 dent = create_profile_file(dir, "name", profile,
1724 if (IS_ERR(dent))
1726 profile->dents[AAFS_PROF_NAME] = dent;
1728 dent = create_profile_file(dir, "mode", profile,
1730 if (IS_ERR(dent))
1732 profile->dents[AAFS_PROF_MODE] = dent;
1734 dent = create_profile_file(dir, "attach", profile,
1736 if (IS_ERR(dent))
1738 profile->dents[AAFS_PROF_ATTACH] = dent;
1741 dent = create_profile_file(dir, "sha256", profile,
1743 if (IS_ERR(dent))
1745 profile->dents[AAFS_PROF_HASH] = dent;
1751 dent = aafs_create("raw_sha256", S_IFLNK | 0444, dir,
1754 if (IS_ERR(dent))
1757 profile->dents[AAFS_PROF_RAW_HASH] = dent;
1759 dent = aafs_create("raw_abi", S_IFLNK | 0444, dir,
1762 if (IS_ERR(dent))
1765 profile->dents[AAFS_PROF_RAW_ABI] = dent;
1767 dent = aafs_create("raw_data", S_IFLNK | 0444, dir,
1770 if (IS_ERR(dent))
1773 profile->dents[AAFS_PROF_RAW_DATA] = dent;
1786 error = PTR_ERR(dent);
1959 struct dentry *dent;
1964 dent = aafs_create_dir("profiles", dir);
1965 if (IS_ERR(dent))
1966 return PTR_ERR(dent);
1967 ns_subprofs_dir(ns) = dent;
1969 dent = aafs_create_dir("raw_data", dir);
1970 if (IS_ERR(dent))
1971 return PTR_ERR(dent);
1972 ns_subdata_dir(ns) = dent;
1974 dent = aafs_create_file("revision", 0444, dir, ns,
1976 if (IS_ERR(dent))
1977 return PTR_ERR(dent);
1979 ns_subrevision(ns) = dent;
1981 dent = aafs_create_file(".load", 0640, dir, ns,
1983 if (IS_ERR(dent))
1984 return PTR_ERR(dent);
1986 ns_subload(ns) = dent;
1988 dent = aafs_create_file(".replace", 0640, dir, ns,
1990 if (IS_ERR(dent))
1991 return PTR_ERR(dent);
1993 ns_subreplace(ns) = dent;
1995 dent = aafs_create_file(".remove", 0640, dir, ns,
1997 if (IS_ERR(dent))
1998 return PTR_ERR(dent);
2000 ns_subremove(ns) = dent;
2003 dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL,
2005 if (IS_ERR(dent))
2006 return PTR_ERR(dent);
2008 ns_subns_dir(ns) = dent;
2017 struct dentry *dent)
2031 if (!dent) {
2033 dent = aafs_create_dir(name, parent);
2034 if (IS_ERR(dent))
2037 dget(dent);
2038 ns_dir(ns) = dir = dent;
2062 error = PTR_ERR(dent);
2632 struct dentry *dent;
2654 dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry,
2656 if (IS_ERR(dent))
2658 ns_subload(root_ns) = dent;
2660 dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry,
2662 if (IS_ERR(dent))
2664 ns_subreplace(root_ns) = dent;
2666 dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry,
2668 if (IS_ERR(dent))
2670 ns_subremove(root_ns) = dent;
2672 dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry,
2674 if (IS_ERR(dent))
2676 ns_subrevision(root_ns) = dent;
2687 dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry,
2689 if (IS_ERR(dent))
2703 error = PTR_ERR(dent);