Whamcloud - gitweb
LU-13814 osc: specialize osc_page_delete 78/52078/20
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 23 Feb 2024 16:05:35 +0000 (11:05 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:16:46 +0000 (18:16 +0000)
commit4733a3c50e151bdeb13a69ced68bbc14ba49e911
tree306ba9b6990074454cc678fe43aa4bcdf2fe1fed
parentffdd0c411da7a347c9e03e0ec43fa936d5390d0e
LU-13814 osc: specialize osc_page_delete

Nearly all of osc_page_delete is only done for cacheable pages,
so make that explicit.  osc_lru_del() doesn't do anything because
transient pages can't go in the LRU.  In osc_teardown_async_page(),
the latter side of the if statement is a search in cache, so it
never finds the page, then the earlier part is a check that the
page isn't in an RPC.  That's not really possible for DIO pages
unless something is *really* off.

Signed-off-by: Patrick Farrell <patrick.farrell@oracle.com>
Change-Id: I998fc196c276aa97829f5b368e23aa4b7a797294
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52078
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
lustre/osc/osc_page.c