Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFS: Re-enable compilation of nfs with !CONFIG_NFS_V4 || !CONFIG_NFS_V4_1

Fix two recently introduced compile problems:

Fix a typo in fs/nfs/pnfs.h

Move the pnfs_blksize declaration outside the CONFIG_NFS_V4 section in
struct nfs_server.

Reported-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Trond Myklebust and committed by
Linus Torvalds
a00ed25c 24c30470

+2 -2
+1 -1
fs/nfs/pnfs.h
··· 380 380 } 381 381 382 382 static inline void set_pnfs_layoutdriver(struct nfs_server *s, 383 - const struct nfs_fh *mntfh, u32 id); 383 + const struct nfs_fh *mntfh, u32 id) 384 384 { 385 385 } 386 386
+1 -1
include/linux/nfs_fs_sb.h
··· 131 131 struct fscache_cookie *fscache; /* superblock cookie */ 132 132 #endif 133 133 134 + u32 pnfs_blksize; /* layout_blksize attr */ 134 135 #ifdef CONFIG_NFS_V4 135 136 u32 attr_bitmask[3];/* V4 bitmask representing the set 136 137 of attributes supported on this ··· 146 145 filesystem */ 147 146 struct pnfs_layoutdriver_type *pnfs_curr_ld; /* Active layout driver */ 148 147 struct rpc_wait_queue roc_rpcwaitq; 149 - u32 pnfs_blksize; /* layout_blksize attr */ 150 148 void *pnfs_ld_data; /* per mount point data */ 151 149 152 150 /* the following fields are protected by nfs_client->cl_lock */