[Devel] [PATCH RHEL7 COMMIT] fs/fuse kio: wording correction in commit_cs_record (dirtying)

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jul 27 22:02:14 MSK 2022


The commit is pushed to "branch-rh7-3.10.0-1160.66.1.vz7.188.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.66.1.vz7.188.4
------>
commit ef39c95959d41c9acc42e53967d9429eb8e4716d
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Wed Jul 27 21:48:21 2022 +0300

    fs/fuse kio: wording correction in commit_cs_record (dirtying)
    
    Signed-off-by: Alexey Kuznetsov <kuznet at acronis.com>
---
 fs/fuse/kio/pcs/pcs_map.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index 0a7714bd5b588..deb87a6a493b1 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -2564,7 +2564,7 @@ noinline void pcs_mapping_truncate(struct pcs_dentry_info *di, u64 new_size)
 static int commit_cs_record(struct pcs_map_entry * m, struct pcs_cs_record * rec,
 			     struct pcs_cs_sync_data * sync, u32 lat, int op_type)
 {
-	int dirtify;
+	int dirtying;
 	struct cs_sync_state * srec = &rec->sync;
 	if (sync->ts_net > sync->ts_io)
 		lat -= sync->ts_net;
@@ -2590,19 +2590,19 @@ static int commit_cs_record(struct pcs_map_entry * m, struct pcs_cs_record * rec
 
 	BUG_ON(srec->dirty_integrity && srec->dirty_integrity != sync->integrity_seq);
 
-	dirtify = (op_type == PCS_CS_WRITE_SYNC_RESP || op_type == PCS_CS_WRITE_RESP ||
+	dirtying = (op_type == PCS_CS_WRITE_SYNC_RESP || op_type == PCS_CS_WRITE_RESP ||
 		   op_type == PCS_CS_WRITE_AL_RESP ||
 		   op_type == PCS_CS_WRITE_HOLE_RESP || op_type == PCS_CS_WRITE_ZERO_RESP);
 	/* The following looks scary, could be more clear.
 	 * The goal is to update sync seq numbers:
 	 *
-	 * READ/SYNC (!dirtifying):
+	 * READ/SYNC (!dirtying):
 	 * - sync_epoch/sync_seq advance sync_epoch/seq
-	 * WRITE/WRITE_SYNC (dirtifying):
+	 * WRITE/WRITE_SYNC (dirtying):
 	 * - sync_epoch/sync_seq advance sync_epoch/seq
 	 * - sync_epoch/sync_dirty advance dirty_epoch/seq
 	 */
-	if (dirtify && sync->sync_dirty) {
+	if (dirtying && sync->sync_dirty) {
 		srec->dirty_integrity = sync->integrity_seq;
 
 		if (srec->dirty_epoch == 0 ||
@@ -3116,7 +3116,7 @@ static void sync_timer_work(struct work_struct *w)
 /* Handle for api PCS_REQ_T_SYNC IO request. It scans through current map
  * and constructs internal subrequests for each chunk, which is dirty at the moment.
  * Current sync seq number are stored in subrequest right now, so that future
- * dirtifying writes will not delay execution of this request.
+ * dirtying writes will not delay execution of this request.
  *
  * XXX we can issue a lot of subrequests here: one per each dirty chunk.
  */


More information about the Devel mailing list