nfs: use change attribute for NFS re-exports
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 29 Jan 2021 19:26:29 +0000 (14:26 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jan 2021 16:47:12 +0000 (11:47 -0500)
commit3cc55f4434b421d37300aa9a167ace7d60b45ccf
tree636aefebdee4ea18f32c2892d953120b38151694
parent02591f9febd5f69bb4c266a4abf899c4cf21964f
nfs: use change attribute for NFS re-exports

When exporting NFS, we may as well use the real change attribute
returned by the original server instead of faking up a change attribute
from the ctime.

Note we can't do that by setting I_VERSION--that would also turn on the
logic in iversion.h which treats the lower bit specially, and that
doesn't make sense for NFS.

So instead we define a new export operation for filesystems like NFS
that want to manage the change attribute themselves.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfs/export.c
fs/nfsd/nfsfh.h
include/linux/exportfs.h