Lines Matching refs:raw_inode
483 struct minix_inode * raw_inode; in V1_minix_iget() local
487 raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); in V1_minix_iget()
488 if (!raw_inode) { in V1_minix_iget()
492 if (raw_inode->i_nlinks == 0) { in V1_minix_iget()
499 inode->i_mode = raw_inode->i_mode; in V1_minix_iget()
500 i_uid_write(inode, raw_inode->i_uid); in V1_minix_iget()
501 i_gid_write(inode, raw_inode->i_gid); in V1_minix_iget()
502 set_nlink(inode, raw_inode->i_nlinks); in V1_minix_iget()
503 inode->i_size = raw_inode->i_size; in V1_minix_iget()
504 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; in V1_minix_iget()
510 minix_inode->u.i1_data[i] = raw_inode->i_zone[i]; in V1_minix_iget()
511 minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); in V1_minix_iget()
523 struct minix2_inode * raw_inode; in V2_minix_iget() local
527 raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); in V2_minix_iget()
528 if (!raw_inode) { in V2_minix_iget()
532 if (raw_inode->i_nlinks == 0) { in V2_minix_iget()
539 inode->i_mode = raw_inode->i_mode; in V2_minix_iget()
540 i_uid_write(inode, raw_inode->i_uid); in V2_minix_iget()
541 i_gid_write(inode, raw_inode->i_gid); in V2_minix_iget()
542 set_nlink(inode, raw_inode->i_nlinks); in V2_minix_iget()
543 inode->i_size = raw_inode->i_size; in V2_minix_iget()
544 inode->i_mtime.tv_sec = raw_inode->i_mtime; in V2_minix_iget()
545 inode->i_atime.tv_sec = raw_inode->i_atime; in V2_minix_iget()
546 inode->i_ctime.tv_sec = raw_inode->i_ctime; in V2_minix_iget()
552 minix_inode->u.i2_data[i] = raw_inode->i_zone[i]; in V2_minix_iget()
553 minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); in V2_minix_iget()
584 struct minix_inode * raw_inode; in V1_minix_update_inode() local
588 raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); in V1_minix_update_inode()
589 if (!raw_inode) in V1_minix_update_inode()
591 raw_inode->i_mode = inode->i_mode; in V1_minix_update_inode()
592 raw_inode->i_uid = fs_high2lowuid(i_uid_read(inode)); in V1_minix_update_inode()
593 raw_inode->i_gid = fs_high2lowgid(i_gid_read(inode)); in V1_minix_update_inode()
594 raw_inode->i_nlinks = inode->i_nlink; in V1_minix_update_inode()
595 raw_inode->i_size = inode->i_size; in V1_minix_update_inode()
596 raw_inode->i_time = inode->i_mtime.tv_sec; in V1_minix_update_inode()
598 raw_inode->i_zone[0] = old_encode_dev(inode->i_rdev); in V1_minix_update_inode()
600 raw_inode->i_zone[i] = minix_inode->u.i1_data[i]; in V1_minix_update_inode()
611 struct minix2_inode * raw_inode; in V2_minix_update_inode() local
615 raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); in V2_minix_update_inode()
616 if (!raw_inode) in V2_minix_update_inode()
618 raw_inode->i_mode = inode->i_mode; in V2_minix_update_inode()
619 raw_inode->i_uid = fs_high2lowuid(i_uid_read(inode)); in V2_minix_update_inode()
620 raw_inode->i_gid = fs_high2lowgid(i_gid_read(inode)); in V2_minix_update_inode()
621 raw_inode->i_nlinks = inode->i_nlink; in V2_minix_update_inode()
622 raw_inode->i_size = inode->i_size; in V2_minix_update_inode()
623 raw_inode->i_mtime = inode->i_mtime.tv_sec; in V2_minix_update_inode()
624 raw_inode->i_atime = inode->i_atime.tv_sec; in V2_minix_update_inode()
625 raw_inode->i_ctime = inode->i_ctime.tv_sec; in V2_minix_update_inode()
627 raw_inode->i_zone[0] = old_encode_dev(inode->i_rdev); in V2_minix_update_inode()
629 raw_inode->i_zone[i] = minix_inode->u.i2_data[i]; in V2_minix_update_inode()