linux-stable-rt/fs
NeilBrown c6b0a9f87b [PATCH] knfsd: tidy up up meaning of 'buffer size' in nfsd/sunrpc
There is some confusion about the meaning of 'bufsz' for a sunrpc server.
In some cases it is the largest message that can be sent or received.  In
other cases it is the largest 'payload' that can be included in a NFS
message.

In either case, it is not possible for both the request and the reply to be
this large.  One of the request or reply may only be one page long, which
fits nicely with NFS.

So we remove 'bufsz' and replace it with two numbers: 'max_payload' and
'max_mesg'.  Max_payload is the size that the server requests.  It is used
by the server to check the max size allowed on a particular connection:
depending on the protocol a lower limit might be used.

max_mesg is the largest single message that can be sent or received.  It is
calculated as the max_payload, rounded up to a multiple of PAGE_SIZE, and
with PAGE_SIZE added to overhead.  Only one of the request and reply may be
this size.  The other must be at most one page.

Cc: Greg Banks <gnb@sgi.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-06 08:53:41 -07:00
..
9p
adfs
affs
afs
autofs
autofs4
befs fix file specification in comments 2006-10-03 23:01:26 +02:00
bfs
cifs Still more typo fixes 2006-10-03 22:36:44 +02:00
coda
configfs Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6 2006-10-04 09:06:16 -07:00
cramfs
debugfs debugfs: spelling fix 2006-10-03 23:28:36 +02:00
devpts
dlm
ecryptfs [PATCH] ecryptfs: fs/Makefile and fs/Kconfig 2006-10-04 07:55:24 -07:00
efs
exportfs
ext2
ext3
fat
freevxfs
fuse
gfs2 [GFS2] Fix endian bug for de_type 2006-10-03 21:03:35 -04:00
hfs
hfsplus fix file specification in comments 2006-10-03 23:01:26 +02:00
hostfs
hpfs
hppfs
hugetlbfs
isofs Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
jbd fix file specification in comments 2006-10-03 23:01:26 +02:00
jffs
jffs2
jfs
lockd [PATCH] knfsd: lockd: fix refount on nsm 2006-10-04 07:55:20 -07:00
minix
msdos
ncpfs
nfs Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
nfs_common
nfsd [PATCH] knfsd: tidy up up meaning of 'buffer size' in nfsd/sunrpc 2006-10-06 08:53:41 -07:00
nls fix file specification in comments 2006-10-03 23:01:26 +02:00
ntfs
ocfs2
openpromfs
partitions
proc IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
qnx4
ramfs
reiserfs Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
romfs
smbfs
sysfs [PATCH] pr_debug: sysfs: use size_t length modifier in pr_debug format arguments 2006-10-03 08:04:19 -07:00
sysv
udf [PATCH] UDF: Fix mounting read-write 2006-10-05 16:18:55 -07:00
ufs
vfat
xfs BUG_ON conversion for fs/xfs/ 2006-10-03 23:37:55 +02:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6 2006-10-04 09:06:16 -07:00
Kconfig.binfmt
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6 2006-10-04 09:06:16 -07:00
aio.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
binfmt_som.c [PARISC] Fix fs/binfmt_som.c 2006-10-04 06:51:26 -06:00
bio.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_ioctl.c
dcache.c [PATCH] knfsd: close a race-opportunity in d_splice_alias 2006-10-04 07:55:21 -07:00
dcookies.c
direct-io.c
dnotify.c
dquot.c
drop_caches.c
eventpoll.c
exec.c
fcntl.c
fifo.c
file.c
file_table.c
filesystems.c
fs-writeback.c
generic_acl.c
inode.c
inotify.c
inotify_user.c
internal.h
ioctl.c
ioprio.c
libfs.c
locks.c
mbcache.c
mpage.c
namei.c
namespace.c
nfsctl.c
no-block.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
quota.c
quota_v1.c
quota_v2.c
read_write.c
read_write.h
readdir.c
select.c
seq_file.c
splice.c
stat.c
super.c
sync.c
utimes.c
xattr.c
xattr_acl.c