[LU-16292] ERROR: modpost: "delete_from_page_cache" undefined Created: 03/Nov/22  Updated: 28/Mar/23  Resolved: 08/Feb/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.15.3

Type: Bug Priority: Minor
Reporter: Jian Yu Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-16221 RHEL 9.1 support Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Kernel v5.16-rc4-44-g452e9e6992fe:

commit 452e9e6992fe058a650c81d01a9982e3faf10278
Author:     Matthew Wilcox (Oracle) <willy@infradead.org>
AuthorDate: Sun May 9 09:33:42 2021 -0400
Commit:     Matthew Wilcox (Oracle) <willy@infradead.org>
CommitDate: Tue Jan 4 13:15:33 2022 -0500

    filemap: Add filemap_remove_folio and __filemap_remove_folio
    
    Reimplement __delete_from_page_cache() as a wrapper around
    __filemap_remove_folio() and delete_from_page_cache() as a wrapper
    around filemap_remove_folio().  Remove the EXPORT_SYMBOL as
    delete_from_page_cache() was not used by any in-tree modules.
    Convert page_cache_free_page() into filemap_free_folio().
    
    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: William Kucharski <william.kucharski@oracle.com>

Lustre build failed:

ERROR: modpost: "delete_from_page_cache" [/tmp/rpmbuild-lustre-jenkins-NkFDQasu/BUILD/lustre-2.15.52_64_g2647af4/lustre/llite/lustre.ko] undefined!
ERROR: modpost: "delete_from_page_cache" [/tmp/rpmbuild-lustre-jenkins-NkFDQasu/BUILD/lustre-2.15.52_64_g2647af4/lustre/mdc/mdc.ko] undefined!


 Comments   
Comment by Jian Yu [ 03/Nov/22 ]

Hi stancheff, did you hit this issue and have a fix for it?

Comment by Shaun Tancheff [ 03/Nov/22 ]

Yes, this is an issue. So far I do not have better solution that to remove the call when it is not available.

Comment by Gerrit Updater [ 08/Nov/22 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49069
Subject: LU-16292 llite: delete_from_page_cache not exported
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 881f1d1b9a0193df7d80bb4d30022e3ffe5001c5

Comment by Gerrit Updater [ 10/Nov/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49121
Subject: LU-16292 llite: delete_from_page_cache not exported
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 2abcee96f4e3e47100b4569ac012385dc385d64f

Comment by Gerrit Updater [ 08/Feb/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49069/
Subject: LU-16292 llite: delete_from_page_cache not exported
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 738e69d4b97d28ef037fe50f4146aabead9a2528

Comment by Peter Jones [ 08/Feb/23 ]

Landed for 2.16

Comment by Gerrit Updater [ 28/Mar/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49121/
Subject: LU-16292 llite: delete_from_page_cache not exported
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: f8484d49fd6dc97b6d995a42b4e6cee86f762526

Generated at Sat Feb 10 03:25:42 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.