• Home
  • Raw
  • Download

Lines Matching refs:inode

213 	struct inode inode;  member
429 static struct inode *dax_alloc_inode(struct super_block *sb) in dax_alloc_inode()
432 struct inode *inode; in dax_alloc_inode() local
438 inode = &dax_dev->inode; in dax_alloc_inode()
439 inode->i_rdev = 0; in dax_alloc_inode()
440 return inode; in dax_alloc_inode()
443 static struct dax_device *to_dax_dev(struct inode *inode) in to_dax_dev() argument
445 return container_of(inode, struct dax_device, inode); in to_dax_dev()
448 static void dax_free_inode(struct inode *inode) in dax_free_inode() argument
450 struct dax_device *dax_dev = to_dax_dev(inode); in dax_free_inode()
453 if (inode->i_rdev) in dax_free_inode()
454 ida_simple_remove(&dax_minor_ida, MINOR(inode->i_rdev)); in dax_free_inode()
458 static void dax_destroy_inode(struct inode *inode) in dax_destroy_inode() argument
460 struct dax_device *dax_dev = to_dax_dev(inode); in dax_destroy_inode()
488 static int dax_test(struct inode *inode, void *data) in dax_test() argument
492 return inode->i_rdev == devt; in dax_test()
495 static int dax_set(struct inode *inode, void *data) in dax_set() argument
499 inode->i_rdev = devt; in dax_set()
506 struct inode *inode; in dax_dev_get() local
508 inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), in dax_dev_get()
511 if (!inode) in dax_dev_get()
514 dax_dev = to_dax_dev(inode); in dax_dev_get()
515 if (inode->i_state & I_NEW) { in dax_dev_get()
517 inode->i_cdev = &dax_dev->cdev; in dax_dev_get()
518 inode->i_mode = S_IFCHR; in dax_dev_get()
519 inode->i_flags = S_DAX; in dax_dev_get()
520 mapping_set_gfp_mask(&inode->i_data, GFP_USER); in dax_dev_get()
521 unlock_new_inode(inode); in dax_dev_get()
587 iput(&dax_dev->inode); in put_dax()
612 if (igrab(&dax_dev->inode)) in dax_get_by_host()
630 struct dax_device *inode_dax(struct inode *inode) in inode_dax() argument
632 struct cdev *cdev = inode->i_cdev; in inode_dax()
638 struct inode *dax_inode(struct dax_device *dax_dev) in dax_inode()
640 return &dax_dev->inode; in dax_inode()
655 struct inode *inode = &dax_dev->inode; in init_once() local
658 inode_init_once(inode); in init_once()