Lines Matching refs:ufs2_inode

606 static int ufs2_read_inode(struct inode *inode, struct ufs2_inode *ufs2_inode)  in ufs2_read_inode()  argument
616 inode->i_mode = mode = fs16_to_cpu(sb, ufs2_inode->ui_mode); in ufs2_read_inode()
617 set_nlink(inode, fs16_to_cpu(sb, ufs2_inode->ui_nlink)); in ufs2_read_inode()
624 i_uid_write(inode, fs32_to_cpu(sb, ufs2_inode->ui_uid)); in ufs2_read_inode()
625 i_gid_write(inode, fs32_to_cpu(sb, ufs2_inode->ui_gid)); in ufs2_read_inode()
627 inode->i_size = fs64_to_cpu(sb, ufs2_inode->ui_size); in ufs2_read_inode()
628 inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); in ufs2_read_inode()
629 inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); in ufs2_read_inode()
630 inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); in ufs2_read_inode()
631 inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec); in ufs2_read_inode()
632 inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec); in ufs2_read_inode()
633 inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec); in ufs2_read_inode()
634 inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); in ufs2_read_inode()
635 inode->i_generation = fs32_to_cpu(sb, ufs2_inode->ui_gen); in ufs2_read_inode()
636 ufsi->i_flags = fs32_to_cpu(sb, ufs2_inode->ui_flags); in ufs2_read_inode()
643 memcpy(ufsi->i_u1.u2_i_data, &ufs2_inode->ui_u2.ui_addr, in ufs2_read_inode()
644 sizeof(ufs2_inode->ui_u2.ui_addr)); in ufs2_read_inode()
646 memcpy(ufsi->i_u1.i_symlink, ufs2_inode->ui_u2.ui_symlink, in ufs2_read_inode()
647 sizeof(ufs2_inode->ui_u2.ui_symlink) - 1); in ufs2_read_inode()
648 ufsi->i_u1.i_symlink[sizeof(ufs2_inode->ui_u2.ui_symlink) - 1] = 0; in ufs2_read_inode()
684 struct ufs2_inode *ufs2_inode = (struct ufs2_inode *)bh->b_data; in ufs_iget() local
687 ufs2_inode + ufs_inotofsbo(inode->i_ino)); in ufs_iget()
758 static void ufs2_update_inode(struct inode *inode, struct ufs2_inode *ufs_inode) in ufs2_update_inode()
794 memset (ufs_inode, 0, sizeof(struct ufs2_inode)); in ufs2_update_inode()
818 struct ufs2_inode *ufs2_inode = (struct ufs2_inode *)bh->b_data; in ufs_update_inode() local
821 ufs2_inode + ufs_inotofsbo(inode->i_ino)); in ufs_update_inode()