/titanic_41/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_filegrp.c | 134 int filegrpattr_find(struct filegrp *fgp); 135 int filegrpattr_create(struct filegrp *fgp); 141 filegrp_t *fgp = (filegrp_t *)voidp; in filegrp_cache_create() local 143 mutex_init(&fgp->fg_mutex, NULL, MUTEX_DEFAULT, NULL); in filegrp_cache_create() 144 mutex_init(&fgp->fg_cnodelock, NULL, MUTEX_DEFAULT, NULL); in filegrp_cache_create() 152 filegrp_t *fgp = (filegrp_t *)voidp; in filegrp_cache_destroy() local 154 mutex_destroy(&fgp->fg_mutex); in filegrp_cache_destroy() 155 mutex_destroy(&fgp->fg_cnodelock); in filegrp_cache_destroy() 187 filegrp_t *fgp; in filegrp_create() local 194 fgp = (filegrp_t *) in filegrp_create() [all …]
|
H A D | cachefs_cnode.c | 273 struct filegrp *fgp; in cachefs_cnode_inactive() local 283 fgp = cp->c_filegrp; in cachefs_cnode_inactive() 361 mutex_enter(&fgp->fg_cnodelock); in cachefs_cnode_inactive() 372 mutex_exit(&fgp->fg_cnodelock); in cachefs_cnode_inactive() 385 mutex_exit(&fgp->fg_cnodelock); in cachefs_cnode_inactive() 403 (fgp->fg_flags & CFS_FG_WRITE) && !CFS_ISFS_BACKFS_NFSV4(fscp)) { in cachefs_cnode_inactive() 405 cachefs_removefrontfile(mdp, &cp->c_id, fgp); in cachefs_cnode_inactive() 412 (void) filegrp_destroy_metadata(fgp, &cp->c_id); in cachefs_cnode_inactive() 419 (fgp->fg_flags & CFS_FG_WRITE) && in cachefs_cnode_inactive() 447 mutex_exit(&fgp->fg_cnodelock); in cachefs_cnode_inactive() [all …]
|
H A D | cachefs_resource.c | 539 struct filegrp *fgp; in cachefs_victim() local 547 fgp = NULL; in cachefs_victim() 593 fgp = filegrp_list_find(fscp, &cid); in cachefs_victim() 594 if (fgp == NULL) { in cachefs_victim() 595 fgp = filegrp_create(fscp, &cid); in cachefs_victim() 596 filegrp_list_add(fscp, fgp); in cachefs_victim() 598 if (fgp->fg_flags & CFS_FG_ALLOC_ATTR) { in cachefs_victim() 604 filegrp_list_remove(fscp, fgp); in cachefs_victim() 605 filegrp_destroy(fgp); in cachefs_victim() 607 fgp = NULL; in cachefs_victim() [all …]
|
H A D | cachefs_subr.c | 439 filegrp_t *fgp; in cachefs_stop_cache() local 496 for (fgp = fscp->fs_filegrp[i]; fgp != NULL; in cachefs_stop_cache() 497 fgp = fgp->fg_next) { in cachefs_stop_cache() 498 mutex_enter(&fgp->fg_mutex); in cachefs_stop_cache() 500 ASSERT((fgp->fg_flags & in cachefs_stop_cache() 502 fgp->fg_flags |= in cachefs_stop_cache() 505 fgp->fg_flags &= ~CFS_FG_READ; in cachefs_stop_cache() 507 if (fgp->fg_dirvp) { in cachefs_stop_cache() 508 fgp->fg_flags |= CFS_FG_ALLOC_FILE; in cachefs_stop_cache() 509 VN_RELE(fgp->fg_dirvp); in cachefs_stop_cache() [all …]
|
H A D | cachefs_fscache.c | 540 struct filegrp *fgp; in fscache_sync() local 552 for (fgp = fscp->fs_filegrp[xx]; fgp != NULL; in fscache_sync() 553 fgp = fgp->fg_next) { in fscache_sync() 554 (void) filegrp_sync(fgp); in fscache_sync()
|
H A D | cachefs_vnops.c | 3297 struct filegrp *fgp; in cachefs_sync_metadata() local 3312 fgp = cp->c_filegrp; in cachefs_sync_metadata() 3313 if ((fgp->fg_flags & CFS_FG_WRITE) == 0) in cachefs_sync_metadata() 3318 if (fgp->fg_flags & CFS_FG_ALLOC_ATTR) { in cachefs_sync_metadata() 3320 error = filegrp_allocattr(fgp); in cachefs_sync_metadata() 3329 error = filegrp_create_metadata(fgp, &cp->c_metadata, in cachefs_sync_metadata() 3364 error = filegrp_write_metadata(fgp, &cp->c_id, in cachefs_sync_metadata() 3374 &cp->c_id, fgp); in cachefs_sync_metadata() 3385 (void) filegrp_destroy_metadata(fgp, &cp->c_id); in cachefs_sync_metadata() 10167 filegrp_t *fgp = cp->c_filegrp; in cachefs_modified_alloc() local [all …]
|
/titanic_41/usr/src/uts/common/sys/fs/ |
H A D | cachefs_filegrp.h | 77 void filegrp_destroy(filegrp_t *fgp); 78 int filegrp_allocattr(filegrp_t *fgp); 79 int filegrpdir_create(filegrp_t *fgp); 80 int filegrpdir_find(filegrp_t *fgp); 81 void filegrp_hold(filegrp_t *fgp); 82 void filegrp_rele(filegrp_t *fgp); 83 int filegrp_ffhold(filegrp_t *fgp); 84 void filegrp_ffrele(filegrp_t *fgp); 86 int filegrp_sync(filegrp_t *fgp); 87 int filegrp_read_metadata(filegrp_t *fgp, cfs_cid_t *cidp, [all …]
|
H A D | cachefs_fs.h | 1133 int cachefs_cnode_find(filegrp_t *fgp, cfs_cid_t *cidp, fid_t *cookiep, 1137 int cachefs_cid_inuse(filegrp_t *fgp, cfs_cid_t *cidp); 1166 filegrp_t *fgp);
|
/titanic_41/usr/src/cmd/fs.d/cachefs/common/ |
H A D | stats_dbm.c | 281 fg_info fg, *fgp = NULL; in stats_dbm_attrcache_addsize() local 306 fgp = &fg; in stats_dbm_attrcache_addsize() 307 if (fgp->fg_magic != FG_MAGIC) in stats_dbm_attrcache_addsize() 308 fgp = NULL; /* oops -- key collision! */ in stats_dbm_attrcache_addsize() 312 if (fgp == NULL) { in stats_dbm_attrcache_addsize() 314 fgp = &fg; in stats_dbm_attrcache_addsize() 315 fgp->fg_magic = FG_MAGIC; in stats_dbm_attrcache_addsize() 322 if (count > fgp->fg_count) in stats_dbm_attrcache_addsize() 323 fgp->fg_count = count; in stats_dbm_attrcache_addsize() 326 if ((gfileno / NBBY) < sizeof (fgp->fg_bits)) { in stats_dbm_attrcache_addsize() [all …]
|
/titanic_41/usr/src/cmd/refer/ |
H A D | hunt7.c | 26 char *fgp = fgspace; variable 95 strcpy(*fgnamp++ = fgp, name); in findline() 97 while (*fgp && *fgp != ':') in findline() 98 fgp++; in findline() 99 *fgp++ = 0; in findline() 100 assert(fgp < fgspace+FGSIZE); in findline()
|
H A D | hunt1.c | 218 char **fgp, tgbuff[100]; in main() local 232 for (fgp = fgnames; fgp < fgnamp; fgp++) { in main() 235 *fgp, grepquery); in main() 237 makefgrep(*fgp); in main() 243 grepcall(grepquery, tagout, *fgp); in main()
|
H A D | glue1.c | 266 char **fgp; in huntmain() local 276 for (fgp = fgnames; fgp < fgnamp; fgp++) { in huntmain() 279 *fgp, grepquery); in huntmain() 281 makefgrep(*fgp); in huntmain() 282 grepcall(grepquery, tagout, *fgp); in huntmain()
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | fil.c | 3327 frgroup_t *fg, **fgp; local 3333 fgp = &ifs->ifs_ipfgroups[unit][set]; 3335 while ((fg = *fgp) != NULL) { 3339 fgp = &fg->fg_next; 3342 *fgpp = fgp; 3369 frgroup_t *fg, **fgp; local 3378 fgp = NULL; 3381 fg = fr_findgroup(group, unit, set, &fgp, ifs); 3394 fg->fg_next = *fgp; 3398 *fgp = fg; [all …]
|