]> git.baikalelectronics.ru Git - kernel.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>
Sun, 25 Apr 2021 21:28:23 +0000 (16:28 -0500)
commit7c41c39524945307bf009a8951fbfabe60cb13e1
tree25800d121bcc16a69448c4aa33fb2e4c85c4daa6
parente8c32af319d23f0ceea1da9f35faee7260c7094f
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