]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: move where set the MAY_INLINE_DATA flag is set
authorYe Bin <yebin10@huawei.com>
Tue, 7 Mar 2023 01:52:52 +0000 (09:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:16 +0000 (08:50 +0100)
commita9a9734c2e570dfdf7427ce1b622921065502f07
tree5437e67450bed047904719824edb35849fc91756
parentf0254d77febb5e3e22bc91ad92881f90f133d145
ext4: move where set the MAY_INLINE_DATA flag is set

commit 675ec4a426f2360174a632ccdb7a883bc59b04d6 upstream.

The only caller of ext4_find_inline_data_nolock() that needs setting of
EXT4_STATE_MAY_INLINE_DATA flag is ext4_iget_extra_inode().  In
ext4_write_inline_data_end() we just need to update inode->i_inline_off.
Since we are going to add one more caller that does not need to set
EXT4_STATE_MAY_INLINE_DATA, just move setting of EXT4_STATE_MAY_INLINE_DATA
out to ext4_iget_extra_inode().

Signed-off-by: Ye Bin <yebin10@huawei.com>
Cc: stable@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230307015253.2232062-2-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inline.c
fs/ext4/inode.c