cifs: Quiet readdir harmless error
Patrick Horng [Thu, 23 Mar 2017 00:06:45 +0000 (17:06 -0700)]
Moved the readdir EINVAL printk to
debug level so as to not clutter kmsg.
This error is harmless and want to remove
for end-users.

Bug 200268378

Change-Id: I4ff28cf955ba733a3de3fdea7f97737ccd86c847
Signed-off-by: Patrick Horng <phorng@nvidia.com>
Reviewed-on: http://git-master/r/1326462
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/1456410
Reviewed-by: Manish Tuteja <mtuteja@nvidia.com>

fs/cifs/readdir.c

index 48b0b8e..18d8417 100644 (file)
@@ -858,7 +858,7 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir)
                        rc = cifs_filldir(current_entry, file, filldir,
                                          direntry, tmp_buf, max_len);
                        if (rc) {
-                               pr_err("cifs_filldir failed with rc = %d\n", rc);
+                               pr_debug("cifs_filldir failed with rc = %d\n", rc);
                                if (rc > 0)
                                        rc = 0;
                                break;