]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: pass a path to open_shroot and check if it is the root or not
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 8 Mar 2021 23:07:28 +0000 (09:07 +1000)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Apr 2021 21:28:23 +0000 (16:28 -0500)
commit54d2c863512bbcf1324c78a4ee93ecf60755c055
treef299a932f56122032f7857c85b6c9dcd4e57aa5c
parent4c0ce13251ba7a23b630ae6e8e8dbda397f339ca
cifs: pass a path to open_shroot and check if it is the root or not

Move the check for the directory path into the open_shroot() function
but still fail for any non-root directories.
This is preparation for later when we will start using the cache also
for other directories than the root.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2proto.h