Lines Matching refs:raw_inode

454 			    struct nilfs_inode *raw_inode)  in nilfs_read_inode_common()  argument
459 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in nilfs_read_inode_common()
460 i_uid_write(inode, le32_to_cpu(raw_inode->i_uid)); in nilfs_read_inode_common()
461 i_gid_write(inode, le32_to_cpu(raw_inode->i_gid)); in nilfs_read_inode_common()
462 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in nilfs_read_inode_common()
463 inode->i_size = le64_to_cpu(raw_inode->i_size); in nilfs_read_inode_common()
464 inode->i_atime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common()
465 inode->i_ctime.tv_sec = le64_to_cpu(raw_inode->i_ctime); in nilfs_read_inode_common()
466 inode->i_mtime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common()
467 inode->i_atime.tv_nsec = le32_to_cpu(raw_inode->i_mtime_nsec); in nilfs_read_inode_common()
468 inode->i_ctime.tv_nsec = le32_to_cpu(raw_inode->i_ctime_nsec); in nilfs_read_inode_common()
469 inode->i_mtime.tv_nsec = le32_to_cpu(raw_inode->i_mtime_nsec); in nilfs_read_inode_common()
475 inode->i_blocks = le64_to_cpu(raw_inode->i_blocks); in nilfs_read_inode_common()
476 ii->i_flags = le32_to_cpu(raw_inode->i_flags); in nilfs_read_inode_common()
478 ii->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); in nilfs_read_inode_common()
480 0 : le32_to_cpu(raw_inode->i_dir_acl); in nilfs_read_inode_common()
483 inode->i_generation = le32_to_cpu(raw_inode->i_generation); in nilfs_read_inode_common()
487 err = nilfs_bmap_read(ii->i_bmap, raw_inode); in nilfs_read_inode_common()
502 struct nilfs_inode *raw_inode; in __nilfs_read_inode() local
510 raw_inode = nilfs_ifile_map_inode(root->ifile, ino, bh); in __nilfs_read_inode()
512 err = nilfs_read_inode_common(inode, raw_inode); in __nilfs_read_inode()
532 huge_decode_dev(le64_to_cpu(raw_inode->i_device_code))); in __nilfs_read_inode()
774 struct nilfs_inode *raw_inode, int has_bmap) in nilfs_write_inode_common() argument
778 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in nilfs_write_inode_common()
779 raw_inode->i_uid = cpu_to_le32(i_uid_read(inode)); in nilfs_write_inode_common()
780 raw_inode->i_gid = cpu_to_le32(i_gid_read(inode)); in nilfs_write_inode_common()
781 raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); in nilfs_write_inode_common()
782 raw_inode->i_size = cpu_to_le64(inode->i_size); in nilfs_write_inode_common()
783 raw_inode->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); in nilfs_write_inode_common()
784 raw_inode->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); in nilfs_write_inode_common()
785 raw_inode->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in nilfs_write_inode_common()
786 raw_inode->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in nilfs_write_inode_common()
787 raw_inode->i_blocks = cpu_to_le64(inode->i_blocks); in nilfs_write_inode_common()
789 raw_inode->i_flags = cpu_to_le32(ii->i_flags); in nilfs_write_inode_common()
790 raw_inode->i_generation = cpu_to_le32(inode->i_generation); in nilfs_write_inode_common()
796 raw_inode->i_xattr = 0; in nilfs_write_inode_common()
797 raw_inode->i_pad = 0; in nilfs_write_inode_common()
798 memset((void *)raw_inode + sizeof(*raw_inode), 0, in nilfs_write_inode_common()
799 nilfs->ns_inode_size - sizeof(*raw_inode)); in nilfs_write_inode_common()
803 nilfs_bmap_write(ii->i_bmap, raw_inode); in nilfs_write_inode_common()
805 raw_inode->i_device_code = in nilfs_write_inode_common()
818 struct nilfs_inode *raw_inode; in nilfs_update_inode() local
820 raw_inode = nilfs_ifile_map_inode(ifile, ino, ibh); in nilfs_update_inode()
823 memset(raw_inode, 0, NILFS_MDT(ifile)->mi_entry_size); in nilfs_update_inode()
827 nilfs_write_inode_common(inode, raw_inode, 0); in nilfs_update_inode()