[PATCH 36/8] ktxnmgrd.c cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



orig:	total: 8 errors, 2 warnings, 215 lines checked
patched:Your patch has no obvious style problems and is ready for
submission.

Signed-off-by: Dushan Tcholich <dusanc@xxxxxxxxx>
--- ktxnmgrd.c.orig	2007-10-25 11:38:48.000000000 +0200
+++ ktxnmgrd.c	2007-10-25 11:41:53.000000000 +0200
@@ -44,9 +44,9 @@ static int scan_mgr(struct super_block *
  * state. This serves no useful purpose whatsoever, but also costs nothing. May
  * be it will make lonely system administrator feeling less alone at 3 A.M.
  */
-#define set_comm( state ) 						\
-	snprintf( current -> comm, sizeof( current -> comm ),	\
-		  "%s:%s:%s", __FUNCTION__, (super)->s_id, ( state ) )
+#define set_comm(state) 						\
+	snprintf(current->comm, sizeof(current->comm),	\
+		  "%s:%s:%s", __FUNCTION__, (super)->s_id, (state))
 
 /**
  * ktxnmgrd - kernel txnmgr daemon
@@ -78,10 +78,11 @@ static int ktxnmgrd(void *arg)
 		{
 			DEFINE_WAIT(__wait);
 
-			prepare_to_wait(&ctx->wait, &__wait, TASK_INTERRUPTIBLE);
-			if (kthread_should_stop()) {
+			prepare_to_wait(&ctx->wait, &__wait,
+					TASK_INTERRUPTIBLE);
+			if (kthread_should_stop())
 				done = 1;
-			} else
+			else
 				schedule_timeout(ctx->timeout);
 			finish_wait(&ctx->wait, &__wait);
 		}

[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux