Lines Matching refs:dent

1431 	struct dentry *dent, *dir;
1453 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata,
1455 if (IS_ERR(dent))
1457 rawdata->dents[AAFS_LOADDATA_ABI] = dent;
1459 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata,
1461 if (IS_ERR(dent))
1463 rawdata->dents[AAFS_LOADDATA_REVISION] = dent;
1466 dent = aafs_create_file("sha1", S_IFREG | 0444, dir,
1468 if (IS_ERR(dent))
1470 rawdata->dents[AAFS_LOADDATA_HASH] = dent;
1473 dent = aafs_create_file("compressed_size", S_IFREG | 0444, dir,
1476 if (IS_ERR(dent))
1478 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent;
1480 dent = aafs_create_file("raw_data", S_IFREG | 0444,
1482 if (IS_ERR(dent))
1484 rawdata->dents[AAFS_LOADDATA_DATA] = dent;
1485 d_inode(dent)->i_size = rawdata->size;
1496 return PTR_ERR(dent);
1554 struct dentry *dent;
1556 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops);
1557 if (IS_ERR(dent))
1560 return dent;
1672 struct dentry *dent = NULL, *dir;
1681 dent = prof_dir(p);
1682 if (!dent) {
1687 dent = aafs_create_dir("profiles", dent);
1688 if (IS_ERR(dent))
1690 prof_child_dir(p) = parent = dent;
1708 dent = aafs_create_dir(profile->dirname, parent);
1709 if (IS_ERR(dent))
1711 prof_dir(profile) = dir = dent;
1713 dent = create_profile_file(dir, "name", profile,
1715 if (IS_ERR(dent))
1717 profile->dents[AAFS_PROF_NAME] = dent;
1719 dent = create_profile_file(dir, "mode", profile,
1721 if (IS_ERR(dent))
1723 profile->dents[AAFS_PROF_MODE] = dent;
1725 dent = create_profile_file(dir, "attach", profile,
1727 if (IS_ERR(dent))
1729 profile->dents[AAFS_PROF_ATTACH] = dent;
1732 dent = create_profile_file(dir, "sha1", profile,
1734 if (IS_ERR(dent))
1736 profile->dents[AAFS_PROF_HASH] = dent;
1740 dent = aafs_create("raw_sha1", S_IFLNK | 0444, dir,
1743 if (IS_ERR(dent))
1746 profile->dents[AAFS_PROF_RAW_HASH] = dent;
1748 dent = aafs_create("raw_abi", S_IFLNK | 0444, dir,
1751 if (IS_ERR(dent))
1754 profile->dents[AAFS_PROF_RAW_ABI] = dent;
1756 dent = aafs_create("raw_data", S_IFLNK | 0444, dir,
1759 if (IS_ERR(dent))
1762 profile->dents[AAFS_PROF_RAW_DATA] = dent;
1774 error = PTR_ERR(dent);
1944 struct dentry *dent;
1949 dent = aafs_create_dir("profiles", dir);
1950 if (IS_ERR(dent))
1951 return PTR_ERR(dent);
1952 ns_subprofs_dir(ns) = dent;
1954 dent = aafs_create_dir("raw_data", dir);
1955 if (IS_ERR(dent))
1956 return PTR_ERR(dent);
1957 ns_subdata_dir(ns) = dent;
1959 dent = aafs_create_file("revision", 0444, dir, ns,
1961 if (IS_ERR(dent))
1962 return PTR_ERR(dent);
1964 ns_subrevision(ns) = dent;
1966 dent = aafs_create_file(".load", 0640, dir, ns,
1968 if (IS_ERR(dent))
1969 return PTR_ERR(dent);
1971 ns_subload(ns) = dent;
1973 dent = aafs_create_file(".replace", 0640, dir, ns,
1975 if (IS_ERR(dent))
1976 return PTR_ERR(dent);
1978 ns_subreplace(ns) = dent;
1980 dent = aafs_create_file(".remove", 0640, dir, ns,
1982 if (IS_ERR(dent))
1983 return PTR_ERR(dent);
1985 ns_subremove(ns) = dent;
1988 dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL,
1990 if (IS_ERR(dent))
1991 return PTR_ERR(dent);
1993 ns_subns_dir(ns) = dent;
2002 struct dentry *dent)
2016 if (!dent) {
2018 dent = aafs_create_dir(name, parent);
2019 if (IS_ERR(dent))
2022 dget(dent);
2023 ns_dir(ns) = dir = dent;
2047 error = PTR_ERR(dent);
2598 struct dentry *dent;
2620 dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry,
2622 if (IS_ERR(dent))
2624 ns_subload(root_ns) = dent;
2626 dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry,
2628 if (IS_ERR(dent))
2630 ns_subreplace(root_ns) = dent;
2632 dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry,
2634 if (IS_ERR(dent))
2636 ns_subremove(root_ns) = dent;
2638 dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry,
2640 if (IS_ERR(dent))
2642 ns_subrevision(root_ns) = dent;
2653 dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry,
2655 if (IS_ERR(dent))
2669 error = PTR_ERR(dent);