Lines Matching refs:dent

1444 	struct dentry *dent, *dir;  in __aa_fs_create_rawdata()  local
1466 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata()
1468 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1470 rawdata->dents[AAFS_LOADDATA_ABI] = dent; in __aa_fs_create_rawdata()
1472 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata()
1474 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1476 rawdata->dents[AAFS_LOADDATA_REVISION] = dent; in __aa_fs_create_rawdata()
1479 dent = aafs_create_file("sha1", S_IFREG | 0444, dir, in __aa_fs_create_rawdata()
1481 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1483 rawdata->dents[AAFS_LOADDATA_HASH] = dent; in __aa_fs_create_rawdata()
1486 dent = aafs_create_file("compressed_size", S_IFREG | 0444, dir, in __aa_fs_create_rawdata()
1489 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1491 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent; in __aa_fs_create_rawdata()
1493 dent = aafs_create_file("raw_data", S_IFREG | 0444, in __aa_fs_create_rawdata()
1495 if (IS_ERR(dent)) in __aa_fs_create_rawdata()
1497 rawdata->dents[AAFS_LOADDATA_DATA] = dent; in __aa_fs_create_rawdata()
1498 d_inode(dent)->i_size = rawdata->size; in __aa_fs_create_rawdata()
1509 return PTR_ERR(dent); in __aa_fs_create_rawdata()
1572 struct dentry *dent; in create_profile_file() local
1574 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops); in create_profile_file()
1575 if (IS_ERR(dent)) in create_profile_file()
1578 return dent; in create_profile_file()
1691 struct dentry *dent = NULL, *dir; in __aafs_profile_mkdir() local
1700 dent = prof_dir(p); in __aafs_profile_mkdir()
1701 if (!dent) { in __aafs_profile_mkdir()
1706 dent = aafs_create_dir("profiles", dent); in __aafs_profile_mkdir()
1707 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1709 prof_child_dir(p) = parent = dent; in __aafs_profile_mkdir()
1727 dent = aafs_create_dir(profile->dirname, parent); in __aafs_profile_mkdir()
1728 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1730 prof_dir(profile) = dir = dent; in __aafs_profile_mkdir()
1732 dent = create_profile_file(dir, "name", profile, in __aafs_profile_mkdir()
1734 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1736 profile->dents[AAFS_PROF_NAME] = dent; in __aafs_profile_mkdir()
1738 dent = create_profile_file(dir, "mode", profile, in __aafs_profile_mkdir()
1740 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1742 profile->dents[AAFS_PROF_MODE] = dent; in __aafs_profile_mkdir()
1744 dent = create_profile_file(dir, "attach", profile, in __aafs_profile_mkdir()
1746 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1748 profile->dents[AAFS_PROF_ATTACH] = dent; in __aafs_profile_mkdir()
1751 dent = create_profile_file(dir, "sha1", profile, in __aafs_profile_mkdir()
1753 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1755 profile->dents[AAFS_PROF_HASH] = dent; in __aafs_profile_mkdir()
1761 dent = aafs_create("raw_sha1", S_IFLNK | 0444, dir, in __aafs_profile_mkdir()
1764 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1767 profile->dents[AAFS_PROF_RAW_HASH] = dent; in __aafs_profile_mkdir()
1769 dent = aafs_create("raw_abi", S_IFLNK | 0444, dir, in __aafs_profile_mkdir()
1772 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1775 profile->dents[AAFS_PROF_RAW_ABI] = dent; in __aafs_profile_mkdir()
1777 dent = aafs_create("raw_data", S_IFLNK | 0444, dir, in __aafs_profile_mkdir()
1780 if (IS_ERR(dent)) in __aafs_profile_mkdir()
1783 profile->dents[AAFS_PROF_RAW_DATA] = dent; in __aafs_profile_mkdir()
1796 error = PTR_ERR(dent); in __aafs_profile_mkdir()
1969 struct dentry *dent; in __aafs_ns_mkdir_entries() local
1974 dent = aafs_create_dir("profiles", dir); in __aafs_ns_mkdir_entries()
1975 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
1976 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
1977 ns_subprofs_dir(ns) = dent; in __aafs_ns_mkdir_entries()
1979 dent = aafs_create_dir("raw_data", dir); in __aafs_ns_mkdir_entries()
1980 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
1981 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
1982 ns_subdata_dir(ns) = dent; in __aafs_ns_mkdir_entries()
1984 dent = aafs_create_file("revision", 0444, dir, ns, in __aafs_ns_mkdir_entries()
1986 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
1987 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
1989 ns_subrevision(ns) = dent; in __aafs_ns_mkdir_entries()
1991 dent = aafs_create_file(".load", 0640, dir, ns, in __aafs_ns_mkdir_entries()
1993 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
1994 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
1996 ns_subload(ns) = dent; in __aafs_ns_mkdir_entries()
1998 dent = aafs_create_file(".replace", 0640, dir, ns, in __aafs_ns_mkdir_entries()
2000 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
2001 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
2003 ns_subreplace(ns) = dent; in __aafs_ns_mkdir_entries()
2005 dent = aafs_create_file(".remove", 0640, dir, ns, in __aafs_ns_mkdir_entries()
2007 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
2008 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
2010 ns_subremove(ns) = dent; in __aafs_ns_mkdir_entries()
2013 dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL, in __aafs_ns_mkdir_entries()
2015 if (IS_ERR(dent)) in __aafs_ns_mkdir_entries()
2016 return PTR_ERR(dent); in __aafs_ns_mkdir_entries()
2018 ns_subns_dir(ns) = dent; in __aafs_ns_mkdir_entries()
2027 struct dentry *dent) in __aafs_ns_mkdir() argument
2041 if (!dent) { in __aafs_ns_mkdir()
2043 dent = aafs_create_dir(name, parent); in __aafs_ns_mkdir()
2044 if (IS_ERR(dent)) in __aafs_ns_mkdir()
2047 dget(dent); in __aafs_ns_mkdir()
2048 ns_dir(ns) = dir = dent; in __aafs_ns_mkdir()
2072 error = PTR_ERR(dent); in __aafs_ns_mkdir()
2624 struct dentry *dent; in aa_create_aafs() local
2646 dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry, in aa_create_aafs()
2648 if (IS_ERR(dent)) in aa_create_aafs()
2650 ns_subload(root_ns) = dent; in aa_create_aafs()
2652 dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry, in aa_create_aafs()
2654 if (IS_ERR(dent)) in aa_create_aafs()
2656 ns_subreplace(root_ns) = dent; in aa_create_aafs()
2658 dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry, in aa_create_aafs()
2660 if (IS_ERR(dent)) in aa_create_aafs()
2662 ns_subremove(root_ns) = dent; in aa_create_aafs()
2664 dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry, in aa_create_aafs()
2666 if (IS_ERR(dent)) in aa_create_aafs()
2668 ns_subrevision(root_ns) = dent; in aa_create_aafs()
2679 dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry, in aa_create_aafs()
2681 if (IS_ERR(dent)) in aa_create_aafs()
2695 error = PTR_ERR(dent); in aa_create_aafs()