[LU-7912] Stale comment in osc_page_transfer_add Created: 24/Mar/16  Updated: 25/Nov/19  Resolved: 25/Nov/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: Oleg Drokin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-3321 2.x single thread/process throughput ... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Ever since second patch in LU-3321 the comment became untrue, and then ops_inflight became deleted too making it even more out of date.

static void osc_page_transfer_add(const struct lu_env *env,
                                  struct osc_page *opg, enum cl_req_type crt)
{
        struct osc_object *obj = cl2osc(opg->ops_cl.cpl_obj);

        /* ops_lru and ops_inflight share the same field, so take it from LRU
         * first and then use it as inflight. */
        osc_lru_use(osc_cli(obj), opg);
}


 Comments   
Comment by Gerrit Updater [ 24/Mar/16 ]

Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/19115
Subject: LU-7912 osc: Remove stale comment in osc_page_transfer_add
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d785d0cd4bf0a0645ecfeb592fd520b5f1176bb9

Comment by Oleg Drokin [ 24/Mar/16 ]

it should also be noted that we have a bunch of comments referencing ll_cl_init(), but ll_cl_init() itself is long gone.

Comment by Oleg Drokin [ 24/Mar/16 ]

Also in CL_PAGE_INVOID_REVERSE macro there's "/* get to the bottom page. */" comment that makes no sense anymore
the part of code it was related to was removed in commit 18834a5554f2a5a8615f259be48bb2df9101b5a2

Comment by Oleg Drokin [ 24/Mar/16 ]

cl_page_top() is declared, but the body is long gone, so should be removed too.

Comment by Oleg Drokin [ 26/Mar/16 ]

cl_locks_prune is also long gone after simplification, but is still referenced in cl_locks_prunelustre/osc/osc_cl_internal.h

Comment by Oleg Drokin [ 26/Mar/16 ]

cl_io_cancel is no longer used and should be removed

Comment by Gerrit Updater [ 12/Jul/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/19115/
Subject: LU-7912 osc: Remove stale comment in osc_page_transfer_add
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4a183613a6aa4c1cd4e6c8fc4c35945a640bda9f

Comment by Joseph Gmitter (Inactive) [ 25/Nov/19 ]

Patch has landed for 2.13.0

Generated at Sat Feb 10 02:12:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.