cifs: update desired access while requesting for directory lease
authorBharath SM <bharathsm@microsoft.com>
Wed, 16 Aug 2023 19:38:45 +0000 (19:38 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 22 Aug 2023 15:31:00 +0000 (10:31 -0500)
commitb6d44d42313baa45a81ce9b299aeee2ccf3d0ee1
treea84732d217b313f514f4aa14cb7669667b71f254
parent74e01332d9585b8252c16c1da055828dc5a5dac9
cifs: update desired access while requesting for directory lease

We read and cache directory contents when we get directory
lease, so we should ask for read permission to read contents
of directory.

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c