]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: store a pointer to the root dentry in cifs_sb_info once we have completed mount...
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 8 Mar 2021 23:07:30 +0000 (09:07 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 13 Apr 2021 04:59:08 +0000 (23:59 -0500)
commita6d2cddc9ffec8912a7b6ac8294c40fa7321d4ec
treee38318b6ddb08188aa5c3bc20cb8a2a912503a1d
parent4bd7859f972a6cc8eac1dd41478a2e85370eb6e0
cifs: store a pointer to the root dentry in cifs_sb_info once we have completed mounting the share

And use this to only allow to take out a shared handle once the mount has completed and the
sb becomes available.
This will become important in follow up patches where we will start holding a reference to the
directory dentry for the shared handle during the lifetime of the handle.

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