NFSv4.1 use pnfs_device maxcount for the objectlayout gdia_maxcount
authorAndy Adamson <andros@netapp.com>
Tue, 25 Jun 2013 23:02:55 +0000 (19:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Jun 2013 19:34:45 +0000 (15:34 -0400)
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/objlayout/objlayout.c

index 198990852d509689e1fe3052b5b4816eb171d678..e4f9cbfec67bfb2d497099a4221067de6939fe61 100644 (file)
@@ -613,6 +613,7 @@ int objlayout_get_deviceinfo(struct pnfs_layout_hdr *pnfslay,
        pd.pgbase = 0;
        pd.pglen = PAGE_SIZE;
        pd.mincount = 0;
+       pd.maxcount = PAGE_SIZE;
 
        err = nfs4_proc_getdeviceinfo(NFS_SERVER(pnfslay->plh_inode), &pd,
                        pnfslay->plh_lc_cred);