]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
cifs: Use cifs_autodisable_serverino() for disabling CIFS_MOUNT_SERVER_INUM in readdir.c
authorPali Rohár <pali@kernel.org>
Thu, 2 Jan 2025 20:38:48 +0000 (21:38 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Jan 2025 01:34:00 +0000 (19:34 -0600)
In all other places is used function cifs_autodisable_serverino() for
disabling CIFS_MOUNT_SERVER_INUM mount flag. So use is also in readir.c
_initiate_cifs_search() function. Benefit of cifs_autodisable_serverino()
is that it also prints dmesg message that server inode numbers are being
disabled.

Fixes: ec06aedd4454 ("cifs: clean up handling when server doesn't consistently support inode numbers")
Fixes: f534dc994397 ("cifs: clear server inode number flag while autodisabling")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/readdir.c

index 273358d20a46c9b04b00fcd35e252c197d1926b2..50f96259d9adc2e9da723ea262adb6a16906b34d 100644 (file)
@@ -413,7 +413,7 @@ ffirst_retry:
                cifsFile->invalidHandle = false;
        } else if ((rc == -EOPNOTSUPP) &&
                   (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) {
-               cifs_sb->mnt_cifs_flags &= ~CIFS_MOUNT_SERVER_INUM;
+               cifs_autodisable_serverino(cifs_sb);
                goto ffirst_retry;
        }
 error_exit: