OSDN Git Service

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)
commit6984aef59814fb5c47b0e30c56e101186b5ebf8c
tree0141bbcc30b91f0256c0f346e6916ac4e28a683f
parent55ce2f649b9e88111270333a8127e23f4f8f42d7
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