aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorJulian Sun <sunjunchao2870@gmail.com>2025-01-07 12:57:10 +0800
committerTheodore Ts'o <tytso@mit.edu>2025-03-13 09:57:19 -0400
commitf9bdb042dfae981d34911a6184157a720fce5e3d (patch)
tree2bef474f2c77749c25b4020e0133931d50d87496 /fs/ext4/inode.c
parentext4: Introduce a new helper function ext4_generic_write_inline_data() (diff)
downloadwireguard-linux-f9bdb042dfae981d34911a6184157a720fce5e3d.tar.xz
wireguard-linux-f9bdb042dfae981d34911a6184157a720fce5e3d.zip
ext4: Replace ext4_da_write_inline_data_begin() with ext4_generic_write_inline_data().
Replace the call to ext4_da_write_inline_data_begin() with ext4_generic_write_inline_data(), and delete the ext4_da_write_inline_data_begin(). Signed-off-by: Julian Sun <sunjunchao2870@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20250107045710.1837756-1-sunjunchao2870@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 365d31004bd0..debc9197e821 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2930,8 +2930,8 @@ static int ext4_da_write_begin(struct file *file, struct address_space *mapping,
trace_ext4_da_write_begin(inode, pos, len);
if (ext4_test_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA)) {
- ret = ext4_da_write_inline_data_begin(mapping, inode, pos, len,
- foliop, fsdata);
+ ret = ext4_generic_write_inline_data(mapping, inode, pos, len,
+ foliop, fsdata, true);
if (ret < 0)
return ret;
if (ret == 1)