• Home
  • Raw
  • Download

Lines Matching refs:rawdata

1404 static void remove_rawdata_dents(struct aa_loaddata *rawdata)  in remove_rawdata_dents()  argument
1409 if (!IS_ERR_OR_NULL(rawdata->dents[i])) { in remove_rawdata_dents()
1411 aafs_remove(rawdata->dents[i]); in remove_rawdata_dents()
1412 rawdata->dents[i] = NULL; in remove_rawdata_dents()
1417 void __aa_fs_remove_rawdata(struct aa_loaddata *rawdata) in __aa_fs_remove_rawdata() argument
1419 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata()
1421 if (rawdata->ns) { in __aa_fs_remove_rawdata()
1422 remove_rawdata_dents(rawdata); in __aa_fs_remove_rawdata()
1423 list_del_init(&rawdata->list); in __aa_fs_remove_rawdata()
1424 aa_put_ns(rawdata->ns); in __aa_fs_remove_rawdata()
1425 rawdata->ns = NULL; in __aa_fs_remove_rawdata()
1429 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata() argument
1434 AA_BUG(!rawdata); in __aa_fs_create_rawdata()
1443 rawdata->name = kasprintf(GFP_KERNEL, "%ld", ns->revision); in __aa_fs_create_rawdata()
1444 if (!rawdata->name) in __aa_fs_create_rawdata()
1447 dir = aafs_create_dir(rawdata->name, ns_subdata_dir(ns)); in __aa_fs_create_rawdata()
1451 rawdata->dents[AAFS_LOADDATA_DIR] = dir; in __aa_fs_create_rawdata()
1453 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata()
1457 rawdata->dents[AAFS_LOADDATA_ABI] = dent; in __aa_fs_create_rawdata()
1459 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, in __aa_fs_create_rawdata()
1463 rawdata->dents[AAFS_LOADDATA_REVISION] = dent; in __aa_fs_create_rawdata()
1467 rawdata, &seq_rawdata_hash_fops); in __aa_fs_create_rawdata()
1470 rawdata->dents[AAFS_LOADDATA_HASH] = dent; in __aa_fs_create_rawdata()
1474 rawdata, in __aa_fs_create_rawdata()
1478 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent; in __aa_fs_create_rawdata()
1481 dir, rawdata, &rawdata_fops); in __aa_fs_create_rawdata()
1484 rawdata->dents[AAFS_LOADDATA_DATA] = dent; in __aa_fs_create_rawdata()
1485 d_inode(dent)->i_size = rawdata->size; in __aa_fs_create_rawdata()
1487 rawdata->ns = aa_get_ns(ns); in __aa_fs_create_rawdata()
1488 list_add(&rawdata->list, &ns->rawdata_list); in __aa_fs_create_rawdata()
1494 remove_rawdata_dents(rawdata); in __aa_fs_create_rawdata()
1622 target = gen_symlink_name(depth, profile->rawdata->name, name); in rawdata_get_link_base()
1735 if (profile->rawdata) { in __aafs_profile_mkdir()