NFS: Re-enable compilation of nfs with !CONFIG_NFS_V4 || !CONFIG_NFS_V4_1
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 31 Jul 2011 20:39:04 +0000 (16:39 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Aug 2011 00:27:04 +0000 (14:27 -1000)
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>
fs/nfs/pnfs.h
include/linux/nfs_fs_sb.h

index e0b5d80a43f6683e9cd9af2c43e6f88031393c3a..01cbfd54f3cb814a868ee6096790f16184e40075 100644 (file)
@@ -380,7 +380,7 @@ pnfs_roc_drain(struct inode *ino, u32 *barrier)
 }
 
 static inline void set_pnfs_layoutdriver(struct nfs_server *s,
-                                        const struct nfs_fh *mntfh, u32 id);
+                                        const struct nfs_fh *mntfh, u32 id)
 {
 }
 
index 82fdfc7987d68abca4bea6cdca83e69806ffd058..b5479df8378d2fe3981ffab93bb5ff39980e9474 100644 (file)
@@ -131,6 +131,7 @@ struct nfs_server {
        struct fscache_cookie   *fscache;       /* superblock cookie */
 #endif
 
+       u32                     pnfs_blksize;   /* layout_blksize attr */
 #ifdef CONFIG_NFS_V4
        u32                     attr_bitmask[3];/* V4 bitmask representing the set
                                                   of attributes supported on this
@@ -145,7 +146,6 @@ struct nfs_server {
                                                   filesystem */
        struct pnfs_layoutdriver_type  *pnfs_curr_ld; /* Active layout driver */
        struct rpc_wait_queue   roc_rpcwaitq;
-       u32                     pnfs_blksize;   /* layout_blksize attr */
        void                    *pnfs_ld_data;  /* per mount point data */
 
        /* the following fields are protected by nfs_client->cl_lock */