shaharhoch@google.com has uploaded this change for review.

View Change

FSAL_MDCACHE/mdcache_handle: Fix accessing cached attrs without checking validity

Previously, in mdcache test_access we check the owner override from the
cached attributes, without checking their validity.

This is also not needed, since fsal_test_access performs this check
anyway, and does it properly, after calling get_attrs, which only gets the
attributes from the cache if they are valid.

Change-Id: Id19d7b6ec5ef89db2df4cdaa26538edcd63eb639
Signed-off-by: Shahar Hochma <shaharhoch@google.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
1 file changed, 0 insertions(+), 6 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/32/1201632/1

To view, visit change 1201632. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Id19d7b6ec5ef89db2df4cdaa26538edcd63eb639
Gerrit-Change-Number: 1201632
Gerrit-PatchSet: 1
Gerrit-Owner: shaharhoch@google.com