]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 13 Apr 2021 04:59:02 +0000 (23:59 -0500)
commitc4bec24615037a58be1b8dd0b3f7821fbba4f30c
tree30f662e2051ab2be4132dfc7a5db89ce8ada0a53
parent3f4b59ee854feb9eba30a03fdb7b1c8641a01e25
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