1 Jan 2008 14:46
[2.6 patch] CIFS: #if 0 mode_to_access_flags()
Adrian Bunk <bunk <at> kernel.org>
2008-01-01 13:46:44 GMT
2008-01-01 13:46:44 GMT
This patch #if 0's the unused mode_to_access_flags(), fixing the following compile warning: <-- snip --> ... CC fs/cifs/cifsacl.o /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/cifs/cifsacl.c:200: warning: ‘mode_to_access_flags’ defined but not used ... <-- snip --> Signed-off-by: Adrian Bunk <bunk <at> kernel.org> --- fs/cifs/cifsacl.c | 2 ++ 1 file changed, 2 insertions(+) 0cf530f754b974ee5e58b3346828bb5586440c92 diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index c312adc..771a22f 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c <at> <at> -189,6 +189,7 <at> <at> static void access_flags_to_mode(__le32 ace_flags, int type, umode_t *pmode, return; } +#if 0(Continue reading)
>
Here's a patch to fix up the earlier patch. This makes it so that we
hold the sesSem when checking the status of the existing connection. We
might as well go ahead and patch up this potential race now than wait
until someone hits it.
RSS Feed