Whamcloud - gitweb
LU-13783 osc: handle removal of NR_UNSTABLE_NFS 60/39260/4
authorMr NeilBrown <neilb@suse.de>
Fri, 3 Jul 2020 05:33:36 +0000 (15:33 +1000)
committerOleg Drokin <green@whamcloud.com>
Sat, 12 Sep 2020 15:45:19 +0000 (15:45 +0000)
commit3e5faa441266cd8dc2ee54ae140ad0129b4affa0
tree4af121fcd6ce3328883597016a94ec44a6aeda08
parente2e30106bc0c70da0111f9d677e5e671701ee932
LU-13783 osc: handle removal of NR_UNSTABLE_NFS

In Linux 5.8 the NR_UNSTABLE_NFS page counters are go.  All pages that
have been writen but are not yet safe are now counted in NR_WRITEBACK.

So change osc_page to count in NR_WRITEBACK, but if NR_UNSTABLE_NFS
still exists in the kernel, use a #define to direct the updates to
that counter.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I49cbc267fafaee949f45b2e559511aedcf4d8fed
Reviewed-on: https://review.whamcloud.com/39260
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/osc/osc_page.c