/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/minix/ |
D | inode.c | 481 struct minix_inode * raw_inode; in V1_minix_iget() local 485 raw_inode = minix_V1_raw_inode(inode->i_sb, inode->i_ino, &bh); in V1_minix_iget() 486 if (!raw_inode) { in V1_minix_iget() 490 if (raw_inode->i_nlinks == 0) { in V1_minix_iget() 497 inode->i_mode = raw_inode->i_mode; in V1_minix_iget() 498 i_uid_write(inode, raw_inode->i_uid); in V1_minix_iget() 499 i_gid_write(inode, raw_inode->i_gid); in V1_minix_iget() 500 set_nlink(inode, raw_inode->i_nlinks); in V1_minix_iget() 501 inode->i_size = raw_inode->i_size; in V1_minix_iget() 502 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()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | inode.c | 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() [all …]
|
/kernel/linux/linux-5.10/fs/nilfs2/ |
D | inode.c | 441 struct nilfs_inode *raw_inode) in nilfs_read_inode_common() argument 446 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in nilfs_read_inode_common() 447 i_uid_write(inode, le32_to_cpu(raw_inode->i_uid)); in nilfs_read_inode_common() 448 i_gid_write(inode, le32_to_cpu(raw_inode->i_gid)); in nilfs_read_inode_common() 449 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in nilfs_read_inode_common() 450 inode->i_size = le64_to_cpu(raw_inode->i_size); in nilfs_read_inode_common() 451 inode->i_atime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common() 452 inode->i_ctime.tv_sec = le64_to_cpu(raw_inode->i_ctime); in nilfs_read_inode_common() 453 inode->i_mtime.tv_sec = le64_to_cpu(raw_inode->i_mtime); in nilfs_read_inode_common() 454 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 | 466 struct nilfs_inode *raw_inode, struct inode **inodep) in nilfs_dat_read() argument 502 err = nilfs_read_inode_common(dat, raw_inode); in nilfs_dat_read()
|
/kernel/linux/linux-5.10/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 | 301 befs_inode *raw_inode; in befs_iget() local 330 raw_inode = (befs_inode *) bh->b_data; in befs_iget() 332 befs_dump_inode(sb, raw_inode); in befs_iget() 334 if (befs_check_inode(sb, raw_inode, inode->i_ino) != BEFS_OK) { in befs_iget() 339 inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode); in befs_iget() 348 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 351 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget() 365 fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16; in befs_iget() 370 befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num); in befs_iget() 371 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,
|
/kernel/linux/linux-5.10/fs/qnx4/ |
D | inode.c | 265 struct qnx4_inode_entry *raw_inode; in qnx4_iget() local 295 raw_inode = ((struct qnx4_inode_entry *) bh->b_data) + in qnx4_iget() 298 inode->i_mode = le16_to_cpu(raw_inode->di_mode); in qnx4_iget() 299 i_uid_write(inode, (uid_t)le16_to_cpu(raw_inode->di_uid)); in qnx4_iget() 300 i_gid_write(inode, (gid_t)le16_to_cpu(raw_inode->di_gid)); in qnx4_iget() 301 set_nlink(inode, le16_to_cpu(raw_inode->di_nlink)); in qnx4_iget() 302 inode->i_size = le32_to_cpu(raw_inode->di_size); in qnx4_iget() 303 inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->di_mtime); in qnx4_iget() 305 inode->i_atime.tv_sec = le32_to_cpu(raw_inode->di_atime); in qnx4_iget() 307 inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); in qnx4_iget() [all …]
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | inode.c | 4264 static int ext4_inode_blocks_set(struct ext4_inode *raw_inode, in ext4_inode_blocks_set() argument 4276 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4277 raw_inode->i_blocks_high = 0; in ext4_inode_blocks_set() 4295 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4296 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4302 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4303 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4308 static int ext4_fill_raw_inode(struct inode *inode, struct ext4_inode *raw_inode) in ext4_fill_raw_inode() argument 4317 err = ext4_inode_blocks_set(raw_inode, ei); in ext4_fill_raw_inode() 4319 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 + \ 180 struct ext4_inode *raw_inode, handle_t *handle);
|
D | xattr.c | 579 struct ext4_inode *raw_inode; in ext4_xattr_ibody_get() local 590 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_get() 591 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get() 592 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 725 struct ext4_inode *raw_inode; in ext4_xattr_ibody_list() local 735 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_list() 736 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list() 737 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 807 struct ext4_inode *raw_inode; in ext4_get_inode_usage() local 820 raw_inode = ext4_raw_inode(&iloc); in ext4_get_inode_usage() [all …]
|
D | ext4.h | 892 #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ argument 894 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) {\ 895 (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \ 896 (raw_inode)->xtime ## _extra = \ 900 (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (inode)->xtime.tv_sec, S32_MIN, S32_MAX)); \ 903 #define EXT4_EINODE_SET_XTIME(xtime, einode, raw_inode) \ argument 905 if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime)) \ 906 (raw_inode)->xtime = cpu_to_le32((einode)->xtime.tv_sec); \ 907 if (EXT4_FITS_IN_INODE(raw_inode, einode, xtime ## _extra)) \ 908 (raw_inode)->xtime ## _extra = \ [all …]
|
D | inline.c | 34 struct ext4_inode *raw_inode; in get_max_inline_xattr_value_size() local 52 raw_inode = ext4_raw_inode(iloc); in get_max_inline_xattr_value_size() 53 header = IHDR(inode, raw_inode); in get_max_inline_xattr_value_size() 69 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size() 171 struct ext4_inode *raw_inode; in ext4_read_inline_data() local 181 raw_inode = ext4_raw_inode(iloc); in ext4_read_inline_data() 182 memcpy(buffer, (void *)(raw_inode->i_block), cp_len); in ext4_read_inline_data() 190 header = IHDR(inode, raw_inode); in ext4_read_inline_data() 191 entry = (struct ext4_xattr_entry *)((void *)raw_inode + in ext4_read_inline_data() 215 struct ext4_inode *raw_inode; in ext4_write_inline_data() local [all …]
|
D | fast_commit.c | 1411 struct ext4_inode *raw_inode; in ext4_fc_replay_inode() local 1439 raw_inode = ext4_raw_inode(&iloc); in ext4_fc_replay_inode() 1441 memcpy(raw_inode, raw_fc_inode, offsetof(struct ext4_inode, i_block)); in ext4_fc_replay_inode() 1442 memcpy(&raw_inode->i_generation, &raw_fc_inode->i_generation, in ext4_fc_replay_inode() 1444 if (le32_to_cpu(raw_inode->i_flags) & EXT4_EXTENTS_FL) { in ext4_fc_replay_inode() 1445 eh = (struct ext4_extent_header *)(&raw_inode->i_block[0]); in ext4_fc_replay_inode() 1450 (sizeof(raw_inode->i_block) - in ext4_fc_replay_inode() 1454 } else if (le32_to_cpu(raw_inode->i_flags) & EXT4_INLINE_DATA_FL) { in ext4_fc_replay_inode() 1455 memcpy(raw_inode->i_block, raw_fc_inode->i_block, in ext4_fc_replay_inode() 1456 sizeof(raw_inode->i_block)); in ext4_fc_replay_inode()
|
/kernel/linux/linux-5.10/fs/qnx6/ |
D | inode.c | 523 struct qnx6_inode_entry *raw_inode; in qnx6_iget() local 557 raw_inode = ((struct qnx6_inode_entry *)page_address(page)) + offs; in qnx6_iget() 559 inode->i_mode = fs16_to_cpu(sbi, raw_inode->di_mode); in qnx6_iget() 560 i_uid_write(inode, (uid_t)fs32_to_cpu(sbi, raw_inode->di_uid)); in qnx6_iget() 561 i_gid_write(inode, (gid_t)fs32_to_cpu(sbi, raw_inode->di_gid)); in qnx6_iget() 562 inode->i_size = fs64_to_cpu(sbi, raw_inode->di_size); in qnx6_iget() 563 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_mtime); in qnx6_iget() 565 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_atime); in qnx6_iget() 567 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->di_ctime); in qnx6_iget() 573 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget() [all …]
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | recovery.c | 111 struct f2fs_inode *raw_inode, in init_recovered_filename() argument 118 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename() 119 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename() 150 struct f2fs_inode *raw_inode = F2FS_INODE(ipage); in recover_dentry() local 151 nid_t pino = le32_to_cpu(raw_inode->i_pino); in recover_dentry() 173 err = init_recovered_filename(dir, raw_inode, &fname, &usr_fname); in recover_dentry() 221 name = raw_inode->i_name; in recover_dentry()
|