Whamcloud - gitweb
LU-1347 build: use kernel checkpatch.pl and check for tabs
[fs/lustre-release.git] / lustre / llite / llite_close.c
index 000e2c4..0b2b9ed 100644 (file)
@@ -28,6 +28,8 @@
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright (c) 2011, 2012, Whamcloud, Inc.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -42,7 +44,6 @@
 
 #define DEBUG_SUBSYSTEM S_LLITE
 
-//#include <lustre_mdc.h>
 #include <lustre_lite.h>
 #include "llite_internal.h"
 
@@ -96,10 +97,10 @@ void ll_queue_done_writing(struct inode *inode, unsigned long flags)
                 struct ll_close_queue *lcq = ll_i2sbi(inode)->ll_lcq;
 
                 if (lli->lli_flags & LLIF_MDS_SIZE_LOCK)
-                         CWARN("ino %lu/%u(flags %lu) som valid it just after "
-                               "recovery\n",
-                               inode->i_ino, inode->i_generation,
-                               lli->lli_flags);
+                        CWARN("ino %lu/%u(flags %u) som valid it just after "
+                              "recovery\n",
+                              inode->i_ino, inode->i_generation,
+                              lli->lli_flags);
                 /* DONE_WRITING is allowed and inode has no dirty page. */
                 cfs_spin_lock(&lcq->lcq_lock);
 
@@ -132,7 +133,7 @@ void ll_done_writing_attr(struct inode *inode, struct md_op_data *op_data)
         op_data->op_flags |= MF_SOM_CHANGE;
         /* Check if Size-on-MDS attributes are valid. */
         if (lli->lli_flags & LLIF_MDS_SIZE_LOCK)
-                CERROR("ino %lu/%u(flags %lu) som valid it just after "
+                CERROR("ino %lu/%u(flags %u) som valid it just after "
                        "recovery\n", inode->i_ino, inode->i_generation,
                        lli->lli_flags);
 
@@ -230,7 +231,7 @@ int ll_som_update(struct inode *inode, struct md_op_data *op_data)
 
         LASSERT(op_data != NULL);
         if (lli->lli_flags & LLIF_MDS_SIZE_LOCK)
-                CERROR("ino %lu/%u(flags %lu) som valid it just after "
+                CERROR("ino %lu/%u(flags %u) som valid it just after "
                        "recovery\n", inode->i_ino, inode->i_generation,
                        lli->lli_flags);
 
@@ -401,7 +402,7 @@ int ll_close_thread_start(struct ll_close_queue **lcq_ret)
         cfs_waitq_init(&lcq->lcq_waitq);
         cfs_init_completion(&lcq->lcq_comp);
 
-        pid = cfs_kernel_thread(ll_close_thread, lcq, 0);
+        pid = cfs_create_thread(ll_close_thread, lcq, 0);
         if (pid < 0) {
                 OBD_FREE(lcq, sizeof(*lcq));
                 return pid;