/linux-6.6.21/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.6.21/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 = inode->i_atime = inode_set_ctime(inode, raw_inode->i_time, 0); 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.6.21/fs/ext2/ |
D | inode.c | 1382 struct ext2_inode *raw_inode; in ext2_iget() local 1398 raw_inode = ext2_get_inode(inode->i_sb, ino, &bh); in ext2_iget() 1399 if (IS_ERR(raw_inode)) { in ext2_iget() 1400 ret = PTR_ERR(raw_inode); in ext2_iget() 1404 inode->i_mode = le16_to_cpu(raw_inode->i_mode); in ext2_iget() 1405 i_uid = (uid_t)le16_to_cpu(raw_inode->i_uid_low); in ext2_iget() 1406 i_gid = (gid_t)le16_to_cpu(raw_inode->i_gid_low); in ext2_iget() 1408 i_uid |= le16_to_cpu(raw_inode->i_uid_high) << 16; in ext2_iget() 1409 i_gid |= le16_to_cpu(raw_inode->i_gid_high) << 16; in ext2_iget() 1413 set_nlink(inode, le16_to_cpu(raw_inode->i_links_count)); in ext2_iget() [all …]
|
/linux-6.6.21/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_set_ctime(inode, le64_to_cpu(raw_inode->i_ctime), in nilfs_read_inode_common() 454 le32_to_cpu(raw_inode->i_ctime_nsec)); in nilfs_read_inode_common() 455 inode->i_mtime.tv_sec = le64_to_cpu(raw_inode->i_mtime); 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 | 504 int nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) in nilfs_bmap_read() argument 506 if (raw_inode == NULL) in nilfs_bmap_read() 509 memcpy(bmap->b_u.u_data, raw_inode->i_bmap, NILFS_BMAP_SIZE); in nilfs_bmap_read() 549 void nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) in nilfs_bmap_write() argument 552 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 | 491 struct nilfs_inode *raw_inode, struct inode **inodep) in nilfs_dat_read() argument 529 err = nilfs_read_inode_common(dat, raw_inode); in nilfs_dat_read()
|
/linux-6.6.21/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.6.21/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_set_ctime(inode, le32_to_cpu(raw_inode->di_ctime), 0); in qnx4_iget() [all …]
|
/linux-6.6.21/fs/ext4/ |
D | inode.c | 4214 static int ext4_inode_blocks_set(struct ext4_inode *raw_inode, in ext4_inode_blocks_set() argument 4226 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4227 raw_inode->i_blocks_high = 0; in ext4_inode_blocks_set() 4245 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4246 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4252 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set() 4253 raw_inode->i_blocks_high = cpu_to_le16(i_blocks >> 32); in ext4_inode_blocks_set() 4258 static int ext4_fill_raw_inode(struct inode *inode, struct ext4_inode *raw_inode) in ext4_fill_raw_inode() argument 4267 err = ext4_inode_blocks_set(raw_inode, ei); in ext4_fill_raw_inode() 4269 raw_inode->i_mode = cpu_to_le16(inode->i_mode); in ext4_fill_raw_inode() [all …]
|
D | ext4.h | 885 #define EXT4_INODE_SET_XTIME_VAL(xtime, inode, raw_inode, ts) \ argument 887 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) { \ 888 (raw_inode)->xtime = cpu_to_le32((ts).tv_sec); \ 889 (raw_inode)->xtime ## _extra = ext4_encode_extra_time(ts); \ 891 (raw_inode)->xtime = cpu_to_le32(clamp_t(int32_t, (ts).tv_sec, S32_MIN, S32_MAX)); \ 894 #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ argument 895 EXT4_INODE_SET_XTIME_VAL(xtime, inode, raw_inode, (inode)->xtime) 897 #define EXT4_INODE_SET_CTIME(inode, raw_inode) \ argument 898 EXT4_INODE_SET_XTIME_VAL(i_ctime, inode, raw_inode, inode_get_ctime(inode)) 900 #define EXT4_EINODE_SET_XTIME(xtime, einode, raw_inode) \ argument [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 | 639 struct ext4_inode *raw_inode; in ext4_xattr_ibody_get() local 650 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_get() 651 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get() 652 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_get() 784 struct ext4_inode *raw_inode; in ext4_xattr_ibody_list() local 794 raw_inode = ext4_raw_inode(&iloc); in ext4_xattr_ibody_list() 795 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list() 796 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in ext4_xattr_ibody_list() 867 struct ext4_inode *raw_inode; in ext4_get_inode_usage() local 880 raw_inode = ext4_raw_inode(&iloc); in ext4_get_inode_usage() [all …]
|
D | inline.c | 36 struct ext4_inode *raw_inode; in get_max_inline_xattr_value_size() local 58 raw_inode = ext4_raw_inode(iloc); in get_max_inline_xattr_value_size() 59 header = IHDR(inode, raw_inode); in get_max_inline_xattr_value_size() 61 end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; in get_max_inline_xattr_value_size() 84 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size() 185 struct ext4_inode *raw_inode; in ext4_read_inline_data() local 194 raw_inode = ext4_raw_inode(iloc); in ext4_read_inline_data() 195 memcpy(buffer, (void *)(raw_inode->i_block), cp_len); in ext4_read_inline_data() 203 header = IHDR(inode, raw_inode); in ext4_read_inline_data() 204 entry = (struct ext4_xattr_entry *)((void *)raw_inode + in ext4_read_inline_data() [all …]
|
D | fast_commit.c | 1521 struct ext4_inode *raw_inode; in ext4_fc_replay_inode() local 1552 raw_inode = ext4_raw_inode(&iloc); in ext4_fc_replay_inode() 1554 memcpy(raw_inode, raw_fc_inode, offsetof(struct ext4_inode, i_block)); in ext4_fc_replay_inode() 1555 memcpy((u8 *)raw_inode + off_gen, (u8 *)raw_fc_inode + off_gen, in ext4_fc_replay_inode() 1557 if (le32_to_cpu(raw_inode->i_flags) & EXT4_EXTENTS_FL) { in ext4_fc_replay_inode() 1558 eh = (struct ext4_extent_header *)(&raw_inode->i_block[0]); in ext4_fc_replay_inode() 1563 (sizeof(raw_inode->i_block) - in ext4_fc_replay_inode() 1567 } else if (le32_to_cpu(raw_inode->i_flags) & EXT4_INLINE_DATA_FL) { in ext4_fc_replay_inode() 1568 memcpy(raw_inode->i_block, raw_fc_inode->i_block, in ext4_fc_replay_inode() 1569 sizeof(raw_inode->i_block)); in ext4_fc_replay_inode()
|
/linux-6.6.21/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_set_ctime(inode, fs32_to_cpu(sbi, raw_inode->di_ctime), 0); in qnx6_iget() 570 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget() [all …]
|
/linux-6.6.21/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()
|