1 ext4: fix comments in ext4_swap_extents()
3 From: "zhenwei.pi" <zhenwei.pi@youruncloud.com>
5 "mark_unwritten" in comment and "unwritten" in the function arguments
8 Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 fs/ext4/extents.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
15 index 837f0a6357c7..0a7315961bac 100644
16 --- a/fs/ext4/extents.c
17 +++ b/fs/ext4/extents.c
18 @@ -5742,7 +5742,7 @@ int ext4_insert_range(struct inode *inode, loff_t offset, loff_t len)
19 * @lblk1: Start block for first inode
20 * @lblk2: Start block for second inode
21 * @count: Number of blocks to swap
22 - * @mark_unwritten: Mark second inode's extents as unwritten after swap
23 + * @unwritten: Mark second inode's extents as unwritten after swap
24 * @erp: Pointer to save error value
26 * This helper routine does exactly what is promise "swap extents". All other
27 @@ -5756,7 +5756,7 @@ int ext4_insert_range(struct inode *inode, loff_t offset, loff_t len)
30 ext4_swap_extents(handle_t *handle, struct inode *inode1,
31 - struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2,
32 + struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2,
33 ext4_lblk_t count, int unwritten, int *erp)
35 struct ext4_ext_path *path1 = NULL;