diff options
author | Enzo Matsumiya <ematsumiya@suse.de> | 2025-07-07 14:22:18 -0300 |
---|---|---|
committer | Enzo Matsumiya <ematsumiya@suse.de> | 2025-07-09 02:48:10 -0300 |
commit | e835f5ff89e9106fe8c8d1fe8ea3917cea67c016 (patch) | |
tree | d94e108c09b6ba2224bb123968c3b4f9cb9bc82a /fs/ext4/fast_commit.c | |
parent | 556055e008ee0054151085fbf3f9fbf182cf0b98 (diff) | |
download | linux-e835f5ff89e9106fe8c8d1fe8ea3917cea67c016.tar.gz linux-e835f5ff89e9106fe8c8d1fe8ea3917cea67c016.tar.bz2 linux-e835f5ff89e9106fe8c8d1fe8ea3917cea67c016.zip |
smb: client: don't break parent lease on mkdir
When creating a new directory, if we have its parent cached (i.e. we
have a lease), set ParentLeaseKey for the target new dir, while also
already requesting a lease for it.
If it's possible to cache the new dir, try a single Create request first
(without Close). On success, cache it, otherwise, fallback to previous
behaviour (compound Create + Close).
Add some helpers to cached_dir:
- can_cache_dir()
- init_cached_dir() - just allocate the object in the simplest way
- add_cached_dir() - turn cfid available, but up to callers to make it
valid
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions