Lines Matching refs:dent

1444 	struct dentry *dent, *dir;
1466 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata,
1468 if (IS_ERR(dent))
1470 rawdata->dents[AAFS_LOADDATA_ABI] = dent;
1472 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata,
1474 if (IS_ERR(dent))
1476 rawdata->dents[AAFS_LOADDATA_REVISION] = dent;
1479 dent = aafs_create_file("sha1", S_IFREG | 0444, dir,
1481 if (IS_ERR(dent))
1483 rawdata->dents[AAFS_LOADDATA_HASH] = dent;
1486 dent = aafs_create_file("compressed_size", S_IFREG | 0444, dir,
1489 if (IS_ERR(dent))
1491 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent;
1493 dent = aafs_create_file("raw_data", S_IFREG | 0444,
1495 if (IS_ERR(dent))
1497 rawdata->dents[AAFS_LOADDATA_DATA] = dent;
1498 d_inode(dent)->i_size = rawdata->size;
1509 return PTR_ERR(dent);
1572 struct dentry *dent;
1574 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops);
1575 if (IS_ERR(dent))
1578 return dent;
1691 struct dentry *dent = NULL, *dir;
1700 dent = prof_dir(p);
1702 dent = aafs_create_dir("profiles", dent);
1703 if (IS_ERR(dent))
1705 prof_child_dir(p) = parent = dent;
1723 dent = aafs_create_dir(profile->dirname, parent);
1724 if (IS_ERR(dent))
1726 prof_dir(profile) = dir = dent;
1728 dent = create_profile_file(dir, "name", profile,
1730 if (IS_ERR(dent))
1732 profile->dents[AAFS_PROF_NAME] = dent;
1734 dent = create_profile_file(dir, "mode", profile,
1736 if (IS_ERR(dent))
1738 profile->dents[AAFS_PROF_MODE] = dent;
1740 dent = create_profile_file(dir, "attach", profile,
1742 if (IS_ERR(dent))
1744 profile->dents[AAFS_PROF_ATTACH] = dent;
1747 dent = create_profile_file(dir, "sha1", profile,
1749 if (IS_ERR(dent))
1751 profile->dents[AAFS_PROF_HASH] = dent;
1757 dent = aafs_create("raw_sha1", S_IFLNK | 0444, dir,
1760 if (IS_ERR(dent))
1763 profile->dents[AAFS_PROF_RAW_HASH] = dent;
1765 dent = aafs_create("raw_abi", S_IFLNK | 0444, dir,
1768 if (IS_ERR(dent))
1771 profile->dents[AAFS_PROF_RAW_ABI] = dent;
1773 dent = aafs_create("raw_data", S_IFLNK | 0444, dir,
1776 if (IS_ERR(dent))
1779 profile->dents[AAFS_PROF_RAW_DATA] = dent;
1792 error = PTR_ERR(dent);
1965 struct dentry *dent;
1970 dent = aafs_create_dir("profiles", dir);
1971 if (IS_ERR(dent))
1972 return PTR_ERR(dent);
1973 ns_subprofs_dir(ns) = dent;
1975 dent = aafs_create_dir("raw_data", dir);
1976 if (IS_ERR(dent))
1977 return PTR_ERR(dent);
1978 ns_subdata_dir(ns) = dent;
1980 dent = aafs_create_file("revision", 0444, dir, ns,
1982 if (IS_ERR(dent))
1983 return PTR_ERR(dent);
1985 ns_subrevision(ns) = dent;
1987 dent = aafs_create_file(".load", 0640, dir, ns,
1989 if (IS_ERR(dent))
1990 return PTR_ERR(dent);
1992 ns_subload(ns) = dent;
1994 dent = aafs_create_file(".replace", 0640, dir, ns,
1996 if (IS_ERR(dent))
1997 return PTR_ERR(dent);
1999 ns_subreplace(ns) = dent;
2001 dent = aafs_create_file(".remove", 0640, dir, ns,
2003 if (IS_ERR(dent))
2004 return PTR_ERR(dent);
2006 ns_subremove(ns) = dent;
2009 dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL,
2011 if (IS_ERR(dent))
2012 return PTR_ERR(dent);
2014 ns_subns_dir(ns) = dent;
2023 struct dentry *dent)
2037 if (!dent) {
2039 dent = aafs_create_dir(name, parent);
2040 if (IS_ERR(dent))
2043 dget(dent);
2044 ns_dir(ns) = dir = dent;
2068 error = PTR_ERR(dent);
2620 struct dentry *dent;
2642 dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry,
2644 if (IS_ERR(dent))
2646 ns_subload(root_ns) = dent;
2648 dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry,
2650 if (IS_ERR(dent))
2652 ns_subreplace(root_ns) = dent;
2654 dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry,
2656 if (IS_ERR(dent))
2658 ns_subremove(root_ns) = dent;
2660 dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry,
2662 if (IS_ERR(dent))
2664 ns_subrevision(root_ns) = dent;
2675 dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry,
2677 if (IS_ERR(dent))
2691 error = PTR_ERR(dent);