Skip to content

Commit 6f14fc2

Browse files
paligregkh
authored andcommitted
cifs: Use cifs_autodisable_serverino() for disabling CIFS_MOUNT_SERVER_INUM in readdir.c
[ Upstream commit 015683d ] 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: ec06aed ("cifs: clean up handling when server doesn't consistently support inode numbers") Fixes: f534dc9 ("cifs: clear server inode number flag while autodisabling") Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent ad3b49f commit 6f14fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/readdir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ _initiate_cifs_search(const unsigned int xid, struct file *file,
413413
cifsFile->invalidHandle = false;
414414
} else if ((rc == -EOPNOTSUPP) &&
415415
(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) {
416-
cifs_sb->mnt_cifs_flags &= ~CIFS_MOUNT_SERVER_INUM;
416+
cifs_autodisable_serverino(cifs_sb);
417417
goto ffirst_retry;
418418
}
419419
error_exit:

0 commit comments

Comments
 (0)