cifs: don't spam the logs on unexpected lookup errors
authorJeff Layton <jlayton@redhat.com>
Thu, 7 Nov 2013 20:03:39 +0000 (15:03 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 11 Nov 2013 22:34:53 +0000 (16:34 -0600)
commita8582159edb47a60dd1e5df5a21890f225270f62
treedebf682c70bf401b2379f8148a4d641815679271
parentcce0244ab0af78f8f01ad826d2f9813a9580b105
cifs: don't spam the logs on unexpected lookup errors

Andrey reported that he was seeing cifs.ko spam the logs with messages
like this:

    CIFS VFS: Unexpected lookup error -26

He was listing the root directory of a server and hitting an error when
trying to QUERY_PATH_INFO against hiberfil.sys and pagefile.sys. The
right fix would be to switch the lookup code over to using FIND_FIRST,
but until then we really don't need to report this at a level of
KERN_ERR. Convert this message over to FYI level.

Reported-by: "Andrey Shernyukov" <andreysh@nioch.nsc.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/dir.c