inneek@gmail.com has uploaded this change for review.

View Change

Reorder operations in fsal_test_access to eliminate redundant getattrs calls.

When access_type is 0 ("nothing requested"), fsal_test_access previously called
getattrs on the object handle before checking access_type. Moving the
access_type check to the beginning of fsal_test_access avoids executing an unnecessary getattrs RPC query when access_type == 0

Change-Id: I791a175e3a92f2fb449f856a9c3f7918258dffdd
Signed-off-by: Inna Batenkov <inneek@gmail.com>
---
M src/FSAL/access_check.c
1 file changed, 17 insertions(+), 8 deletions(-)

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

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

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I791a175e3a92f2fb449f856a9c3f7918258dffdd
Gerrit-Change-Number: 1245714
Gerrit-PatchSet: 1
Gerrit-Owner: inneek@gmail.com