]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: factor out write end code of inline file
authorZhang Yi <yi.zhang@huawei.com>
Fri, 16 Jul 2021 12:20:23 +0000 (20:20 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 5 Sep 2021 03:38:18 +0000 (23:38 -0400)
commite4453af434ea9d035fcdd0847c400ba7fab43e57
tree0141bbcc30b91f0256c0f346e6916ac4e28a683f
parent17e3c5d4e96102a7d66a806e43f2e3cfe294d80e
ext4: factor out write end code of inline file

Now that the inline_data file write end procedure are falled into the
common write end functions, it is not clear. Factor them out and do
some cleanup. This patch also drop ext4_da_write_inline_data_end()
and switch to use ext4_write_inline_data_end() instead because we also
need to do the same error processing if we failed to write data into
inline entry.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20210716122024.1105856-4-yi.zhang@huawei.com
fs/ext4/ext4.h
fs/ext4/inline.c
fs/ext4/inode.c