cifs: add lease tracking to the cached root fid
Use a read lease for the cached root fid so that we can detect when the content of the directory changes (via a break) at which time we close the handle. On next access to the root the handle will be reopened and cached again. Signed-off-by:Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by:
Steve French <stfrench@microsoft.com>
Showing
- fs/cifs/cifsglob.h 9 additions, 3 deletionsfs/cifs/cifsglob.h
- fs/cifs/cifsproto.h 1 addition, 0 deletionsfs/cifs/cifsproto.h
- fs/cifs/cifssmb.c 4 additions, 4 deletionsfs/cifs/cifssmb.c
- fs/cifs/misc.c 4 additions, 3 deletionsfs/cifs/misc.c
- fs/cifs/smb2misc.c 15 additions, 1 deletionfs/cifs/smb2misc.c
- fs/cifs/smb2ops.c 25 additions, 9 deletionsfs/cifs/smb2ops.c
Please register or sign in to comment