Commit c129c293 authored by David Howells's avatar David Howells Committed by Linus Torvalds

NFS: Provide stub nfs_fscache_wait_on_invalidate() for when CONFIG_NFS_FSCACHE=n

Provide a stub nfs_fscache_wait_on_invalidate() function for when
CONFIG_NFS_FSCACHE=n lest the following error appear:

  fs/nfs/inode.c: In function 'nfs_invalidate_mapping':
  fs/nfs/inode.c:887:2: error: implicit declaration of function 'nfs_fscache_wait_on_invalidate' [-Werror=implicit-function-declaration]
  cc1: some warnings being treated as errors
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Reported-by: default avatarVineet Gupta <Vineet.Gupta1@synopsys.com>
Reported-by: default avatarBorislav Petkov <bp@alien8.de>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 54e37b8d
...@@ -222,6 +222,7 @@ static inline void nfs_readpage_to_fscache(struct inode *inode, ...@@ -222,6 +222,7 @@ static inline void nfs_readpage_to_fscache(struct inode *inode,
static inline void nfs_fscache_invalidate(struct inode *inode) {} static inline void nfs_fscache_invalidate(struct inode *inode) {}
static inline void nfs_fscache_wait_on_invalidate(struct inode *inode) {}
static inline const char *nfs_server_fscache_state(struct nfs_server *server) static inline const char *nfs_server_fscache_state(struct nfs_server *server)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment