Hello Yuli:
I think that "(void) ext4_find_inline_data_nolock(inode);" should before ext4_write_inline_data(inode, &iloc, kaddr, pos, copied); Or the backport cause a regression of commit c481607ba ("ext4: fix race writing to an inline_data file while its xattrs are changing")
Link:https://lore.kernel.org/all/20210821035427.1471851-1-tytso@mit.edu/
BRs Wentao Guan