diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2019-10-28 18:42:41 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2019-11-11 06:52:02 +0000 |
commit | 5304eaa662b263791baf0e5a9bd616446a3919ef (patch) | |
tree | 4ea9127a21aa407e9a006ddfc71c08d04bdcb915 /xlators/storage/posix/src/posix-helpers.c | |
parent | 54ed71dba174385ab0d8fa415e09262f6250430c (diff) |
posix: Improve MAKE_HANDLE_GFID_PATH and MAKE_HANDLE_RELPATH
Avoid one function call to set the gfid_path in buffer
Change-Id: If9b95801b05c34d262fac9a275492c794d12bf58
Updates #748
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 96061acd5a3..ef3c3284636 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -1351,7 +1351,7 @@ del_stale_dir_handle(xlator_t *this, uuid_t gfid) 0, }; - MAKE_HANDLE_GFID_PATH(hpath, this, gfid, NULL); + MAKE_HANDLE_GFID_PATH(hpath, this, gfid); /* check that it is valid directory handle */ size = sys_lstat(hpath, &stbuf); |