|
@@ -1848,8 +1848,8 @@ out_error:
|
|
* sense, and then flush all dirty data. Caller must ensure that the
|
|
* sense, and then flush all dirty data. Caller must ensure that the
|
|
* inodes have been locked against any other modifications.
|
|
* inodes have been locked against any other modifications.
|
|
*
|
|
*
|
|
- * Returns: 0 for "nothing to clone", 1 for "something to clone", or
|
|
|
|
- * the usual negative error code.
|
|
|
|
|
|
+ * If there's an error, then the usual negative error code is returned.
|
|
|
|
+ * Otherwise returns 0 with *len set to the request length.
|
|
*/
|
|
*/
|
|
int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
|
|
int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
|
|
struct file *file_out, loff_t pos_out,
|
|
struct file *file_out, loff_t pos_out,
|
|
@@ -1945,7 +1945,7 @@ int generic_remap_file_range_prep(struct file *file_in, loff_t pos_in,
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
- return 1;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(generic_remap_file_range_prep);
|
|
EXPORT_SYMBOL(generic_remap_file_range_prep);
|
|
|
|
|