]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: pass struct rgw_fh_hk by reference
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 4 Nov 2015 23:26:11 +0000 (18:26 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:39 +0000 (12:05 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc

index 2f7cface3e23962bdbb54c6fb766ad64ef717d21..4234c2ae061b666219b7eada12345bcb3d8d3298 100644 (file)
@@ -86,7 +86,7 @@ int rgw_lookup(struct rgw_fs *rgw_fs,
 /*
   lookup object by handle (NFS style)
 */
-int rgw_lookup_handle(struct rgw_fs *rgw_fs, struct rgw_fh_hk fh_hk,
+int rgw_lookup_handle(struct rgw_fs *rgw_fs, struct rgw_fh_hk *fh_hk,
                      struct rgw_file_handle **fh, uint32_t flags);
 
 /*
index 9792749dfbbad4f50e21ba47bd787be0b4279bdb..36107e2cbbab0403a6a567c659e16a7016e8fc0f 100644 (file)
@@ -201,12 +201,12 @@ int rgw_lookup(struct rgw_fs *rgw_fs,
 /*
   lookup object by handle (NFS style)
 */
-int rgw_lookup_handle(struct rgw_fs *rgw_fs, struct rgw_fh_hk fh_hk,
+int rgw_lookup_handle(struct rgw_fs *rgw_fs, struct rgw_fh_hk *fh_hk,
                      struct rgw_file_handle **fh, uint32_t flags)
 {
   RGWLibFS *fs = static_cast<RGWLibFS*>(rgw_fs->fs_private);
 
-  RGWFileHandle* rgw_fh = fs->lookup_handle(fh_hk);
+  RGWFileHandle* rgw_fh = fs->lookup_handle(*fh_hk);
   if (! rgw_fh) {
     /* not found */
     return ENOENT;