Files
linux-stable-mirror/include/linux
NeilBrown a0ad13ef64 [PATCH] knfsd: Fix type mismatch with filldir_t used by nfsd
nfsd defines a type 'encode_dent_fn' which is much like 'filldir_t' except
that the first pointer is 'struct readdir_cd *' rather than 'void *'.  It
then casts encode_dent_fn points to 'filldir_t' as needed.  This hides any
other type mismatches between the two such as the fact that the 'ino' arg
recently changed from ino_t to u64.

So: get rid of 'encode_dent_fn', get rid of the cast of the function type,
change the first arg of various functions from 'struct readdir_cd *' to
'void *', and live with the fact that we have a little less type checking
on the calling of these functions now.  Less internal (to nfsd) checking
offset by more external checking, which is more important.

Thanks to Gabriel Paubert <paubert@iram.es> for discovering this and
providing an initial patch.

Signed-off-by: Gabriel Paubert <paubert@iram.es>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-01-26 13:51:00 -08:00
..
2007-01-15 06:44:03 +01:00
2007-01-04 12:18:19 -05:00
2006-12-19 11:12:46 +01:00
2006-12-30 10:56:43 -08:00
2006-12-11 14:35:00 -08:00
2007-01-08 19:49:54 +00:00
2006-12-10 21:21:29 +01:00
2006-12-10 21:21:31 +01:00
2006-12-12 10:22:23 +01:00
2006-12-20 10:54:43 -08:00
2007-01-24 02:04:34 -05:00
2007-01-05 23:55:21 -08:00
2007-01-26 13:50:58 -08:00
2007-01-11 18:18:20 -08:00
2006-12-13 09:05:50 -08:00
2007-01-23 00:34:54 -05:00
2007-01-11 18:18:21 -08:00
2006-12-22 08:55:49 -08:00
2006-12-12 08:10:44 -08:00
2006-12-13 09:05:49 -08:00
2006-12-12 19:23:02 +01:00
2006-12-15 08:47:51 -08:00