]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ext4: fix comments in ext4_swap_extents()
authorzhenwei.pi <zhenwei.pi@youruncloud.com>
Mon, 26 Mar 2018 05:44:03 +0000 (01:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Mar 2018 05:44:03 +0000 (01:44 -0400)
"mark_unwritten" in comment and "unwritten" in the function arguments
is mismatched.

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c

index 837f0a6357c725e8673602ce5c2ba336947ee4fb..0a7315961bac6ebbca0c2bfe83cc3aba8fc5c807 100644 (file)
@@ -5742,7 +5742,7 @@ out_mutex:
  * @lblk1:     Start block for first inode
  * @lblk2:     Start block for second inode
  * @count:     Number of blocks to swap
- * @mark_unwritten: Mark second inode's extents as unwritten after swap
+ * @unwritten: Mark second inode's extents as unwritten after swap
  * @erp:       Pointer to save error value
  *
  * This helper routine does exactly what is promise "swap extents". All other
@@ -5756,7 +5756,7 @@ out_mutex:
  */
 int
 ext4_swap_extents(handle_t *handle, struct inode *inode1,
-                    struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2,
+                 struct inode *inode2, ext4_lblk_t lblk1, ext4_lblk_t lblk2,
                  ext4_lblk_t count, int unwritten, int *erp)
 {
        struct ext4_ext_path *path1 = NULL;