mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
cifs: Use cifs_autodisable_serverino() for disabling CIFS_MOUNT_SERVER_INUM in readdir.c
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:ec06aedd44("cifs: clean up handling when server doesn't consistently support inode numbers") Fixes:f534dc9943("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>
This commit is contained in:
parent
72cf9e94f3
commit
015683d4ed
|
|
@ -413,7 +413,7 @@ _initiate_cifs_search(const unsigned int xid, struct file *file,
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user