ea_inode 1826 fs/ext4/ext4.h EXT4_FEATURE_INCOMPAT_FUNCS(ea_inode, EA_INODE) ea_inode 122 fs/ext4/xattr.c void ext4_xattr_inode_set_class(struct inode *ea_inode) ea_inode 124 fs/ext4/xattr.c lockdep_set_subclass(&ea_inode->i_rwsem, 1); ea_inode 315 fs/ext4/xattr.c static u64 ext4_xattr_inode_get_ref(struct inode *ea_inode) ea_inode 317 fs/ext4/xattr.c return ((u64)ea_inode->i_ctime.tv_sec << 32) | ea_inode 318 fs/ext4/xattr.c (u32) inode_peek_iversion_raw(ea_inode); ea_inode 321 fs/ext4/xattr.c static void ext4_xattr_inode_set_ref(struct inode *ea_inode, u64 ref_count) ea_inode 323 fs/ext4/xattr.c ea_inode->i_ctime.tv_sec = (u32)(ref_count >> 32); ea_inode 324 fs/ext4/xattr.c inode_set_iversion_raw(ea_inode, ref_count & 0xffffffff); ea_inode 327 fs/ext4/xattr.c static u32 ext4_xattr_inode_get_hash(struct inode *ea_inode) ea_inode 329 fs/ext4/xattr.c return (u32)ea_inode->i_atime.tv_sec; ea_inode 332 fs/ext4/xattr.c static void ext4_xattr_inode_set_hash(struct inode *ea_inode, u32 hash) ea_inode 334 fs/ext4/xattr.c ea_inode->i_atime.tv_sec = hash; ea_inode 340 fs/ext4/xattr.c static int ext4_xattr_inode_read(struct inode *ea_inode, void *buf, size_t size) ea_inode 342 fs/ext4/xattr.c int blocksize = 1 << ea_inode->i_blkbits; ea_inode 343 fs/ext4/xattr.c int bh_count = (size + blocksize - 1) >> ea_inode->i_blkbits; ea_inode 355 fs/ext4/xattr.c ret = ext4_bread_batch(ea_inode, 0 /* block */, bh_count, ea_inode 382 fs/ext4/xattr.c u32 ea_inode_hash, struct inode **ea_inode) ea_inode 430 fs/ext4/xattr.c *ea_inode = inode; ea_inode 438 fs/ext4/xattr.c ext4_xattr_inode_verify_hashes(struct inode *ea_inode, ea_inode 445 fs/ext4/xattr.c hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); ea_inode 446 fs/ext4/xattr.c if (hash != ext4_xattr_inode_get_hash(ea_inode)) ea_inode 470 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 474 fs/ext4/xattr.c le32_to_cpu(entry->e_hash), &ea_inode); ea_inode 476 fs/ext4/xattr.c ea_inode = NULL; ea_inode 480 fs/ext4/xattr.c if (i_size_read(ea_inode) != size) { ea_inode 481 fs/ext4/xattr.c ext4_warning_inode(ea_inode, ea_inode 483 fs/ext4/xattr.c i_size_read(ea_inode), size); ea_inode 488 fs/ext4/xattr.c err = ext4_xattr_inode_read(ea_inode, buffer, size); ea_inode 492 fs/ext4/xattr.c if (!ext4_test_inode_state(ea_inode, EXT4_STATE_LUSTRE_EA_INODE)) { ea_inode 493 fs/ext4/xattr.c err = ext4_xattr_inode_verify_hashes(ea_inode, entry, buffer, ea_inode 496 fs/ext4/xattr.c ext4_warning_inode(ea_inode, ea_inode 503 fs/ext4/xattr.c ext4_xattr_inode_get_hash(ea_inode), ea_inode 504 fs/ext4/xattr.c ea_inode->i_ino, true /* reusable */); ea_inode 507 fs/ext4/xattr.c iput(ea_inode); ea_inode 877 fs/ext4/xattr.c struct inode *ea_inode, ea_inode 880 fs/ext4/xattr.c if (ea_inode && ea_inode 881 fs/ext4/xattr.c ext4_test_inode_state(ea_inode, EXT4_STATE_LUSTRE_EA_INODE)) ea_inode 1019 fs/ext4/xattr.c static int ext4_xattr_inode_update_ref(handle_t *handle, struct inode *ea_inode, ea_inode 1022 fs/ext4/xattr.c struct mb_cache *ea_inode_cache = EA_INODE_CACHE(ea_inode); ea_inode 1028 fs/ext4/xattr.c inode_lock(ea_inode); ea_inode 1030 fs/ext4/xattr.c ret = ext4_reserve_inode_write(handle, ea_inode, &iloc); ea_inode 1034 fs/ext4/xattr.c ref_count = ext4_xattr_inode_get_ref(ea_inode); ea_inode 1036 fs/ext4/xattr.c ext4_xattr_inode_set_ref(ea_inode, ref_count); ea_inode 1040 fs/ext4/xattr.c ea_inode->i_ino, ref_count); ea_inode 1043 fs/ext4/xattr.c WARN_ONCE(ea_inode->i_nlink, "EA inode %lu i_nlink=%u", ea_inode 1044 fs/ext4/xattr.c ea_inode->i_ino, ea_inode->i_nlink); ea_inode 1046 fs/ext4/xattr.c set_nlink(ea_inode, 1); ea_inode 1047 fs/ext4/xattr.c ext4_orphan_del(handle, ea_inode); ea_inode 1050 fs/ext4/xattr.c hash = ext4_xattr_inode_get_hash(ea_inode); ea_inode 1053 fs/ext4/xattr.c ea_inode->i_ino, ea_inode 1059 fs/ext4/xattr.c ea_inode->i_ino, ref_count); ea_inode 1062 fs/ext4/xattr.c WARN_ONCE(ea_inode->i_nlink != 1, ea_inode 1064 fs/ext4/xattr.c ea_inode->i_ino, ea_inode->i_nlink); ea_inode 1066 fs/ext4/xattr.c clear_nlink(ea_inode); ea_inode 1067 fs/ext4/xattr.c ext4_orphan_add(handle, ea_inode); ea_inode 1070 fs/ext4/xattr.c hash = ext4_xattr_inode_get_hash(ea_inode); ea_inode 1072 fs/ext4/xattr.c ea_inode->i_ino); ea_inode 1077 fs/ext4/xattr.c ret = ext4_mark_iloc_dirty(handle, ea_inode, &iloc); ea_inode 1079 fs/ext4/xattr.c ext4_warning_inode(ea_inode, ea_inode 1082 fs/ext4/xattr.c inode_unlock(ea_inode); ea_inode 1086 fs/ext4/xattr.c static int ext4_xattr_inode_inc_ref(handle_t *handle, struct inode *ea_inode) ea_inode 1088 fs/ext4/xattr.c return ext4_xattr_inode_update_ref(handle, ea_inode, 1); ea_inode 1091 fs/ext4/xattr.c static int ext4_xattr_inode_dec_ref(handle_t *handle, struct inode *ea_inode) ea_inode 1093 fs/ext4/xattr.c return ext4_xattr_inode_update_ref(handle, ea_inode, -1); ea_inode 1099 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 1112 fs/ext4/xattr.c &ea_inode); ea_inode 1115 fs/ext4/xattr.c err = ext4_xattr_inode_inc_ref(handle, ea_inode); ea_inode 1117 fs/ext4/xattr.c ext4_warning_inode(ea_inode, "inc ref error %d", err); ea_inode 1118 fs/ext4/xattr.c iput(ea_inode); ea_inode 1121 fs/ext4/xattr.c iput(ea_inode); ea_inode 1136 fs/ext4/xattr.c &ea_inode); ea_inode 1143 fs/ext4/xattr.c err = ext4_xattr_inode_dec_ref(handle, ea_inode); ea_inode 1145 fs/ext4/xattr.c ext4_warning_inode(ea_inode, "cleanup dec ref error %d", ea_inode 1147 fs/ext4/xattr.c iput(ea_inode); ea_inode 1159 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 1176 fs/ext4/xattr.c &ea_inode); ea_inode 1180 fs/ext4/xattr.c err = ext4_expand_inode_array(ea_inode_array, ea_inode); ea_inode 1182 fs/ext4/xattr.c ext4_warning_inode(ea_inode, ea_inode 1184 fs/ext4/xattr.c iput(ea_inode); ea_inode 1191 fs/ext4/xattr.c ext4_warning_inode(ea_inode, "Ensure credits err=%d", ea_inode 1196 fs/ext4/xattr.c err = ext4_xattr_inode_dec_ref(handle, ea_inode); ea_inode 1198 fs/ext4/xattr.c ext4_warning_inode(ea_inode, "ea_inode dec ref err=%d", ea_inode 1204 fs/ext4/xattr.c ext4_xattr_inode_free_quota(parent, ea_inode, ea_inode 1342 fs/ext4/xattr.c static int ext4_xattr_inode_write(handle_t *handle, struct inode *ea_inode, ea_inode 1347 fs/ext4/xattr.c int blocksize = ea_inode->i_sb->s_blocksize; ea_inode 1348 fs/ext4/xattr.c int max_blocks = (bufsize + blocksize - 1) >> ea_inode->i_blkbits; ea_inode 1359 fs/ext4/xattr.c ret = ext4_map_blocks(handle, ea_inode, &map, ea_inode 1362 fs/ext4/xattr.c ext4_mark_inode_dirty(handle, ea_inode); ea_inode 1364 fs/ext4/xattr.c ext4_should_retry_alloc(ea_inode->i_sb, &retries)) { ea_inode 1381 fs/ext4/xattr.c bh = ext4_getblk(handle, ea_inode, block, 0); ea_inode 1386 fs/ext4/xattr.c EXT4_ERROR_INODE(ea_inode, ea_inode 1396 fs/ext4/xattr.c ext4_handle_dirty_metadata(handle, ea_inode, bh); ea_inode 1403 fs/ext4/xattr.c inode_lock(ea_inode); ea_inode 1404 fs/ext4/xattr.c i_size_write(ea_inode, wsize); ea_inode 1405 fs/ext4/xattr.c ext4_update_i_disksize(ea_inode, wsize); ea_inode 1406 fs/ext4/xattr.c inode_unlock(ea_inode); ea_inode 1408 fs/ext4/xattr.c ext4_mark_inode_dirty(handle, ea_inode); ea_inode 1422 fs/ext4/xattr.c struct inode *ea_inode = NULL; ea_inode 1430 fs/ext4/xattr.c ea_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode, ea_inode 1433 fs/ext4/xattr.c if (!IS_ERR(ea_inode)) { ea_inode 1434 fs/ext4/xattr.c ea_inode->i_op = &ext4_file_inode_operations; ea_inode 1435 fs/ext4/xattr.c ea_inode->i_fop = &ext4_file_operations; ea_inode 1436 fs/ext4/xattr.c ext4_set_aops(ea_inode); ea_inode 1437 fs/ext4/xattr.c ext4_xattr_inode_set_class(ea_inode); ea_inode 1438 fs/ext4/xattr.c unlock_new_inode(ea_inode); ea_inode 1439 fs/ext4/xattr.c ext4_xattr_inode_set_ref(ea_inode, 1); ea_inode 1440 fs/ext4/xattr.c ext4_xattr_inode_set_hash(ea_inode, hash); ea_inode 1441 fs/ext4/xattr.c err = ext4_mark_inode_dirty(handle, ea_inode); ea_inode 1443 fs/ext4/xattr.c err = ext4_inode_attach_jinode(ea_inode); ea_inode 1445 fs/ext4/xattr.c iput(ea_inode); ea_inode 1453 fs/ext4/xattr.c dquot_free_inode(ea_inode); ea_inode 1454 fs/ext4/xattr.c dquot_drop(ea_inode); ea_inode 1455 fs/ext4/xattr.c inode_lock(ea_inode); ea_inode 1456 fs/ext4/xattr.c ea_inode->i_flags |= S_NOQUOTA; ea_inode 1457 fs/ext4/xattr.c inode_unlock(ea_inode); ea_inode 1460 fs/ext4/xattr.c return ea_inode; ea_inode 1467 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 1486 fs/ext4/xattr.c ea_inode = ext4_iget(inode->i_sb, ce->e_value, ea_inode 1488 fs/ext4/xattr.c if (!IS_ERR(ea_inode) && ea_inode 1489 fs/ext4/xattr.c !is_bad_inode(ea_inode) && ea_inode 1490 fs/ext4/xattr.c (EXT4_I(ea_inode)->i_flags & EXT4_EA_INODE_FL) && ea_inode 1491 fs/ext4/xattr.c i_size_read(ea_inode) == value_len && ea_inode 1492 fs/ext4/xattr.c !ext4_xattr_inode_read(ea_inode, ea_data, value_len) && ea_inode 1493 fs/ext4/xattr.c !ext4_xattr_inode_verify_hashes(ea_inode, NULL, ea_data, ea_inode 1499 fs/ext4/xattr.c return ea_inode; ea_inode 1502 fs/ext4/xattr.c if (!IS_ERR(ea_inode)) ea_inode 1503 fs/ext4/xattr.c iput(ea_inode); ea_inode 1517 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 1522 fs/ext4/xattr.c ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); ea_inode 1523 fs/ext4/xattr.c if (ea_inode) { ea_inode 1524 fs/ext4/xattr.c err = ext4_xattr_inode_inc_ref(handle, ea_inode); ea_inode 1526 fs/ext4/xattr.c iput(ea_inode); ea_inode 1530 fs/ext4/xattr.c *ret_inode = ea_inode; ea_inode 1535 fs/ext4/xattr.c ea_inode = ext4_xattr_inode_create(handle, inode, hash); ea_inode 1536 fs/ext4/xattr.c if (IS_ERR(ea_inode)) ea_inode 1537 fs/ext4/xattr.c return PTR_ERR(ea_inode); ea_inode 1539 fs/ext4/xattr.c err = ext4_xattr_inode_write(handle, ea_inode, value, value_len); ea_inode 1541 fs/ext4/xattr.c ext4_xattr_inode_dec_ref(handle, ea_inode); ea_inode 1542 fs/ext4/xattr.c iput(ea_inode); ea_inode 1548 fs/ext4/xattr.c ea_inode->i_ino, true /* reusable */); ea_inode 1550 fs/ext4/xattr.c *ret_inode = ea_inode; ea_inode 1857 fs/ext4/xattr.c struct inode *ea_inode = NULL, *tmp_inode; ea_inode 1972 fs/ext4/xattr.c &ea_inode); ea_inode 1974 fs/ext4/xattr.c ea_inode = NULL; ea_inode 2091 fs/ext4/xattr.c if (ea_inode) { ea_inode 2094 fs/ext4/xattr.c ea_inode); ea_inode 2096 fs/ext4/xattr.c ext4_warning_inode(ea_inode, ea_inode 2099 fs/ext4/xattr.c iput(ea_inode); ea_inode 2100 fs/ext4/xattr.c ea_inode = NULL; ea_inode 2140 fs/ext4/xattr.c if (ea_inode) { ea_inode 2143 fs/ext4/xattr.c error2 = ext4_xattr_inode_dec_ref(handle, ea_inode); ea_inode 2145 fs/ext4/xattr.c ext4_warning_inode(ea_inode, "dec ref error=%d", ea_inode 2150 fs/ext4/xattr.c ext4_xattr_inode_free_quota(inode, ea_inode, ea_inode 2151 fs/ext4/xattr.c i_size_read(ea_inode)); ea_inode 2152 fs/ext4/xattr.c iput(ea_inode); ea_inode 2862 fs/ext4/xattr.c struct inode *ea_inode; ea_inode 2922 fs/ext4/xattr.c &ea_inode); ea_inode 2925 fs/ext4/xattr.c ext4_xattr_inode_free_quota(inode, ea_inode, ea_inode 2927 fs/ext4/xattr.c iput(ea_inode); ea_inode 207 fs/ext4/xattr.h extern void ext4_xattr_inode_set_class(struct inode *ea_inode); ea_inode 209 fs/ext4/xattr.h static inline void ext4_xattr_inode_set_class(struct inode *ea_inode) { }