Whamcloud - gitweb
LU-13805 llite: make page_list_{add,del} symmetric 57/52057/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Sun, 17 Sep 2023 18:05:33 +0000 (14:05 -0400)
committerPatrick Farrell <pfarrell@whamcloud.com>
Sun, 17 Sep 2023 18:05:33 +0000 (14:05 -0400)
commit269611ee21f4ad6413b510b98585eb2ce45b1c48
tree330b29591095f1b3272b820c5beb828bf3ab2dd9
parentff35d160dd3437dab2e08b52546e4dad76d01e01
LU-13805 llite: make page_list_{add,del} symmetric

An earlier patch created the slightly frightening situation
where we use cl_page_list_del to remove references which
were not taken by cl_page_list_add.

This assymetry is scary, so let's not do it.  Instead, DIO
now explicitly puts the only cl_page reference it takes.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I832d8ca7dc7f2f99dc30f972197bebc83b8b5977
lustre/include/cl_object.h
lustre/llite/rw.c
lustre/llite/vvp_io.c
lustre/obdclass/cl_io.c
lustre/osc/osc_io.c