Daniel Gryniewicz has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/448058
Change subject: MDCACHE - Keep an entry pointer in dirent when ref'd
......................................................................
MDCACHE - Keep an entry pointer in dirent when ref'd
When a dirent has a ref on an entry, it may still not be able to look
the entry up, because it may become unreachable. In this case, we can't
drop the ref.
Instead, keep a temporary pointer to the entry that is valid only when
we have the ref, and use this instead of looking it up.
Change-Id: I1b87d4fb4201885dd29220dd5515fdaea39ff7c4
Signed-off-by: Daniel Gryniewicz <dang(a)redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_avl.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
3 files changed, 44 insertions(+), 32 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/58/448058/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/448058
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I1b87d4fb4201885dd29220dd5515fdaea39ff7c4
Gerrit-Change-Number: 448058
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Gryniewicz <dang(a)redhat.com>
Gerrit-MessageType: newchange