This patch is not correct. We don't need to create a new ext2fs_adjust_ea_refcount4 to return the h_blocks field in the extended attribute block, since that only thing that we support is a single xattr block. The real issue, as Zhiqiang Liu pointed out in [1], is that we should not be clearing the i_file_acl block is the inode is only being truncated, and not being unlinked. [1] https://lore.kernel.org/all/ed518b11-3c38-1c1f-a75d-3293c91f17d4@xxxxxxxxxx/ - Ted