Lines Matching refs:ufs_inode
483 struct ufs_inode * ufs_inode; in ufs_read_inode() local
505 …ufs_inode = (struct ufs_inode *) (bh->b_data + sizeof(struct ufs_inode) * ufs_inotofsbo(inode->i_i… in ufs_read_inode()
510 inode->i_mode = fs16_to_cpu(sb, ufs_inode->ui_mode); in ufs_read_inode()
511 inode->i_nlink = fs16_to_cpu(sb, ufs_inode->ui_nlink); in ufs_read_inode()
518 inode->i_uid = ufs_get_inode_uid(sb, ufs_inode); in ufs_read_inode()
519 inode->i_gid = ufs_get_inode_gid(sb, ufs_inode); in ufs_read_inode()
521 inode->i_size = fs64_to_cpu(sb, ufs_inode->ui_size); in ufs_read_inode()
522 inode->i_atime = fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs_read_inode()
523 inode->i_ctime = fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs_read_inode()
524 inode->i_mtime = fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs_read_inode()
525 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs_read_inode()
529 inode->u.ufs_i.i_flags = fs32_to_cpu(sb, ufs_inode->ui_flags); in ufs_read_inode()
530 inode->u.ufs_i.i_gen = fs32_to_cpu(sb, ufs_inode->ui_gen); in ufs_read_inode()
531 inode->u.ufs_i.i_shadow = fs32_to_cpu(sb, ufs_inode->ui_u3.ui_sun.ui_shadow); in ufs_read_inode()
532 inode->u.ufs_i.i_oeftflag = fs32_to_cpu(sb, ufs_inode->ui_u3.ui_sun.ui_oeftflag); in ufs_read_inode()
539 inode->u.ufs_i.i_u1.i_data[i] = ufs_inode->ui_u2.ui_addr.ui_db[i]; in ufs_read_inode()
543 inode->u.ufs_i.i_u1.i_symlink[i] = ufs_inode->ui_u2.ui_symlink[i]; in ufs_read_inode()
563 fs32_to_cpu(sb, ufs_inode->ui_u2.ui_addr.ui_db[0])); in ufs_read_inode()
580 struct ufs_inode * ufs_inode; in ufs_update_inode() local
601 …ufs_inode = (struct ufs_inode *) (bh->b_data + ufs_inotofsbo(inode->i_ino) * sizeof(struct ufs_ino… in ufs_update_inode()
603 ufs_inode->ui_mode = cpu_to_fs16(sb, inode->i_mode); in ufs_update_inode()
604 ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink); in ufs_update_inode()
606 ufs_set_inode_uid(sb, ufs_inode, inode->i_uid); in ufs_update_inode()
607 ufs_set_inode_gid(sb, ufs_inode, inode->i_gid); in ufs_update_inode()
609 ufs_inode->ui_size = cpu_to_fs64(sb, inode->i_size); in ufs_update_inode()
610 ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime); in ufs_update_inode()
611 ufs_inode->ui_atime.tv_usec = 0; in ufs_update_inode()
612 ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime); in ufs_update_inode()
613 ufs_inode->ui_ctime.tv_usec = 0; in ufs_update_inode()
614 ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime); in ufs_update_inode()
615 ufs_inode->ui_mtime.tv_usec = 0; in ufs_update_inode()
616 ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); in ufs_update_inode()
617 ufs_inode->ui_flags = cpu_to_fs32(sb, inode->u.ufs_i.i_flags); in ufs_update_inode()
618 ufs_inode->ui_gen = cpu_to_fs32(sb, inode->u.ufs_i.i_gen); in ufs_update_inode()
621 ufs_inode->ui_u3.ui_sun.ui_shadow = cpu_to_fs32(sb, inode->u.ufs_i.i_shadow); in ufs_update_inode()
622 ufs_inode->ui_u3.ui_sun.ui_oeftflag = cpu_to_fs32(sb, inode->u.ufs_i.i_oeftflag); in ufs_update_inode()
626 ufs_inode->ui_u2.ui_addr.ui_db[0] = cpu_to_fs32(sb, kdev_t_to_nr(inode->i_rdev)); in ufs_update_inode()
629 ufs_inode->ui_u2.ui_addr.ui_db[i] = inode->u.ufs_i.i_u1.i_data[i]; in ufs_update_inode()
633 ufs_inode->ui_u2.ui_symlink[i] = inode->u.ufs_i.i_u1.i_symlink[i]; in ufs_update_inode()
637 memset (ufs_inode, 0, sizeof(struct ufs_inode)); in ufs_update_inode()