Lines Matching refs:raw_inode

1403 	struct ext2_inode *raw_inode;  in ext2_iget()  local
1419 raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); in ext2_iget()
1420 if (IS_ERR(raw_inode)) { in ext2_iget()
1421 ret = PTR_ERR(raw_inode); in ext2_iget()
1425 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget()
1426 i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); in ext2_iget()
1427 i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); in ext2_iget()
1429 i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; in ext2_iget()
1430 i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; in ext2_iget()
1434 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in ext2_iget()
1435 inode->i_size = le32_to_cpu(raw_inode->i_size); in ext2_iget()
1436 inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime); in ext2_iget()
1437 inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime); in ext2_iget()
1438 inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime); in ext2_iget()
1440 ei->i_dtime = le32_to_cpu(raw_inode->i_dtime); in ext2_iget()
1452 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1453 ei->i_flags = le32_to_cpu(raw_inode->i_flags); in ext2_iget()
1455 ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); in ext2_iget()
1456 ei->i_frag_no = raw_inode->i_frag; in ext2_iget()
1457 ei->i_frag_size = raw_inode->i_fsize; in ext2_iget()
1458 ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); in ext2_iget()
1471 inode->i_size |= ((__u64)le32_to_cpu(raw_inode->i_size_high)) << 32; in ext2_iget()
1473 ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); in ext2_iget()
1479 inode->i_generation = le32_to_cpu(raw_inode->i_generation); in ext2_iget()
1489 ei->i_data[n] = raw_inode->i_block[n]; in ext2_iget()
1516 if (raw_inode->i_block[0]) in ext2_iget()
1518 old_decode_dev(le32_to_cpu(raw_inode->i_block[0]))); in ext2_iget()
1521 new_decode_dev(le32_to_cpu(raw_inode->i_block[1]))); in ext2_iget()
1540 struct ext2_inode * raw_inode = ext2_get_inode(sb, ino, &bh); in __ext2_write_inode() local
1544 if (IS_ERR(raw_inode)) in __ext2_write_inode()
1550 memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size); in __ext2_write_inode()
1552 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in __ext2_write_inode()
1554 raw_inode->i_uid_low = cpu_to_le16(low_16_bits(uid)); in __ext2_write_inode()
1555 raw_inode->i_gid_low = cpu_to_le16(low_16_bits(gid)); in __ext2_write_inode()
1561 raw_inode->i_uid_high = cpu_to_le16(high_16_bits(uid)); in __ext2_write_inode()
1562 raw_inode->i_gid_high = cpu_to_le16(high_16_bits(gid)); in __ext2_write_inode()
1564 raw_inode->i_uid_high = 0; in __ext2_write_inode()
1565 raw_inode->i_gid_high = 0; in __ext2_write_inode()
1568 raw_inode->i_uid_low = cpu_to_le16(fs_high2lowuid(uid)); in __ext2_write_inode()
1569 raw_inode->i_gid_low = cpu_to_le16(fs_high2lowgid(gid)); in __ext2_write_inode()
1570 raw_inode->i_uid_high = 0; in __ext2_write_inode()
1571 raw_inode->i_gid_high = 0; in __ext2_write_inode()
1573 raw_inode->i_links_count = cpu_to_le16(inode->i_nlink); in __ext2_write_inode()
1574 raw_inode->i_size = cpu_to_le32(inode->i_size); in __ext2_write_inode()
1575 raw_inode->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in __ext2_write_inode()
1576 raw_inode->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in __ext2_write_inode()
1577 raw_inode->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in __ext2_write_inode()
1579 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
1580 raw_inode->i_dtime = cpu_to_le32(ei->i_dtime); in __ext2_write_inode()
1581 raw_inode->i_flags = cpu_to_le32(ei->i_flags); in __ext2_write_inode()
1582 raw_inode->i_faddr = cpu_to_le32(ei->i_faddr); in __ext2_write_inode()
1583 raw_inode->i_frag = ei->i_frag_no; in __ext2_write_inode()
1584 raw_inode->i_fsize = ei->i_frag_size; in __ext2_write_inode()
1585 raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); in __ext2_write_inode()
1587 raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); in __ext2_write_inode()
1589 raw_inode->i_size_high = cpu_to_le32(inode->i_size >> 32); in __ext2_write_inode()
1608 raw_inode->i_generation = cpu_to_le32(inode->i_generation); in __ext2_write_inode()
1611 raw_inode->i_block[0] = in __ext2_write_inode()
1613 raw_inode->i_block[1] = 0; in __ext2_write_inode()
1615 raw_inode->i_block[0] = 0; in __ext2_write_inode()
1616 raw_inode->i_block[1] = in __ext2_write_inode()
1618 raw_inode->i_block[2] = 0; in __ext2_write_inode()
1621 raw_inode->i_block[n] = ei->i_data[n]; in __ext2_write_inode()