raw_node->i.i_size = cpu_to_le64(1 * blk_size_bytes); /* dentry */
raw_node->i.i_blocks = cpu_to_le64(2);
+ raw_node->i.i_atime = cpu_to_le32(time(NULL));
+ raw_node->i.i_atime_nsec = 0;
raw_node->i.i_ctime = cpu_to_le32(time(NULL));
raw_node->i.i_ctime_nsec = 0;
raw_node->i.i_mtime = cpu_to_le32(time(NULL));
raw_node->i.i_mtime_nsec = 0;
+ raw_node->i.i_generation = 0;
raw_node->i.i_xattr_nid = 0;
raw_node->i.i_flags = 0;
- raw_node->i.current_depth = cpu_to_le32(1);
+ raw_node->i.i_current_depth = cpu_to_le32(1);
data_blk_nor = le32_to_cpu(super_block.main_blkaddr) +
f2fs_params.cur_seg[CURSEG_HOT_DATA] * f2fs_params.blks_per_seg;
} __attribute__((packed));
#define F2FS_MAX_NAME_LEN 256
-#define ADDRS_PER_INODE 927 /* Address Pointers in an Inode */
+#define ADDRS_PER_INODE 923 /* Address Pointers in an Inode */
#define ADDRS_PER_BLOCK 1018 /* Address Pointers in a Direct Block */
#define NIDS_PER_BLOCK 1018 /* Node IDs in an Indirect Block */
__le32 i_links; /* Links count */
__le64 i_size; /* File size in bytes */
__le64 i_blocks; /* File size in bytes */
+ __le64 i_atime; /* Inode access time */
__le64 i_ctime; /* inode Change time */
__le64 i_mtime; /* Modification time */
+ __le32 i_atime_nsec;
__le32 i_ctime_nsec;
__le32 i_mtime_nsec;
- __le32 current_depth;
+ __le32 i_generation; /* File version (for NFS) */
+ __le32 i_current_depth; /* only for directory depth */
__le32 i_xattr_nid;
__le32 i_flags; /* file attributes */
__le32 i_pino; /* parent inode number */