Madhu Thorat has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/465126 )
Change subject: mdcache_create_handle: Don't lookup for parent for a root object
......................................................................
mdcache_create_handle: Don't lookup for parent for a root object
Currently in mdcache_create_handle() after getting an 'entry' we
call mdc_get_parent() for the 'entry'. But if the entry->obj_handle
points to root object then we would be doing lookup of parent for the
root, which we should not be doing.
To avoid this prior to call mdc_get_parent() check if the
entry->obj_handle points to a root object, if yes then don't call
mdc_get_parent() for the 'entry'.
Change-Id: Ibf25fd283573c9fa28ae0452d96f00f294f66828
Signed-off-by: Madhu Thorat <madhu.punjabi(a)in.ibm.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
1 file changed, 21 insertions(+), 2 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/26/465126/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/465126
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: Ibf25fd283573c9fa28ae0452d96f00f294f66828
Gerrit-Change-Number: 465126
Gerrit-PatchSet: 1
Gerrit-Owner: Madhu Thorat <madhu.punjabi(a)in.ibm.com>
Gerrit-MessageType: newchange