/linux-6.1.9/fs/sysv/ |
D | ialloc.c | 75 struct sysv_inode * raw_inode; in refill_free_cache() local 79 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() 80 if (!raw_inode) in refill_free_cache() 83 if (raw_inode->i_mode == 0 && raw_inode->i_nlink == 0) { in refill_free_cache() 90 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() 91 if (!raw_inode) in refill_free_cache() 94 raw_inode++; in refill_free_cache() 107 struct sysv_inode * raw_inode; in sysv_free_inode() local 116 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_free_inode() 117 if (!raw_inode) { in sysv_free_inode() [all …]
|
D | inode.c | 174 struct sysv_inode * raw_inode; in sysv_iget() local 191 raw_inode = sysv_raw_inode(sb, ino, &bh); in sysv_iget() 192 if (!raw_inode) { in sysv_iget() 198 inode->i_mode = fs16_to_cpu(sbi, raw_inode->i_mode); in sysv_iget() 199 i_uid_write(inode, (uid_t)fs16_to_cpu(sbi, raw_inode->i_uid)); in sysv_iget() 200 i_gid_write(inode, (gid_t)fs16_to_cpu(sbi, raw_inode->i_gid)); in sysv_iget() 201 set_nlink(inode, fs16_to_cpu(sbi, raw_inode->i_nlink)); in sysv_iget() 202 inode->i_size = fs32_to_cpu(sbi, raw_inode->i_size); in sysv_iget() 203 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget() 204 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget() [all …]
|
/linux-6.1.9/fs/minix/ |
D | inode.c | 483 struct minix_inode * raw_inode; in V1_minix_iget() local 487 raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); in V1_minix_iget() 488 if (!raw_inode) { in V1_minix_iget() 492 if (raw_inode->i_nlinks == 0) { in V1_minix_iget() 499 inode->i_mode = raw_inode->i_mode; in V1_minix_iget() 500 i_uid_write(inode, raw_inode->i_uid); in V1_minix_iget() 501 i_gid_write(inode, raw_inode->i_gid); in V1_minix_iget() 502 set_nlink(inode, raw_inode->i_nlinks); in V1_minix_iget() 503 inode->i_size = raw_inode->i_size; in V1_minix_iget() 504 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; in V1_minix_iget() [all …]
|
D | bitmap.c | 163 struct minix_inode *raw_inode; in minix_clear_inode() local 164 raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); in minix_clear_inode() 165 if (raw_inode) { in minix_clear_inode() 166 raw_inode->i_nlinks = 0; in minix_clear_inode() 167 raw_inode->i_mode = 0; in minix_clear_inode() 170 struct minix2_inode *raw_inode; in minix_clear_inode() local 171 raw_inode = minix_V2_raw_inode(inode->i_sb, inode->i_ino, &bh); in minix_clear_inode() 172 if (raw_inode) { in minix_clear_inode() 173 raw_inode->i_nlinks = 0; in minix_clear_inode() 174 raw_inode->i_mode = 0; in minix_clear_inode()
|
/linux-6.1.9/fs/ext2/ |
D | inode.c | 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() [all …]
|
/linux-6.1.9/fs/nilfs2/ |
D | inode.c | 442 struct nilfs_inode *raw_inode) in nilfs_read_inode_common() argument 447 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in nilfs_read_inode_common() 448 i_uid_write(inode, le32_to_cpu(raw_inode->i_uid)); in nilfs_read_inode_common() 449 i_gid_write(inode, le32_to_cpu(raw_inode->i_gid)); in nilfs_read_inode_common() 450 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in nilfs_read_inode_common() 451 inode->i_size = le64_to_cpu(raw_inode->i_size); in nilfs_read_inode_common() 452 inode->i_atime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common() 453 inode->i_ctime.tv_sec = le64_to_cpu(raw_inode->i_ctime); in nilfs_read_inode_common() 454 inode->i_mtime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common() 455 inode->i_atime.tv_nsec = le32_to_cpu(raw_inode->i_mtime_nsec); in nilfs_read_inode_common() [all …]
|
D | ifile.c | 102 struct nilfs_inode *raw_inode; in nilfs_ifile_delete_inode() local 119 raw_inode = nilfs_palloc_block_get_entry(ifile, req.pr_entry_nr, in nilfs_ifile_delete_inode() 121 raw_inode->i_flags = 0; in nilfs_ifile_delete_inode() 181 size_t inode_size, struct nilfs_inode *raw_inode, in nilfs_ifile_read() argument 204 err = nilfs_read_inode_common(ifile, raw_inode); in nilfs_ifile_read()
|
D | bmap.c | 496 int nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) in nilfs_bmap_read() argument 498 if (raw_inode == NULL) in nilfs_bmap_read() 501 memcpy(bmap->b_u.u_data, raw_inode->i_bmap, NILFS_BMAP_SIZE); in nilfs_bmap_read() 541 void nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) in nilfs_bmap_write() argument 544 memcpy(raw_inode->i_bmap, bmap->b_u.u_data, in nilfs_bmap_write()
|
D | cpfile.h | 32 struct nilfs_inode *raw_inode, struct inode **inodep);
|
D | ifile.h | 42 size_t inode_size, struct nilfs_inode *raw_inode,
|
D | dat.h | 45 struct nilfs_inode *raw_inode, struct inode **inodep);
|
D | sufile.h | 54 struct nilfs_inode *raw_inode, struct inode **inodep);
|
D | dat.c | 473 struct nilfs_inode *raw_inode, struct inode **inodep) in nilfs_dat_read() argument 511 err = nilfs_read_inode_common(dat, raw_inode); in nilfs_dat_read()
|
/linux-6.1.9/fs/befs/ |
D | inode.c | 19 befs_check_inode(struct super_block *sb, befs_inode *raw_inode, in befs_check_inode() argument 22 u32 magic1 = fs32_to_cpu(sb, raw_inode->magic1); in befs_check_inode() 23 befs_inode_addr ino_num = fsrun_to_cpu(sb, raw_inode->inode_num); in befs_check_inode() 24 u32 flags = fs32_to_cpu(sb, raw_inode->flags); in befs_check_inode()
|
D | linuxvfs.c | 300 befs_inode *raw_inode; in befs_iget() local 329 raw_inode = (befs_inode *) bh->b_data; in befs_iget() 331 befs_dump_inode(sb, raw_inode); in befs_iget() 333 if (befs_check_inode(sb, raw_inode, inode->i_ino) != BEFS_OK) { in befs_iget() 338 inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode); in befs_iget() 347 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 350 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget() 364 fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16; in befs_iget() 369 befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num); in befs_iget() 370 befs_ino->i_parent = fsrun_to_cpu(sb, raw_inode->parent); in befs_iget() [all …]
|
D | inode.h | 6 int befs_check_inode(struct super_block *sb, befs_inode *raw_inode,
|
/linux-6.1.9/fs/qnx4/ |
D | inode.c | 266 struct qnx4_inode_entry *raw_inode; in qnx4_iget() local 296 raw_inode = ((struct qnx4_inode_entry *) bh->b_data) + in qnx4_iget() 299 inode->i_mode = le16_to_cpu(raw_inode->di_mode); in qnx4_iget() 300 i_uid_write(inode, (uid_t)le16_to_cpu(raw_inode->di_uid)); in qnx4_iget() 301 i_gid_write(inode, (gid_t)le16_to_cpu(raw_inode->di_gid)); in qnx4_iget() 302 set_nlink(inode, le16_to_cpu(raw_inode->di_nlink)); in qnx4_iget() 303 inode->i_size = le32_to_cpu(raw_inode->di_size); in qnx4_iget() 304 inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->di_mtime); in qnx4_iget() 306 inode->i_atime.tv_sec = le32_to_cpu(raw_inode->di_atime); in qnx4_iget() 308 inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); in qnx4_iget() [all …]
|
/linux-6.1.9/fs/ext4/ |
D | inode.c | 4313 static int ext4_inode_blocks_set(struct ext4_inode *raw_inode, in ext4_inode_blocks_set() argument 4325 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4326 raw_inode->i_blocks_high = 0; in ext4_inode_blocks_set() 4344 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4345 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4351 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4352 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4357 static int ext4_fill_raw_inode(struct inode *inode, struct ext4_inode *raw_inode) in ext4_fill_raw_inode() argument 4366 err = ext4_inode_blocks_set(raw_inode, ei); in ext4_fill_raw_inode() 4368 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in ext4_fill_raw_inode() [all …]
|
D | xattr.h | 66 #define IHDR(inode, raw_inode) \ argument 68 ((void *)raw_inode + \ 193 struct ext4_inode *raw_inode, handle_t *handle);
|
D | xattr.c | 594 struct ext4_inode *raw_inode; in ext4_xattr_ibody_get() local 605 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_get() 606 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get() 607 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 740 struct ext4_inode *raw_inode; in ext4_xattr_ibody_list() local 750 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_list() 751 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list() 752 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 823 struct ext4_inode *raw_inode; in ext4_get_inode_usage() local 836 raw_inode = ext4_raw_inode(&iloc); in ext4_get_inode_usage() [all …]
|
D | ext4.h | 919 #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ argument 921 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) {\ 922 (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ 923 (raw_inode)->xtime ## _extra = \ 927 (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \ 930 #define EXT4_EINODE_SET_XTIME(xtime, einode, raw_inode) \ argument 932 if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime)) \ 933 (raw_inode)->xtime = cpu_to_le32((einode)->xtime.tv_sec); \ 934 if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime ## _extra)) \ 935 (raw_inode)->xtime ## _extra = \ [all …]
|
D | inline.c | 36 struct ext4_inode *raw_inode; in get_max_inline_xattr_value_size() local 57 raw_inode = ext4_raw_inode(iloc); in get_max_inline_xattr_value_size() 58 header = IHDR(inode, raw_inode); in get_max_inline_xattr_value_size() 74 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size() 176 struct ext4_inode *raw_inode; in ext4_read_inline_data() local 186 raw_inode = ext4_raw_inode(iloc); in ext4_read_inline_data() 187 memcpy(buffer, (void *)(raw_inode->i_block), cp_len); in ext4_read_inline_data() 195 header = IHDR(inode, raw_inode); in ext4_read_inline_data() 196 entry = (struct ext4_xattr_entry *)((void *)raw_inode + in ext4_read_inline_data() 220 struct ext4_inode *raw_inode; in ext4_write_inline_data() local [all …]
|
D | fast_commit.c | 1535 struct ext4_inode *raw_inode; in ext4_fc_replay_inode() local 1566 raw_inode = ext4_raw_inode(&iloc); in ext4_fc_replay_inode() 1568 memcpy(raw_inode, raw_fc_inode, offsetof(struct ext4_inode, i_block)); in ext4_fc_replay_inode() 1569 memcpy((u8 *)raw_inode + off_gen, (u8 *)raw_fc_inode + off_gen, in ext4_fc_replay_inode() 1571 if (le32_to_cpu(raw_inode->i_flags) & EXT4_EXTENTS_FL) { in ext4_fc_replay_inode() 1572 eh = (struct ext4_extent_header *)(&raw_inode->i_block[0]); in ext4_fc_replay_inode() 1577 (sizeof(raw_inode->i_block) - in ext4_fc_replay_inode() 1581 } else if (le32_to_cpu(raw_inode->i_flags) & EXT4_INLINE_DATA_FL) { in ext4_fc_replay_inode() 1582 memcpy(raw_inode->i_block, raw_fc_inode->i_block, in ext4_fc_replay_inode() 1583 sizeof(raw_inode->i_block)); in ext4_fc_replay_inode()
|
/linux-6.1.9/fs/qnx6/ |
D | inode.c | 521 struct qnx6_inode_entry *raw_inode; in qnx6_iget() local 555 raw_inode = ((struct qnx6_inode_entry *)page_address(page)) + offs; in qnx6_iget() 557 inode->i_mode = fs16_to_cpu(sbi, raw_inode->di_mode); in qnx6_iget() 558 i_uid_write(inode, (uid_t)fs32_to_cpu(sbi, raw_inode->di_uid)); in qnx6_iget() 559 i_gid_write(inode, (gid_t)fs32_to_cpu(sbi, raw_inode->di_gid)); in qnx6_iget() 560 inode->i_size = fs64_to_cpu(sbi, raw_inode->di_size); in qnx6_iget() 561 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_mtime); in qnx6_iget() 563 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_atime); in qnx6_iget() 565 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_ctime); in qnx6_iget() 571 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget() [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | recovery.c | 122 struct f2fs_inode *raw_inode, in init_recovered_filename() argument 129 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename() 130 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename() 150 &raw_inode->i_name[fname->disk_name.len]); in init_recovered_filename() 170 struct f2fs_inode *raw_inode = F2FS_INODE(ipage); in recover_dentry() local 171 nid_t pino = le32_to_cpu(raw_inode->i_pino); in recover_dentry() 193 err = init_recovered_filename(dir, raw_inode, &fname, &usr_fname); in recover_dentry() 241 name = raw_inode->i_name; in recover_dentry()
|