aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/client.c1
-rw-r--r--fs/nfs/nfs4proc.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 57d2a5c3d933..bab3e8af574a 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -849,7 +849,6 @@ static void nfs_server_set_fsinfo(struct nfs_server *server,
849 if (server->wsize > NFS_MAX_FILE_IO_SIZE) 849 if (server->wsize > NFS_MAX_FILE_IO_SIZE)
850 server->wsize = NFS_MAX_FILE_IO_SIZE; 850 server->wsize = NFS_MAX_FILE_IO_SIZE;
851 server->wpages = (server->wsize + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; 851 server->wpages = (server->wsize + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
852 server->pnfs_blksize = fsinfo->blksize;
853 852
854 server->wtmult = nfs_block_bits(fsinfo->wtmult, NULL); 853 server->wtmult = nfs_block_bits(fsinfo->wtmult, NULL);
855 854
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 9aa97112426f..e10d66f5be0a 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -3402,8 +3402,11 @@ static int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, s
3402 3402
3403 nfs_fattr_init(fsinfo->fattr); 3403 nfs_fattr_init(fsinfo->fattr);
3404 error = nfs4_do_fsinfo(server, fhandle, fsinfo); 3404 error = nfs4_do_fsinfo(server, fhandle, fsinfo);
3405 if (error == 0) 3405 if (error == 0) {
3406 /* block layout checks this! */
3407 server->pnfs_blksize = fsinfo->blksize;
3406 set_pnfs_layoutdriver(server, fhandle, fsinfo->layouttype); 3408 set_pnfs_layoutdriver(server, fhandle, fsinfo->layouttype);
3409 }
3407 3410
3408 return error; 3411 return error;
3409} 3412}