From aa701e2f607902628fce196de3eb0402aede7736 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 16 Oct 2009 09:13:22 +0000 Subject: indentation fixes to conform to coding standards in locks Signed-off-by: Anand V. Avati BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- xlators/features/locks/src/entrylk.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'xlators/features/locks/src/entrylk.c') diff --git a/xlators/features/locks/src/entrylk.c b/xlators/features/locks/src/entrylk.c index e22a8305d..4e038809c 100644 --- a/xlators/features/locks/src/entrylk.c +++ b/xlators/features/locks/src/entrylk.c @@ -253,10 +253,10 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type, default: - gf_log (this->name, GF_LOG_DEBUG, - "Invalid type for entrylk specified: %d", type); - ret = -EINVAL; - goto out; + gf_log (this->name, GF_LOG_DEBUG, + "Invalid type for entrylk specified: %d", type); + ret = -EINVAL; + goto out; } ret = 0; @@ -430,8 +430,8 @@ unlock: /* Common entrylk code called by pl_entrylk and pl_fentrylk */ int pl_common_entrylk (call_frame_t *frame, xlator_t *this, - const char *volume, inode_t *inode, const char *basename, - entrylk_cmd cmd, entrylk_type type) + const char *volume, inode_t *inode, const char *basename, + entrylk_cmd cmd, entrylk_type type) { int32_t op_ret = -1; int32_t op_errno = 0; @@ -467,8 +467,8 @@ pl_common_entrylk (call_frame_t *frame, xlator_t *this, if (pid == 0) { /* - this is a special case that means release - all locks from this transport + this is a special case that means release + all locks from this transport */ gf_log (this->name, GF_LOG_TRACE, @@ -516,7 +516,7 @@ pl_common_entrylk (call_frame_t *frame, xlator_t *this, case ENTRYLK_UNLOCK: pthread_mutex_lock (&pinode->mutex); { - unlocked = __unlock_name (dom, basename, type); + unlocked = __unlock_name (dom, basename, type); } pthread_mutex_unlock (&pinode->mutex); @@ -554,9 +554,9 @@ pl_entrylk (call_frame_t *frame, xlator_t *this, entrylk_cmd cmd, entrylk_type type) { - pl_common_entrylk (frame, this, volume, loc->inode, basename, cmd, type); + pl_common_entrylk (frame, this, volume, loc->inode, basename, cmd, type); - return 0; + return 0; } @@ -568,11 +568,11 @@ pl_entrylk (call_frame_t *frame, xlator_t *this, int pl_fentrylk (call_frame_t *frame, xlator_t *this, - const char *volume, fd_t *fd, const char *basename, - entrylk_cmd cmd, entrylk_type type) + const char *volume, fd_t *fd, const char *basename, + entrylk_cmd cmd, entrylk_type type) { - pl_common_entrylk (frame, this, volume, fd->inode, basename, cmd, type); + pl_common_entrylk (frame, this, volume, fd->inode, basename, cmd, type); - return 0; + return 0; } -- cgit