Lines Matching refs:dentry
305 static struct dentry *create_buf_file_default_callback(const char *filename, in create_buf_file_default_callback()
306 struct dentry *parent, in create_buf_file_default_callback()
317 static int remove_buf_file_default_callback(struct dentry *dentry) in remove_buf_file_default_callback() argument
410 struct dentry *dentry) in relay_set_buf_dentry() argument
412 buf->dentry = dentry; in relay_set_buf_dentry()
413 d_inode(buf->dentry)->i_size = buf->early_bytes; in relay_set_buf_dentry()
416 static struct dentry *relay_create_buf_file(struct rchan *chan, in relay_create_buf_file()
420 struct dentry *dentry; in relay_create_buf_file() local
429 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
432 if (IS_ERR(dentry)) in relay_create_buf_file()
433 dentry = NULL; in relay_create_buf_file()
437 return dentry; in relay_create_buf_file()
448 struct dentry *dentry; in relay_open_buf() local
458 dentry = relay_create_buf_file(chan, buf, cpu); in relay_open_buf()
459 if (!dentry) in relay_open_buf()
461 relay_set_buf_dentry(buf, dentry); in relay_open_buf()
464 dentry = chan->cb->create_buf_file(NULL, NULL, in relay_open_buf()
467 if (IS_ERR_OR_NULL(dentry)) in relay_open_buf()
498 buf->chan->cb->remove_buf_file(buf->dentry); in relay_close_buf()
565 struct dentry *parent, in relay_open()
629 struct dentry *dentry; member
637 relay_set_buf_dentry(p->buf, p->dentry); in __relay_set_buf_dentry()
657 struct dentry *parent) in relay_late_setup_files()
662 struct dentry *dentry; in relay_late_setup_files() local
684 dentry = relay_create_buf_file(chan, buf, 0); in relay_late_setup_files()
685 if (dentry && !WARN_ON_ONCE(!chan->is_global)) { in relay_late_setup_files()
686 relay_set_buf_dentry(buf, dentry); in relay_late_setup_files()
708 dentry = relay_create_buf_file(chan, buf, i); in relay_late_setup_files()
709 if (unlikely(!dentry)) { in relay_late_setup_files()
716 relay_set_buf_dentry(buf, dentry); in relay_late_setup_files()
720 disp.dentry = dentry; in relay_late_setup_files()
760 if (buf->dentry) in relay_switch_subbuf()
761 d_inode(buf->dentry)->i_size += in relay_switch_subbuf()