Lines Matching refs:bdev_file
5834 struct file *bdev_file; in ext4_get_journal_blkdev() local
5841 bdev_file = bdev_file_open_by_dev(j_dev, in ext4_get_journal_blkdev()
5844 if (IS_ERR(bdev_file)) { in ext4_get_journal_blkdev()
5847 MAJOR(j_dev), MINOR(j_dev), PTR_ERR(bdev_file)); in ext4_get_journal_blkdev()
5848 return bdev_file; in ext4_get_journal_blkdev()
5851 bdev = file_bdev(bdev_file); in ext4_get_journal_blkdev()
5863 set_blocksize(bdev_file, blocksize); in ext4_get_journal_blkdev()
5898 return bdev_file; in ext4_get_journal_blkdev()
5903 bdev_fput(bdev_file); in ext4_get_journal_blkdev()
5913 struct file *bdev_file; in ext4_open_dev_journal() local
5916 bdev_file = ext4_get_journal_blkdev(sb, j_dev, &j_start, &j_len); in ext4_open_dev_journal()
5917 if (IS_ERR(bdev_file)) in ext4_open_dev_journal()
5918 return ERR_CAST(bdev_file); in ext4_open_dev_journal()
5920 journal = jbd2_journal_init_dev(file_bdev(bdev_file), sb->s_bdev, j_start, in ext4_open_dev_journal()
5935 EXT4_SB(sb)->s_journal_bdev_file = bdev_file; in ext4_open_dev_journal()
5942 bdev_fput(bdev_file); in ext4_open_dev_journal()
7318 struct file *bdev_file = sbi ? sbi->s_journal_bdev_file : NULL; in ext4_kill_sb() local
7322 if (bdev_file) in ext4_kill_sb()
7323 bdev_fput(bdev_file); in ext4_kill_sb()