diff options
author | David Howells <dhowells@redhat.com> | 2007-05-03 06:11:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-03 06:11:29 -0400 |
commit | 80c72fe415698049a477314ac82790c1af0fa7e3 (patch) | |
tree | ae5fbc5ad3327d1c44cead49df8fb0e724baf56f /fs/afs/fsclient.c | |
parent | ef4533f8af7a8798cb8f52b06f47acf0c0d2d767 (diff) |
[AFS/AF_RXRPC]: Miscellaneous fixes.
Make miscellaneous fixes to AFS and AF_RXRPC:
(*) Make AF_RXRPC select KEYS rather than RXKAD or AFS_FS in Kconfig.
(*) Don't use FS_BINARY_MOUNTDATA.
(*) Remove a done 'TODO' item in a comemnt on afs_get_sb().
(*) Don't pass a void * as the page pointer argument of kmap_atomic() as this
breaks on m68k. Patch from Geert Uytterhoeven <geert@linux-m68k.org>.
(*) Use match_*() functions rather than doing my own parsing.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/fsclient.c')
-rw-r--r-- | fs/afs/fsclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c index 2393d2a08d79..e54e6c2ad343 100644 --- a/fs/afs/fsclient.c +++ b/fs/afs/fsclient.c | |||
@@ -266,7 +266,8 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call, | |||
266 | call->unmarshall++; | 266 | call->unmarshall++; |
267 | 267 | ||
268 | if (call->count < PAGE_SIZE) { | 268 | if (call->count < PAGE_SIZE) { |
269 | buffer = kmap_atomic(call->reply3, KM_USER0); | 269 | page = call->reply3; |
270 | buffer = kmap_atomic(page, KM_USER0); | ||
270 | memset(buffer + PAGE_SIZE - call->count, 0, | 271 | memset(buffer + PAGE_SIZE - call->count, 0, |
271 | call->count); | 272 | call->count); |
272 | kunmap_atomic(buffer, KM_USER0); | 273 | kunmap_atomic(buffer, KM_USER0); |