Home
last modified time | relevance | path

Searched refs:jdev (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/fs/jffs2/
Dnodelist.h316 static inline int jffs2_encode_dev(union jffs2_device_node *jdev, dev_t rdev) in jffs2_encode_dev() argument
319 jdev->old_id = cpu_to_je16(old_encode_dev(rdev)); in jffs2_encode_dev()
320 return sizeof(jdev->old_id); in jffs2_encode_dev()
322 jdev->new_id = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
323 return sizeof(jdev->new_id); in jffs2_encode_dev()
Dfs.c257 union jffs2_device_node jdev; in jffs2_iget() local
326 if (f->metadata->size != sizeof(jdev.old_id) && in jffs2_iget()
327 f->metadata->size != sizeof(jdev.new_id)) { in jffs2_iget()
333 ret = jffs2_read_dnode(c, f, f->metadata, (char *)&jdev, 0, f->metadata->size); in jffs2_iget()
340 if (f->metadata->size == sizeof(jdev.old_id)) in jffs2_iget()
341 rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); in jffs2_iget()
343 rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); in jffs2_iget()
/kernel/linux/linux-5.10/drivers/md/
Ddm-raid.c1247 struct md_rdev *jdev; in parse_raid_params() local
1263 jdev = &rs->journal_dev.rdev; in parse_raid_params()
1264 md_rdev_init(jdev); in parse_raid_params()
1265 jdev->mddev = &rs->md; in parse_raid_params()
1266 jdev->bdev = rs->journal_dev.dev->bdev; in parse_raid_params()
1267 jdev->sectors = to_sector(i_size_read(jdev->bdev->bd_inode)); in parse_raid_params()
1268 if (jdev->sectors < MIN_RAID456_JOURNAL_SPACE) { in parse_raid_params()
1273 set_bit(Journal, &jdev->flags); in parse_raid_params()
/kernel/linux/linux-5.10/fs/reiserfs/
Djournal.c2600 dev_t jdev; in journal_init_dev() local
2606 jdev = SB_ONDISK_JOURNAL_DEVICE(super) ? in journal_init_dev()
2614 if (jdev == super->s_dev) in journal_init_dev()
2616 journal->j_dev_bd = blkdev_get_by_dev(jdev, blkdev_mode, in journal_init_dev()
2624 MAJOR(jdev), MINOR(jdev), result); in journal_init_dev()
2626 } else if (jdev != super->s_dev) in journal_init_dev()
/kernel/liteos_a/fs/jffs2/
Djffs2.patch3031 - union jffs2_device_node jdev;
3128 - if (f->metadata->size != sizeof(jdev.old_id) &&
3129 - f->metadata->size != sizeof(jdev.new_id)) {
3135 - ret = jffs2_read_dnode(c, f, f->metadata, (char *)&jdev, 0, f->metadata->size);
3142 - if (f->metadata->size == sizeof(jdev.old_id))
3143 - rdev = old_decode_dev(je16_to_cpu(jdev.old_id));
3145 - rdev = new_decode_dev(je32_to_cpu(jdev.new_id));
4691 -static inline int jffs2_encode_dev(union jffs2_device_node *jdev, dev_t rdev)
4694 - jdev->old_id = cpu_to_je16(old_encode_dev(rdev));
4695 - return sizeof(jdev->old_id);
[all …]