Lines Matching refs:raw_inode
1370 struct ext2_inode *raw_inode; in ext2_iget() local
1386 raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); in ext2_iget()
1387 if (IS_ERR(raw_inode)) { in ext2_iget()
1388 ret = PTR_ERR(raw_inode); in ext2_iget()
1392 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1393 i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); in ext2_iget()
1394 i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); in ext2_iget()
1396 i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; in ext2_iget()
1397 i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; in ext2_iget()
1401 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in ext2_iget()
1402 inode->i_size = le32_to_cpu(raw_inode->i_size); in ext2_iget()
1403 inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime); in ext2_iget()
1404 inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime); in ext2_iget()
1405 inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime); in ext2_iget()
1407 ei->i_dtime = le32_to_cpu(raw_inode->i_dtime); in ext2_iget()
1418 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1419 ei->i_flags = le32_to_cpu(raw_inode->i_flags); in ext2_iget()
1421 ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); in ext2_iget()
1422 ei->i_frag_no = raw_inode->i_frag; in ext2_iget()
1423 ei->i_frag_size = raw_inode->i_fsize; in ext2_iget()
1424 ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); in ext2_iget()
1436 inode->i_size |= ((__u64)le32_to_cpu(raw_inode->i_size_high)) << 32; in ext2_iget()
1438 ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); in ext2_iget()
1444 inode->i_generation = le32_to_cpu(raw_inode->i_generation); in ext2_iget()
1454 ei->i_data[n] = raw_inode->i_block[n]; in ext2_iget()
1475 if (raw_inode->i_block[0]) in ext2_iget()
1477 old_decode_dev(le32_to_cpu(raw_inode->i_block[0]))); in ext2_iget()
1480 new_decode_dev(le32_to_cpu(raw_inode->i_block[1]))); in ext2_iget()
1500 struct ext2_inode * raw_inode = ext2_get_inode(sb, ino, &bh); in __ext2_write_inode() local
1504 if (IS_ERR(raw_inode)) in __ext2_write_inode()
1510 memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size); in __ext2_write_inode()
1512 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in __ext2_write_inode()
1514 raw_inode->i_uid_low = cpu_to_le16(low_16_bits(uid)); in __ext2_write_inode()
1515 raw_inode->i_gid_low = cpu_to_le16(low_16_bits(gid)); in __ext2_write_inode()
1521 raw_inode->i_uid_high = cpu_to_le16(high_16_bits(uid)); in __ext2_write_inode()
1522 raw_inode->i_gid_high = cpu_to_le16(high_16_bits(gid)); in __ext2_write_inode()
1524 raw_inode->i_uid_high = 0; in __ext2_write_inode()
1525 raw_inode->i_gid_high = 0; in __ext2_write_inode()
1528 raw_inode->i_uid_low = cpu_to_le16(fs_high2lowuid(uid)); in __ext2_write_inode()
1529 raw_inode->i_gid_low = cpu_to_le16(fs_high2lowgid(gid)); in __ext2_write_inode()
1530 raw_inode->i_uid_high = 0; in __ext2_write_inode()
1531 raw_inode->i_gid_high = 0; in __ext2_write_inode()
1533 raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); in __ext2_write_inode()
1534 raw_inode->i_size = cpu_to_le32(inode->i_size); in __ext2_write_inode()
1535 raw_inode->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in __ext2_write_inode()
1536 raw_inode->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in __ext2_write_inode()
1537 raw_inode->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in __ext2_write_inode()
1539 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
1540 raw_inode->i_dtime = cpu_to_le32(ei->i_dtime); in __ext2_write_inode()
1541 raw_inode->i_flags = cpu_to_le32(ei->i_flags); in __ext2_write_inode()
1542 raw_inode->i_faddr = cpu_to_le32(ei->i_faddr); in __ext2_write_inode()
1543 raw_inode->i_frag = ei->i_frag_no; in __ext2_write_inode()
1544 raw_inode->i_fsize = ei->i_frag_size; in __ext2_write_inode()
1545 raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); in __ext2_write_inode()
1547 raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); in __ext2_write_inode()
1549 raw_inode->i_size_high = cpu_to_le32(inode->i_size >> 32); in __ext2_write_inode()
1568 raw_inode->i_generation = cpu_to_le32(inode->i_generation); in __ext2_write_inode()
1571 raw_inode->i_block[0] = in __ext2_write_inode()
1573 raw_inode->i_block[1] = 0; in __ext2_write_inode()
1575 raw_inode->i_block[0] = 0; in __ext2_write_inode()
1576 raw_inode->i_block[1] = in __ext2_write_inode()
1578 raw_inode->i_block[2] = 0; in __ext2_write_inode()
1581 raw_inode->i_block[n] = ei->i_data[n]; in __ext2_write_inode()