summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-11-16 15:39:29 +0530
committerVijay Bellur <vijay@gluster.com>2011-11-16 03:44:32 -0800
commit14f4e023822a22e0a4902acfd28c8f5ea8c94ccd (patch)
tree580ae84b87adf7f7ce83d6a409c303aa49ba4220 /xlators/performance
parent217842180858afff79d06c24389752299c5ed716 (diff)
core: remove 'ino' variable from 'inode_t' structure
Change-Id: I0f078d1753db65d2f2e0380d1b0450c114cf40dd BUG: 3518 Reviewed-on: http://review.gluster.com/522 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c4
-rw-r--r--xlators/performance/quick-read/src/quick-read.c16
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c148
3 files changed, 65 insertions, 103 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 8b32a4f0637..009e7cf28e1 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1045,8 +1045,8 @@ ioc_dispatch_requests (call_frame_t *frame, ioc_inode_t *ioc_inode, fd_t *fd,
need_validate = 0;
gf_log (frame->this->name, GF_LOG_TRACE,
"sending validate request for "
- "inode(%"PRId64") at offset=%"PRId64"",
- fd->inode->ino, trav_offset);
+ "inode(%s) at offset=%"PRId64"",
+ uuid_utoa (fd->inode->gfid), trav_offset);
ret = ioc_cache_validate (frame, ioc_inode, fd, trav);
if (ret == -1) {
ioc_inode_lock (ioc_inode);
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 1d7a04e9554..fb12b24c04c 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -94,7 +94,6 @@ qr_loc_fill (loc_t *loc, inode_t *inode, char *path)
loc->inode = inode_ref (inode);
loc->path = gf_strdup (path);
- loc->ino = inode->ino;
path_copy = gf_strdup (path);
if (path_copy == NULL) {
@@ -397,8 +396,8 @@ qr_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
op_errno = EINVAL;
gf_log (this->name, GF_LOG_WARNING,
"cannot set quick-read context in "
- "inode (ino:%"PRId64" gfid:%s)",
- inode->ino, inode->gfid);
+ "inode (gfid:%s)",
+ uuid_utoa (inode->gfid));
goto unlock;
}
} else {
@@ -408,8 +407,8 @@ qr_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
op_errno = EINVAL;
gf_log (this->name, GF_LOG_WARNING,
"cannot find quick-read context in "
- "inode (ino:%"PRId64" gfid:%s)",
- inode->ino, uuid_utoa (inode->gfid));
+ "inode (gfid:%s)",
+ uuid_utoa (inode->gfid));
goto unlock;
}
}
@@ -586,8 +585,7 @@ qr_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret,
op_errno = EINVAL;
gf_log (this->name, GF_LOG_WARNING,
"cannot find quick-read context in fd (%p) opened on "
- "inode (ino:%"PRId64" gfid: %s", fd, fd->inode->ino,
- uuid_utoa (fd->inode->gfid));
+ "inode (gfid: %s)", fd, uuid_utoa (fd->inode->gfid));
goto out;
}
@@ -700,8 +698,8 @@ qr_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
op_errno = EINVAL;
gf_log (this->name, GF_LOG_WARNING,
"cannot set quick-read context in "
- "fd (%p) opened on inode (ino:%"PRId64" gfid:%s)", fd,
- fd->inode->ino, uuid_utoa (fd->inode->gfid));
+ "fd (%p) opened on inode (gfid:%s)", fd,
+ uuid_utoa (fd->inode->gfid));
goto unwind;
}
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index c98a2076b8c..563da9e7267 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -110,8 +110,7 @@ sp_update_inode_ctx (xlator_t *this, inode_t *inode, int32_t *op_ret,
gf_log (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", inode->ino,
- uuid_utoa (inode->gfid));
+ "(gfid:%s)", uuid_utoa (inode->gfid));
goto out;
}
@@ -172,9 +171,9 @@ sp_check_and_create_inode_ctx (xlator_t *this, inode_t *inode,
gf_log_callingfn (this->name, GF_LOG_WARNING,
"stat-prefetch context is "
"present in inode "
- "(ino:%"PRId64" gfid:%s) "
+ "(gfid:%s) "
"when it is supposed to be "
- "not present", inode->ino,
+ "not present",
uuid_utoa (inode->gfid));
}
} else {
@@ -182,9 +181,9 @@ sp_check_and_create_inode_ctx (xlator_t *this, inode_t *inode,
gf_log_callingfn (this->name, GF_LOG_WARNING,
"stat-prefetch context is "
"not present in inode "
- "(ino:%"PRId64" gfid:%s)"
+ "(gfid:%s)"
" when it is supposed to be "
- "present", inode->ino,
+ "present",
uuid_utoa (inode->gfid));
}
@@ -277,8 +276,7 @@ sp_process_inode_ctx (call_frame_t *frame, xlator_t *this, loc_t *loc,
if (inode_ctx == NULL) {
gf_log_callingfn (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
- uuid_utoa (loc->inode->gfid));
+ "(gfid:%s)", uuid_utoa (loc->inode->gfid));
*can_wind = 1;
*need_unwind = 0;
op_errno = 0;
@@ -752,9 +750,8 @@ __sp_put_cache (xlator_t *this, fd_t *fd, sp_cache_t *cache)
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"cannot set stat-prefetch context in fd (%p) "
- "opened on inode (ino:%"PRId64" gfid:%s)",
- fd, fd->inode->ino,
- uuid_utoa (fd->inode->gfid));
+ "opened on inode (gfid:%s)",
+ fd, uuid_utoa (fd->inode->gfid));
sp_fd_ctx_free (fd_ctx);
goto out;
}
@@ -1048,8 +1045,7 @@ sp_lookup_helper (call_frame_t *frame,xlator_t *this, loc_t *loc,
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
- uuid_utoa (loc->inode->gfid));
+ "(gfid:%s)", uuid_utoa (loc->inode->gfid));
op_errno = EINVAL;
goto unwind;
}
@@ -1133,9 +1129,9 @@ sp_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xattr_req)
if (inode_ctx == NULL) {
op_errno = ENOMEM;
gf_log (this->name, GF_LOG_WARNING,
- "cannot create stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s)(%s)", loc->inode->ino,
- loc->inode->gfid, strerror (op_errno));
+ "cannot create stat-prefetch context in inode "
+ "(gfid:%s)(%s)",
+ uuid_utoa (loc->inode->gfid), strerror (op_errno));
goto unwind;
}
@@ -1322,8 +1318,7 @@ sp_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
gf_log (this->name, GF_LOG_WARNING,
"creation of stat-prefetch cache "
"for fd (%p) opened on inode "
- "(ino:%"PRId64", gfid:%s) failed", fd,
- fd->inode->ino,
+ "(gfid:%s) failed", fd,
uuid_utoa (fd->inode->gfid));
goto unlock;
}
@@ -1333,8 +1328,7 @@ sp_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
sp_cache_free (cache);
gf_log (this->name, GF_LOG_WARNING,
"cannot store cache in fd (%p) opened "
- "on inode (ino:%"PRId64", gfid:%s)", fd,
- fd->inode->ino,
+ "on inode (gfid:%s)", fd,
uuid_utoa (fd->inode->gfid));
goto unlock;
}
@@ -1384,8 +1378,7 @@ sp_readdir (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
if (ret < 0) {
op_errno = -ret;
gf_log (this->name, GF_LOG_WARNING, "cannot construct path on "
- "which fd (%p) is opened (fd.inode.ino = %"PRId64", "
- "fd.inode.gfid = %s) (%s)", fd, fd->inode->ino,
+ "which fd (%p) is opened (gfid = %s) (%s)", fd,
uuid_utoa (fd->inode->gfid), strerror (op_errno));
goto unwind;
}
@@ -1498,8 +1491,7 @@ sp_fd_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret,
if (op_ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"cannot set stat-prefetch context in fd (%p) opened on "
- "inode (ino:%"PRId64", gfid:%s)", fd, fd->inode->ino,
- uuid_utoa (fd->inode->gfid));
+ "inode (gfid:%s)", fd, uuid_utoa (fd->inode->gfid));
sp_fd_ctx_free (fd_ctx);
op_errno = ENOMEM;
}
@@ -1526,8 +1518,7 @@ sp_open_helper (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
- uuid_utoa (loc->inode->gfid));
+ "(gfid:%s)", uuid_utoa (loc->inode->gfid));
op_errno = EINVAL;
goto unwind;
}
@@ -1653,9 +1644,8 @@ sp_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
&looked_up, buf, NULL, &op_errno);
if (op_ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "updating stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s) (path: %s) failed (%s)",
- local->loc.inode->ino,
+ "updating stat-prefetch context in inode "
+ "(gfid:%s) (path: %s) failed (%s)",
uuid_utoa (local->loc.inode->gfid), local->loc.path,
strerror (op_errno));
goto out;
@@ -1683,8 +1673,7 @@ sp_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (op_ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"cannot set stat-prefetch context in fd (%p) opened on "
- "inode (ino:%"PRId64", gfid:%s)", fd, fd->inode->ino,
- uuid_utoa (fd->inode->gfid));
+ "inode (gfid:%s)", fd, uuid_utoa (fd->inode->gfid));
sp_fd_ctx_free (fd_ctx);
op_errno = ENOMEM;
}
@@ -1740,9 +1729,9 @@ sp_create (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
if (inode_ctx == NULL) {
op_errno = ENOMEM;
gf_log (this->name, GF_LOG_WARNING,
- "cannot create stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s)(%s)", loc->inode->ino,
- loc->inode->gfid, strerror (op_errno));
+ "cannot create stat-prefetch context in inode "
+ "(gfid:%s)(%s)", uuid_utoa (loc->inode->gfid),
+ strerror (op_errno));
goto out;
}
@@ -1776,8 +1765,7 @@ sp_opendir_helper (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd)
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
- uuid_utoa (loc->inode->gfid));
+ "(gfid:%s)", uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -1898,9 +1886,8 @@ sp_new_entry_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
&looked_up, buf, NULL, &op_errno);
if (op_ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "updating stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s) (path: %s) failed (%s)",
- local->loc.inode->ino,
+ "updating stat-prefetch context in inode "
+ "(gfid:%s) (path: %s) failed (%s)",
uuid_utoa (local->loc.inode->gfid), local->loc.path,
strerror (op_errno));
goto out;
@@ -1967,9 +1954,9 @@ sp_mkdir (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode,
if (inode_ctx == NULL) {
op_errno = ENOMEM;
gf_log (this->name, GF_LOG_WARNING,
- "cannot create stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s)(%s)", loc->inode->ino,
- loc->inode->gfid, strerror (op_errno));
+ "cannot create stat-prefetch context in inode "
+ "(gfid:%s)(%s)", uuid_utoa (loc->inode->gfid),
+ strerror (op_errno));
goto out;
}
@@ -2033,9 +2020,9 @@ sp_mknod (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode,
if (inode_ctx == NULL) {
op_errno = ENOMEM;
gf_log (this->name, GF_LOG_WARNING,
- "cannot create stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s)(%s)", loc->inode->ino,
- loc->inode->gfid, strerror (op_errno));
+ "cannot create stat-prefetch context in inode "
+ "(gfid:%s)(%s)", uuid_utoa (loc->inode->gfid),
+ strerror (op_errno));
goto out;
}
@@ -2102,9 +2089,8 @@ sp_symlink (call_frame_t *frame, xlator_t *this, const char *linkpath,
if (inode_ctx == NULL) {
op_errno = ENOMEM;
gf_log (this->name, GF_LOG_WARNING,
- "cannot create stat-prefetch context in inode (ino:%"
- PRId64", gfid:%s)(%s)", loc->inode->ino,
- loc->inode->gfid, strerror (op_errno));
+ "%s: cannot create stat-prefetch context (gfid:%s)(%s)",
+ loc->path, loc->inode->gfid, strerror (op_errno));
goto out;
}
@@ -2153,8 +2139,7 @@ sp_link_helper (call_frame_t *frame, xlator_t *this, loc_t *oldloc,
ret = inode_ctx_get (oldloc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", oldloc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (oldloc->inode->gfid));
goto unwind;
}
@@ -2258,8 +2243,7 @@ sp_truncate_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -2350,8 +2334,7 @@ sp_ftruncate (call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset)
ret = fd_ctx_get (fd, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "stat-prefetch context not "
- "set in fd (%p) opened on inode (ino:%"PRId64", "
- "gfid:%s", fd, fd->inode->ino,
+ "set in fd (%p) opened on inode (gfid:%s)", fd,
uuid_utoa (fd->inode->gfid));
goto unwind;
}
@@ -2399,8 +2382,7 @@ sp_setattr_helper (call_frame_t *frame, xlator_t *this,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
op_errno = EINVAL;
goto unwind;
@@ -2502,8 +2484,7 @@ sp_readlink_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -2612,8 +2593,7 @@ sp_unlink_helper (call_frame_t *frame, xlator_t *this, loc_t *loc)
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -2707,8 +2687,7 @@ sp_rmdir_helper (call_frame_t *frame, xlator_t *this, loc_t *loc, int flags)
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -2820,8 +2799,7 @@ sp_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
ret = fd_ctx_get (fd, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "stat-prefetch context not "
- "set in fd (%p) opened on inode (ino:%"PRId64", "
- "gfid:%s", fd, fd->inode->ino,
+ "set in fd (%p) opened on inode (gfid:%s)", fd,
uuid_utoa (fd->inode->gfid));
goto unwind;
}
@@ -2859,8 +2837,7 @@ sp_writev (call_frame_t *frame, xlator_t *this, fd_t *fd, struct iovec *vector,
ret = fd_ctx_get (fd, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "stat-prefetch context not "
- "set in fd (%p) opened on inode (ino:%"PRId64", "
- "gfid:%s", fd, fd->inode->ino,
+ "set in fd (%p) opened on inode (gfid:%s)", fd,
uuid_utoa (fd->inode->gfid));
goto unwind;
}
@@ -2898,8 +2875,7 @@ sp_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd, int32_t flags)
ret = fd_ctx_get (fd, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "stat-prefetch context not "
- "set in fd (%p) opened on inode (ino:%"PRId64", "
- "gfid:%s", fd, fd->inode->ino,
+ "set in fd (%p) opened on inode (gfid:%s)", fd,
uuid_utoa (fd->inode->gfid));
goto unwind;
}
@@ -2942,8 +2918,7 @@ sp_rename_helper (call_frame_t *frame, xlator_t *this, loc_t *oldloc,
ret = inode_ctx_get (oldloc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", oldloc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (oldloc->inode->gfid));
goto unwind;
}
@@ -3104,8 +3079,7 @@ sp_rename (call_frame_t *frame, xlator_t *this, loc_t *oldloc,loc_t *newloc)
&op_errno);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "processing stat-prefetch "
- "context in inode (ino:%"PRId64", gfid:%s) (path:%s) "
- "failed (%s)", oldloc->inode->ino,
+ "context in inode (gfid:%s) (path:%s) failed (%s)",
uuid_utoa (oldloc->inode->gfid), oldloc->path,
strerror (op_errno));
goto out;
@@ -3130,8 +3104,7 @@ sp_rename (call_frame_t *frame, xlator_t *this, loc_t *oldloc,loc_t *newloc)
if (inode_ctx == NULL) {
gf_log (this->name, GF_LOG_WARNING,
"stat-prefetch context not set in inode"
- " (ino:%"PRId64", gfid:%s) (path:%s)",
- oldloc->inode->ino,
+ " (gfid:%s) (path:%s)",
uuid_utoa (oldloc->inode->gfid),
oldloc->path);
goto out;
@@ -3192,8 +3165,7 @@ sp_setxattr_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3282,8 +3254,7 @@ sp_removexattr_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3380,8 +3351,7 @@ sp_getxattr_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3475,8 +3445,7 @@ sp_xattrop_helper (call_frame_t *frame, xlator_t *this, loc_t *loc,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3566,8 +3535,7 @@ sp_fxattrop (call_frame_t *frame, xlator_t *this, fd_t *fd,
ret = fd_ctx_get (fd, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING, "stat-prefetch context not "
- "set in fd (%p) opened on inode (ino:%"PRId64", "
- "gfid:%s", fd, fd->inode->ino,
+ "set in fd (%p) opened on inode (gfid:%s", fd,
uuid_utoa (fd->inode->gfid));
goto unwind;
}
@@ -3611,8 +3579,7 @@ sp_stat_helper (call_frame_t *frame, xlator_t *this, loc_t *loc)
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3696,8 +3663,7 @@ sp_access_helper (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t mask)
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3782,8 +3748,7 @@ sp_inodelk_helper (call_frame_t *frame, xlator_t *this, const char *volume,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}
@@ -3872,8 +3837,7 @@ sp_entrylk_helper (call_frame_t *frame, xlator_t *this, const char *volume,
ret = inode_ctx_get (loc->inode, this, &value);
if (ret == -1) {
gf_log (this->name, GF_LOG_WARNING,
- "stat-prefetch context not set in inode "
- "(ino:%"PRId64" gfid:%s)", loc->inode->ino,
+ "stat-prefetch context not set in inode (gfid:%s)",
uuid_utoa (loc->inode->gfid));
goto unwind;
}