[PATCH] knfsd: svcrpc: gss: don't call svc_take_page unnecessarily
authorNeilBrown <neilb@suse.de>
Tue, 11 Apr 2006 05:55:34 +0000 (22:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:52 +0000 (06:18 -0700)
commitdfee55f06213a23b250ea63ba41caa461cdd5e72
treecfee86e10c5f5406bf7f1fa98c2b5d73d66d259b
parentbb6e8a9f4005237401a45f1ea43db060ea5f9725
[PATCH] knfsd: svcrpc: gss: don't call svc_take_page unnecessarily

We're using svc_take_page here to get another page for the tail in case one
wasn't already allocated.  But there isn't always guaranteed to be another
page available.

Also fix a typo that made us check the tail buffer for space when we meant to
be checking the head buffer.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/auth_gss/svcauth_gss.c