diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 44e3030c3..cf0ea6ef3 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -417,6 +417,8 @@ nfs_read_super(struct super_block *sb, void *raw_data, int silent) if (data->wsize == 0) server->wsize = nfs_block_size(fsinfo.wtpref, NULL); server->dtsize = nfs_block_size(fsinfo.dtpref, NULL); + if (server->dtsize > PAGE_CACHE_SIZE) + server->dtsize = PAGE_CACHE_SIZE; /* NFSv3: we don't have bsize, but rather rtmult and wtmult... */ if (!fsinfo.bsize) fsinfo.bsize = (fsinfo.rtmult>fsinfo.wtmult) ? fsinfo.rtmult : fsinfo.wtmult; |