Whamcloud - gitweb
LU-13783 osc: handle removal of NR_UNSTABLE_NFS 78/43778/2
authorMr NeilBrown <neilb@suse.de>
Fri, 3 Jul 2020 05:33:36 +0000 (15:33 +1000)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jun 2021 22:26:23 +0000 (22:26 +0000)
commitd9afe2862ee8fe6d5da0bed8b1a6a94c3a0cb97f
tree8bcf9e2dad4875de35611153a94622d99026b9bc
parentf9d52ca68ef2078a93b39bb83b103f14a7053162
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.

Conflicts:
libcfs/autoconf/lustre-libcfs.m4

Lustre-change: https://review.whamcloud.com/39260
Lustre-commit: 3e5faa441266cd8dc2ee54ae140ad0129b4affa0

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I49cbc267fafaee949f45b2e559511aedcf4d8fed
Reviewed-on: https://review.whamcloud.com/43778
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@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