From 82c0df9941abfb4836947fce1ff9da266dbd7499 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Wed, 28 Oct 2009 17:04:33 +0000 Subject: Print inodelks in and out if option trace is on. Signed-off-by: Anand V. Avati BUG: 306 (Enhance locks to aid debugging) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=306 --- xlators/features/locks/src/posix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/features/locks/src/posix.c') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index f2371625197..21f1870b88a 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -645,7 +645,7 @@ pl_lk (call_frame_t *frame, xlator_t *this, goto unwind; } - pl_trace_in (this, frame, fd, NULL, cmd, flock); + pl_trace_in (this, frame, fd, NULL, cmd, flock, NULL); switch (cmd) { @@ -680,7 +680,7 @@ pl_lk (call_frame_t *frame, xlator_t *this, if (ret == -1) { if (can_block) { - pl_trace_block (this, frame, fd, NULL, cmd, flock); + pl_trace_block (this, frame, fd, NULL, cmd, flock, NULL); goto out; } gf_log (this->name, GF_LOG_DEBUG, "returning EAGAIN"); @@ -691,7 +691,7 @@ pl_lk (call_frame_t *frame, xlator_t *this, } unwind: - pl_trace_out (this, frame, fd, NULL, cmd, flock, op_ret, op_errno); + pl_trace_out (this, frame, fd, NULL, cmd, flock, op_ret, op_errno, NULL); pl_update_refkeeper (this, fd->inode); STACK_UNWIND_STRICT (lk, frame, op_ret, op_errno, flock); out: -- cgit