Lines Matching defs:logfile
121 * These two macros are used to prep a logfile data structure and
125 * the logfile struct.
301 struct log_file *logfile;
305 if (log_file_create(name, &logfile))
313 buffer->lb_logfile = logfile;
421 * 'logfile' is set to be the log_file structure with reference one.
430 struct log_file *logfile = NULL;
450 logfile = (struct log_file *)kmem_zalloc(sizeof (*logfile), KM_SLEEP);
451 logfile->lf_path = name;
456 logfile->lf_vp = vp;
457 logfile->lf_refcnt = 1;
458 mutex_init(&logfile->lf_lock, NULL, MUTEX_DEFAULT, NULL);
487 mutex_enter(&logfile->lf_lock);
489 error = nfslog_write_logrecords(logfile, &lr, 1);
491 mutex_exit(&logfile->lf_lock);
500 *lfpp = logfile;
521 if (logfile != NULL) {
522 mutex_destroy(&logfile->lf_lock);
523 kmem_free(logfile, sizeof (*logfile));
910 struct log_file *logfile;
944 if (error = log_file_create(lbp->lb_path, &logfile)) {
952 * all the threads trying to access lb->logfile block
953 * and get a new logfile structure instead of old one.
956 lbp->lb_logfile = logfile;
975 * logfile structure "lf" has been replaced with
976 * the new "logfile" structure, so release the