Sriram Patil has uploaded this change for review.

View Change

[FSAL_VFS] Reduce the number of opens done for referral directories

In the referral code path the directory is opened multiple times. First in
getattr, second while getting fs locations and third when reading the xattr. The
same fd can be passed around and closed at the end, so that the directory is
opened only once.

Change-Id: I4f62e69e4574ad9f1d072d3ce2cb46d2d31fe3d9
Signed-off-by: Sriram Patil <sriramp@vmware.com>
---
M src/FSAL/FSAL_VFS/subfsal_helpers.c
M src/FSAL/FSAL_VFS/vfs/attrs.c
M src/FSAL/FSAL_VFS/vfs_methods.h
M src/FSAL/FSAL_VFS/xattrs.c
4 files changed, 94 insertions(+), 53 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I4f62e69e4574ad9f1d072d3ce2cb46d2d31fe3d9
Gerrit-Change-Number: 455431
Gerrit-PatchSet: 1
Gerrit-Owner: Sriram Patil <sriramp@vmware.com>
Gerrit-MessageType: newchange