[LU-725] dead code in ll_direct_rw_pages() Created: 29/Sep/11  Updated: 08/Feb/18  Resolved: 08/Feb/18

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Johann Lombardi (Inactive) Assignee: Jinshan Xiong (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 10406

 Description   
ssize_t ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io,
                           int rw, struct inode *inode,
                           struct ll_dio_pages *pv)
{
        ...
        for (i = 0; i < page_count; i++) {
                ...
                clp = cl_page_find(env, obj, cl_index(obj, file_offset),
                                   pv->ldp_pages[i], CPT_TRANSIENT);
                ...
                rc = cl_page_own(env, io, clp);
                ...
                /* check the page type: if the page is a host page, then do
                 * write directly */
                if (clp->cp_type == CPT_CACHEABLE) {
------------------------> since transient pages are not stored in the radix tree
                          any more, all the code under this if statement is now useless.


 Comments   
Comment by Jinshan Xiong (Inactive) [ 08/Feb/18 ]

The work is already in Lustre.

Generated at Sat Feb 10 01:09:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.