]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: staging: lustre: Fix space required after that ',' errors
authorGreg Donald <gdonald@gmail.com>
Tue, 26 Aug 2014 01:07:19 +0000 (20:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 19:05:39 +0000 (12:05 -0700)
Fix checkpatch.pl space required after that ',' errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
49 files changed:
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_proto.c
drivers/staging/lustre/lnet/selftest/console.c
drivers/staging/lustre/lustre/include/interval_tree.h
drivers/staging/lustre/lustre/include/lclient.h
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/include/linux/lustre_fsfilt.h
drivers/staging/lustre/lustre/include/lprocfs_status.h
drivers/staging/lustre/lustre/include/lu_object.h
drivers/staging/lustre/lustre/include/lustre/lustre_idl.h
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/include/lustre_net.h
drivers/staging/lustre/lustre/include/lustre_ver.h
drivers/staging/lustre/lustre/include/obd.h
drivers/staging/lustre/lustre/include/obd_class.h
drivers/staging/lustre/lustre/include/obd_support.h
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c
drivers/staging/lustre/lustre/ldlm/ldlm_request.c
drivers/staging/lustre/lustre/libcfs/debug.c
drivers/staging/lustre/lustre/libcfs/hash.c
drivers/staging/lustre/lustre/libcfs/module.c
drivers/staging/lustre/lustre/libcfs/upcall_cache.c
drivers/staging/lustre/lustre/llite/dir.c
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/lproc_llite.c
drivers/staging/lustre/lustre/llite/namei.c
drivers/staging/lustre/lustre/llite/rw26.c
drivers/staging/lustre/lustre/llite/statahead.c
drivers/staging/lustre/lustre/llite/vvp_dev.c
drivers/staging/lustre/lustre/llite/vvp_io.c
drivers/staging/lustre/lustre/lmv/lmv_obd.c
drivers/staging/lustre/lustre/lov/lov_pack.c
drivers/staging/lustre/lustre/lov/lov_request.c
drivers/staging/lustre/lustre/obdclass/genops.c
drivers/staging/lustre/lustre/obdclass/llog_cat.c
drivers/staging/lustre/lustre/obdclass/llog_lvfs.c
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
drivers/staging/lustre/lustre/obdclass/obd_mount.c
drivers/staging/lustre/lustre/osc/lproc_osc.c
drivers/staging/lustre/lustre/osc/osc_internal.h
drivers/staging/lustre/lustre/osc/osc_request.c
drivers/staging/lustre/lustre/ptlrpc/events.c
drivers/staging/lustre/lustre/ptlrpc/import.c
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
drivers/staging/lustre/lustre/ptlrpc/pinger.c
drivers/staging/lustre/lustre/ptlrpc/sec_null.c
drivers/staging/lustre/lustre/ptlrpc/service.c

index f10650fdabf2c081098fa709d1bd18e31719d171..8f5cdd584f85b5ed888dbb8550f91ccc05fd8385 100644 (file)
@@ -1202,7 +1202,7 @@ kiblnd_map_rx_descs(kib_conn_t *conn)
                                                   rx->rx_msgaddr));
                KIBLND_UNMAP_ADDR_SET(rx, rx_msgunmap, rx->rx_msgaddr);
 
-               CDEBUG(D_NET,"rx %d: %p %#llx(%#llx)\n",
+               CDEBUG(D_NET, "rx %d: %p %#llx(%#llx)\n",
                       i, rx->rx_msg, rx->rx_msgaddr,
                       lnet_page2phys(pg) + pg_off);
 
index 306d72876432a730baa16cda698f32414facfd5c..35d13e098f142f24cf5be4f19368c1031857e8f6 100644 (file)
@@ -2080,7 +2080,7 @@ kiblnd_connreq_done(kib_conn_t *conn, int status)
 
        active = (conn->ibc_state == IBLND_CONN_ACTIVE_CONNECT);
 
-       CDEBUG(D_NET,"%s: active(%d), version(%x), status(%d)\n",
+       CDEBUG(D_NET, "%s: active(%d), version(%x), status(%d)\n",
               libcfs_nid2str(peer->ibp_nid), active,
               conn->ibc_version, status);
 
@@ -2848,7 +2848,7 @@ kiblnd_cm_callback(struct rdma_cm_id *cmid, struct rdma_cm_event *event)
        case RDMA_CM_EVENT_ADDR_RESOLVED:
                peer = (kib_peer_t *)cmid->context;
 
-               CDEBUG(D_NET,"%s Addr resolved: %d\n",
+               CDEBUG(D_NET, "%s Addr resolved: %d\n",
                       libcfs_nid2str(peer->ibp_nid), event->status);
 
                if (event->status != 0) {
@@ -2878,7 +2878,7 @@ kiblnd_cm_callback(struct rdma_cm_id *cmid, struct rdma_cm_event *event)
 
        case RDMA_CM_EVENT_ROUTE_RESOLVED:
                peer = (kib_peer_t *)cmid->context;
-               CDEBUG(D_NET,"%s Route resolved: %d\n",
+               CDEBUG(D_NET, "%s Route resolved: %d\n",
                       libcfs_nid2str(peer->ibp_nid), event->status);
 
                if (event->status == 0)
index a60bfc99cd1676cb2c754c7bb96b2c19dd05f251..9dde548070afab92a95ea9cd2d8f3373a73c5fc6 100644 (file)
@@ -495,7 +495,8 @@ ksocknal_send_hello_v1 (ksock_conn_t *conn, ksock_hello_msg_t *hello)
        hdr->msg.hello.type = cpu_to_le32 (hello->kshm_ctype);
        hdr->msg.hello.incarnation = cpu_to_le64 (hello->kshm_src_incarnation);
 
-       rc = libcfs_sock_write(sock, hdr, sizeof(*hdr),lnet_acceptor_timeout());
+       rc = libcfs_sock_write(sock, hdr, sizeof(*hdr),
+                              lnet_acceptor_timeout());
 
        if (rc != 0) {
                CNETERR("Error %d sending HELLO hdr to %pI4h/%d\n",
@@ -568,7 +569,8 @@ ksocknal_send_hello_v2 (ksock_conn_t *conn, ksock_hello_msg_t *hello)
 }
 
 static int
-ksocknal_recv_hello_v1(ksock_conn_t *conn, ksock_hello_msg_t *hello,int timeout)
+ksocknal_recv_hello_v1(ksock_conn_t *conn, ksock_hello_msg_t *hello,
+                      int timeout)
 {
        struct socket   *sock = conn->ksnc_sock;
        lnet_hdr_t        *hdr;
index 89e1b4bd5a508f60b3a9218a7f49175d884307f7..68174fd0713916ced3d12683e9024989db9df6c2 100644 (file)
@@ -910,7 +910,7 @@ lstcon_batch_list(int index, int len, char *name_up)
 
        list_for_each_entry(bat, &console_session.ses_bat_list, bat_link) {
                if (index-- == 0) {
-                       return copy_to_user(name_up,bat->bat_name, len) ?
+                       return copy_to_user(name_up, bat->bat_name, len) ?
                               -EFAULT: 0;
                }
        }
index 1815783edae6590850f9699867c27753fed5d31f..bf9027d5f7733d03c36d99061221c56889d89824 100644 (file)
@@ -112,7 +112,7 @@ enum interval_iter interval_search(struct interval_node *root,
 enum interval_iter interval_iterate(struct interval_node *root,
                                    interval_callback_t func, void *data);
 enum interval_iter interval_iterate_reverse(struct interval_node *root,
-                                   interval_callback_t func,void *data);
+                                   interval_callback_t func, void *data);
 
 void interval_expand(struct interval_node *root,
                     struct interval_node_extent *ext,
index fa45c94b814a43c25d857cfd4a5fbb79ea7eaf5f..b3b841f4d6e6c73503accd0a9c1ec4c5dff701d5 100644 (file)
@@ -279,7 +279,7 @@ int ccc_req_init(const struct lu_env *env, struct cl_device *dev,
 void ccc_umount(const struct lu_env *env, struct cl_device *dev);
 int ccc_global_init(struct lu_device_type *device_type);
 void ccc_global_fini(struct lu_device_type *device_type);
-int ccc_object_init0(const struct lu_env *env,struct ccc_object *vob,
+int ccc_object_init0(const struct lu_env *env, struct ccc_object *vob,
                     const struct cl_object_conf *conf);
 int ccc_object_init(const struct lu_env *env, struct lu_object *obj,
                    const struct lu_object_conf *conf);
@@ -319,11 +319,12 @@ int ccc_transient_page_prep(const struct lu_env *env,
                            struct cl_io *io);
 void ccc_lock_delete(const struct lu_env *env,
                     const struct cl_lock_slice *slice);
-void ccc_lock_fini(const struct lu_env *env,struct cl_lock_slice *slice);
-int ccc_lock_enqueue(const struct lu_env *env,const struct cl_lock_slice *slice,
+void ccc_lock_fini(const struct lu_env *env, struct cl_lock_slice *slice);
+int ccc_lock_enqueue(const struct lu_env *env,
+                    const struct cl_lock_slice *slice,
                     struct cl_io *io, __u32 enqflags);
-int ccc_lock_unuse(const struct lu_env *env,const struct cl_lock_slice *slice);
-int ccc_lock_wait(const struct lu_env *env,const struct cl_lock_slice *slice);
+int ccc_lock_unuse(const struct lu_env *env, const struct cl_lock_slice *slice);
+int ccc_lock_wait(const struct lu_env *env, const struct cl_lock_slice *slice);
 int ccc_lock_fits_into(const struct lu_env *env,
                       const struct cl_lock_slice *slice,
                       const struct cl_lock_descr *need,
@@ -348,7 +349,8 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
                  struct cl_io *io, loff_t start, size_t count, int *exceed);
 void ccc_req_completion(const struct lu_env *env,
                        const struct cl_req_slice *slice, int ioret);
-void ccc_req_attr_set(const struct lu_env *env,const struct cl_req_slice *slice,
+void ccc_req_attr_set(const struct lu_env *env,
+                     const struct cl_req_slice *slice,
                      const struct cl_object *obj,
                      struct cl_req_attr *oa, u64 flags);
 
index 8621bac5058bc6e6b2ac8f9288c3d046e062e238..f9522defc635aab87b8e0eaa6edb7fe23ce029e6 100644 (file)
@@ -99,17 +99,19 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
 #define FS_HAS_FIEMAP                  (0)
 #endif
 
-#define ll_vfs_rmdir(dir,entry,mnt)         vfs_rmdir(dir,entry)
-#define ll_vfs_mkdir(inode,dir,mnt,mode)       vfs_mkdir(inode,dir,mode)
-#define ll_vfs_link(old,mnt,dir,new,mnt1)       vfs_link(old,dir,new)
-#define ll_vfs_unlink(inode,entry,mnt)   vfs_unlink(inode,entry)
-#define ll_vfs_mknod(dir,entry,mnt,mode,dev)    vfs_mknod(dir,entry,mode,dev)
-#define ll_security_inode_unlink(dir,entry,mnt) security_inode_unlink(dir,entry)
+#define ll_vfs_rmdir(dir, entry, mnt)       vfs_rmdir(dir, entry)
+#define ll_vfs_mkdir(inode, dir, mnt, mode)    vfs_mkdir(inode, dir, mode)
+#define ll_vfs_link(old, mnt, dir, new, mnt1)       vfs_link(old, dir, new)
+#define ll_vfs_unlink(inode, entry, mnt)         vfs_unlink(inode, entry)
+#define ll_vfs_mknod(dir, entry, mnt, mode, dev) \
+                    vfs_mknod(dir, entry, mode, dev)
+#define ll_security_inode_unlink(dir, entry, mnt) \
+                                security_inode_unlink(dir, entry)
 #define ll_vfs_rename(old, old_dir, mnt, new, new_dir, mnt1) \
                vfs_rename(old, old_dir, new, new_dir, NULL, 0)
 
-#define cfs_bio_io_error(a,b)   bio_io_error((a))
-#define cfs_bio_endio(a,b,c)    bio_endio((a),(c))
+#define cfs_bio_io_error(a, b)   bio_io_error((a))
+#define cfs_bio_endio(a, b, c)    bio_endio((a), (c))
 
 #define cfs_fs_pwd(fs)       ((fs)->pwd.dentry)
 #define cfs_fs_mnt(fs)       ((fs)->pwd.mnt)
index d5c97beb66f54aaa45909f6c4b0345bc98bdef9b..18c06fbfa7142eef054005ad538051d0ff64c2e8 100644 (file)
@@ -59,7 +59,7 @@ struct fsfilt_operations {
        char   *(* fs_getlabel)(struct super_block *sb);
        void   *(* fs_start)(struct inode *inode, int op, void *desc_private,
                             int logs);
-       int     (* fs_commit)(struct inode *inode, void *handle,int force_sync);
+       int     (*fs_commit)(struct inode *inode, void *handle, int force_sync);
        int     (* fs_map_inode_pages)(struct inode *inode, struct page **page,
                                       int pages, unsigned long *blocks,
                                       int create, struct mutex *sem);
@@ -155,7 +155,8 @@ static inline int fsfilt_write_record(struct obd_device *obd, struct file *file,
                                      void *buf, loff_t size, loff_t *offs,
                                      int force_sync)
 {
-       return obd->obd_fsops->fs_write_record(file, buf, size,offs,force_sync);
+       return obd->obd_fsops->fs_write_record(file, buf, size, offs,
+                                              force_sync);
 }
 
 static inline int fsfilt_setup(struct obd_device *obd, struct super_block *fs)
index a8b68c175f0cda069bafdf154de9b64911ac4704..34cf7720d74513d83a0be5ed71ea06ee38e9f6ee 100644 (file)
@@ -351,7 +351,7 @@ struct obd_histogram;
 
 /* Days / hours / mins / seconds format */
 struct dhms {
-       int d,h,m,s;
+       int d, h, m, s;
 };
 static inline void s2dhms(struct dhms *ts, time_t secs)
 {
@@ -864,7 +864,8 @@ static inline void lprocfs_free_md_stats(struct obd_device *obddev)
 struct obd_export;
 static inline int lprocfs_add_clear_entry(struct obd_export *exp)
 { return 0; }
-static inline int lprocfs_exp_setup(struct obd_export *exp,lnet_nid_t *peer_nid,
+static inline int lprocfs_exp_setup(struct obd_export *exp,
+                                   lnet_nid_t *peer_nid,
                                    int *newnid)
 { return 0; }
 static inline int lprocfs_exp_cleanup(struct obd_export *exp)
index a6ce42a93d433fdf496f07d16493a4083b549d1e..6015ee5c4b642cc23c205f93c763b4639ed1ccde 100644 (file)
@@ -1146,8 +1146,8 @@ struct lu_context_key {
        struct __##mod##__dummy_fini {;} /* semicolon catcher */
 
 #define LU_KEY_INIT_FINI(mod, type)   \
-       LU_KEY_INIT(mod,type);  \
-       LU_KEY_FINI(mod,type)
+       LU_KEY_INIT(mod, type); \
+       LU_KEY_FINI(mod, type)
 
 #define LU_CONTEXT_KEY_DEFINE(mod, tags)               \
        struct lu_context_key mod##_thread_key = {      \
index 570f54f794f29000f685cfde7de85a841b65725b..fd6dc53a74e2e60d950da7aa9efc0a5f507c299f 100644 (file)
@@ -1355,8 +1355,9 @@ extern void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb);
 #define CLIENT_CONNECT_MDT_REQD (OBD_CONNECT_IBITS | OBD_CONNECT_FID | \
                                 OBD_CONNECT_FULL20)
 
-#define OBD_OCD_VERSION(major,minor,patch,fix) (((major)<<24) + ((minor)<<16) +\
-                                               ((patch)<<8) + (fix))
+#define OBD_OCD_VERSION(major, minor, patch, fix) (((major)<<24) + \
+                                                 ((minor)<<16) + \
+                                                 ((patch)<<8) + (fix))
 #define OBD_OCD_VERSION_MAJOR(version) ((int)((version)>>24)&255)
 #define OBD_OCD_VERSION_MINOR(version) ((int)((version)>>16)&255)
 #define OBD_OCD_VERSION_PATCH(version) ((int)((version)>>8)&255)
@@ -2855,7 +2856,7 @@ extern void lustre_swab_ldlm_request (struct ldlm_request *rq);
 
 /* If LDLM_ENQUEUE, 1 slot is already occupied, 1 is available.
  * Otherwise, 2 are available. */
-#define ldlm_request_bufsize(count,type)                               \
+#define ldlm_request_bufsize(count, type)                              \
 ({                                                                   \
        int _avail = LDLM_LOCKREQ_HANDLES;                            \
        _avail -= (type == LDLM_ENQUEUE ? LDLM_ENQUEUE_CANCEL_OFF : 0); \
index 28a6a832ea133f1ae0090787d6dc8b08809ffb9a..89794fdfec9d2f34931198301904b4b586149b2b 100644 (file)
@@ -841,7 +841,7 @@ struct ioc_data_version {
                                version. Dirty caches are left unchanged. */
 
 #ifndef offsetof
-# define offsetof(typ,memb)     ((unsigned long)((char *)&(((typ *)0)->memb)))
+# define offsetof(typ, memb)     ((unsigned long)((char *)&(((typ *)0)->memb)))
 #endif
 
 #define dot_lustre_name ".lustre"
index 3ff766e08506d9aaf7a75ca44f6da21fcf241ebd..9595d4bbd824b2e4e5c87ecd284b48be24368d43 100644 (file)
@@ -2912,11 +2912,13 @@ __u32 lustre_msg_calc_cksum(struct lustre_msg *msg, int compat18);
 # warning "remove checksum compatibility support for b1_8"
 __u32 lustre_msg_calc_cksum(struct lustre_msg *msg);
 #endif
-void lustre_msg_set_handle(struct lustre_msg *msg,struct lustre_handle *handle);
+void lustre_msg_set_handle(struct lustre_msg *msg,
+                          struct lustre_handle *handle);
 void lustre_msg_set_type(struct lustre_msg *msg, __u32 type);
 void lustre_msg_set_opc(struct lustre_msg *msg, __u32 opc);
 void lustre_msg_set_last_xid(struct lustre_msg *msg, __u64 last_xid);
-void lustre_msg_set_last_committed(struct lustre_msg *msg,__u64 last_committed);
+void lustre_msg_set_last_committed(struct lustre_msg *msg,
+                                  __u64 last_committed);
 void lustre_msg_set_versions(struct lustre_msg *msg, __u64 *versions);
 void lustre_msg_set_transno(struct lustre_msg *msg, __u64 transno);
 void lustre_msg_set_status(struct lustre_msg *msg, __u32 status);
index dc187b8f741f7a91bc237d5b6598e3cbcbb23513..caa4da12f37ae3813220fc22121c0fe58ceb7e85 100644 (file)
@@ -10,7 +10,9 @@
 #define LUSTRE_FIX 0
 #define LUSTRE_VERSION_STRING "2.3.64"
 
-#define LUSTRE_VERSION_CODE OBD_OCD_VERSION(LUSTRE_MAJOR,LUSTRE_MINOR,LUSTRE_PATCH,LUSTRE_FIX)
+#define LUSTRE_VERSION_CODE OBD_OCD_VERSION(LUSTRE_MAJOR, \
+                                           LUSTRE_MINOR, LUSTRE_PATCH, \
+                                           LUSTRE_FIX)
 
 /* liblustre clients are only allowed to connect if their LUSTRE_FIX mismatches
  * by this amount (set in lustre/autoconf/lustre-version.ac). */
index 0c2a9f16f38a6b13a8b76cce282bd8e504ef1c1b..9f13878798efa07939584bc28ef90d2ec70d9cc3 100644 (file)
@@ -212,7 +212,7 @@ static inline int lov_lum_swab_if_needed(struct lov_user_md_v3 *lumv3,
                                         int *lmm_magic,
                                         struct lov_user_md *lum)
 {
-       if (lum && copy_from_user(lumv3, lum,sizeof(struct lov_user_md_v1)))
+       if (lum && copy_from_user(lumv3, lum, sizeof(struct lov_user_md_v1)))
                return -EFAULT;
 
        *lmm_magic = lumv3->lmm_magic;
@@ -745,7 +745,8 @@ static inline void oti_init(struct obd_trans_info *oti,
                oti->oti_conn_cnt = lustre_msg_get_conn_cnt(req->rq_reqmsg);
 }
 
-static inline void oti_alloc_cookies(struct obd_trans_info *oti,int num_cookies)
+static inline void oti_alloc_cookies(struct obd_trans_info *oti,
+                                    int num_cookies)
 {
        if (!oti)
                return;
@@ -1183,7 +1184,8 @@ struct obd_ops {
                              __u64 max_age, struct ptlrpc_request_set *set);
        int (*o_packmd)(struct obd_export *exp, struct lov_mds_md **disk_tgt,
                        struct lov_stripe_md *mem_src);
-       int (*o_unpackmd)(struct obd_export *exp,struct lov_stripe_md **mem_tgt,
+       int (*o_unpackmd)(struct obd_export *exp,
+                         struct lov_stripe_md **mem_tgt,
                          struct lov_mds_md *disk_src, int disk_len);
        int (*o_preallocate)(struct lustre_handle *, u32 *req, u64 *ids);
        /* FIXME: add fid capability support for create & destroy! */
index a1ce07e24b78fac5959ee74fb696d7bf13d0d02b..73ec108fde6076404d3876e074c0b4606219a1cc 100644 (file)
@@ -943,7 +943,7 @@ static inline struct obd_uuid *obd_get_uuid(struct obd_export *exp)
  *    by obd are returned.
  */
 static inline int obd_connect(const struct lu_env *env,
-                             struct obd_export **exp,struct obd_device *obd,
+                             struct obd_export **exp, struct obd_device *obd,
                              struct obd_uuid *cluuid,
                              struct obd_connect_data *data,
                              void *localdata)
@@ -1165,7 +1165,8 @@ static inline int obd_statfs_async(struct obd_export *exp,
        if (cfs_time_before_64(obd->obd_osfs_age, max_age)) {
                rc = OBP(obd, statfs_async)(exp, oinfo, max_age, rqset);
        } else {
-               CDEBUG(D_SUPER,"%s: use %p cache blocks %llu/%llu objects %llu/%llu\n",
+               CDEBUG(D_SUPER,
+                      "%s: use %p cache blocks %llu/%llu objects %llu/%llu\n",
                       obd->obd_name, &obd->obd_osfs,
                       obd->obd_osfs.os_bavail, obd->obd_osfs.os_blocks,
                       obd->obd_osfs.os_ffree, obd->obd_osfs.os_files);
index 62c0ecf613889329c5702d366f4113e758410a27..c7fae676db280b9d24bce139828e1462fcdf9b0f 100644 (file)
@@ -127,12 +127,12 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type,
  /* Max connect interval for nonresponsive servers; ~50s to avoid building up
     connect requests in the LND queues, but within obd_timeout so we don't
     miss the recovery window */
-#define CONNECTION_SWITCH_MAX min(50U, max(CONNECTION_SWITCH_MIN,obd_timeout))
+#define CONNECTION_SWITCH_MAX min(50U, max(CONNECTION_SWITCH_MIN, obd_timeout))
 #define CONNECTION_SWITCH_INC 5  /* Connection timeout backoff */
 /* In general this should be low to have quick detection of a system
    running on a backup server. (If it's too low, import_select_connection
    will increase the timeout anyhow.)  */
-#define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN,obd_timeout/20)
+#define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN, obd_timeout/20)
 /* The max delay between connects is SWITCH_MAX + SWITCH_INC + INITIAL */
 #define RECONNECT_DELAY_MAX (CONNECTION_SWITCH_MAX + CONNECTION_SWITCH_INC + \
                             INITIAL_CONNECT_TIMEOUT)
index 3143222d162f6b814aecd8068a81c29c048f2eb5..699c6cdffd1d497c9f244c24703b67e3696ee1de 100644 (file)
@@ -970,7 +970,8 @@ static void search_granted_lock(struct list_head *queue,
                        prev->policy_link = &req->l_sl_policy;
                        return;
                } else {
-                       LDLM_ERROR(lock,"is not LDLM_PLAIN or LDLM_IBITS lock");
+                       LDLM_ERROR(lock,
+                                  "is not LDLM_PLAIN or LDLM_IBITS lock");
                        LBUG();
                }
        }
index 7fd4d67a8b52003d5538df6cb0f0c864b1dab611..07de715eeb25fc81461fe3a3fc42ea0eea7be4f9 100644 (file)
@@ -510,7 +510,7 @@ static void failed_lock_cleanup(struct ldlm_namespace *ns,
 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
                          ldlm_type_t type, __u8 with_policy, ldlm_mode_t mode,
                          __u64 *flags, void *lvb, __u32 lvb_len,
-                         struct lustre_handle *lockh,int rc)
+                         struct lustre_handle *lockh, int rc)
 {
        struct ldlm_namespace *ns = exp->exp_obd->obd_namespace;
        int is_replay = *flags & LDLM_FL_REPLAY;
@@ -629,7 +629,8 @@ int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
                                                &reply->lock_desc.l_policy_data,
                                                &lock->l_policy_data);
                if (type != LDLM_PLAIN)
-                       LDLM_DEBUG(lock,"client-side enqueue, new policy data");
+                       LDLM_DEBUG(lock,
+                                  "client-side enqueue, new policy data");
        }
 
        if ((*flags) & LDLM_FL_AST_SENT ||
index 5a5b7fcb26308b3f4aef8aeee69f8098d0556d60..48c5d5512235b4f6717818f2316c779f27c7f2c0 100644 (file)
@@ -441,9 +441,11 @@ int libcfs_debug_clear_buffer(void)
 #define DEBUG_SUBSYSTEM S_UNDEFINED
 int libcfs_debug_mark_buffer(const char *text)
 {
-       CDEBUG(D_TRACE,"***************************************************\n");
+       CDEBUG(D_TRACE,
+              "***************************************************\n");
        LCONSOLE(D_WARNING, "DEBUG MARKER: %s\n", text);
-       CDEBUG(D_TRACE,"***************************************************\n");
+       CDEBUG(D_TRACE,
+              "***************************************************\n");
 
        return 0;
 }
index 4228384da1fe84b0fcd92841c48a7a0c189e5574..3b1d24c88dd1ff16ad75e4df6da6bc12236c57db 100644 (file)
@@ -2092,7 +2092,8 @@ int cfs_hash_debug_str(struct cfs_hash *hs, struct seq_file *m)
                        maxdepb = ffz(~maxdep);
                }
                total += bd.bd_bucket->hsb_count;
-               dist[min(__cfs_fls(bd.bd_bucket->hsb_count/max(theta,1)),7)]++;
+               dist[min(__cfs_fls(bd.bd_bucket->hsb_count/max(theta,
+                                                              1)), 7)]++;
                cfs_hash_bd_unlock(hs, &bd, 0);
        }
 
index 3396858098b0bb46d40e7f4f801271fe9f03f82c..6b9b1d24d0a599fb11de2980cd836cb5ad0e1c81 100644 (file)
@@ -217,7 +217,7 @@ int libcfs_deregister_ioctl(struct libcfs_ioctl_handler *hand)
 }
 EXPORT_SYMBOL(libcfs_deregister_ioctl);
 
-static int libcfs_ioctl_int(struct cfs_psdev_file *pfile,unsigned long cmd,
+static int libcfs_ioctl_int(struct cfs_psdev_file *pfile, unsigned long cmd,
                            void *arg, struct libcfs_ioctl_data *data)
 {
        int err = -EINVAL;
index 88af82034e9273f27f4a9a3909ce7114f5c636b6..0e955886b99086f958c904a92bb9b04dab0e968c 100644 (file)
@@ -316,7 +316,7 @@ int upcall_cache_downcall(struct upcall_cache *cache, __u32 err, __u64 key,
        }
 
        if (!UC_CACHE_IS_ACQUIRING(entry)) {
-               CDEBUG(D_RPCTRACE,"%s: found uptodate entry %p (key %llu)\n",
+               CDEBUG(D_RPCTRACE, "%s: found uptodate entry %p (key %llu)\n",
                       cache->uc_name, entry, entry->ue_key);
                GOTO(out, rc = 0);
        }
index 701c373670aba4a653e1fe8531af0225c39ad4c8..71276b14665e70527f72049bbc7701217de6cf78 100644 (file)
@@ -1721,7 +1721,7 @@ out_quotactl_18:
 
                rc = quotactl_ioctl(sbi, qctl);
 
-               if (rc == 0 && copy_to_user((void *)arg,qctl,sizeof(*qctl)))
+               if (rc == 0 && copy_to_user((void *)arg, qctl, sizeof(*qctl)))
                        rc = -EFAULT;
 
 out_quotactl:
index 8fc68471f54d8594b2e8b70bd455c7b91cbdb117..786a7d80ad4896e63d8355bdc164c84151c66ff4 100644 (file)
@@ -652,7 +652,7 @@ static inline struct inode *ll_info2i(struct ll_inode_info *lli)
 }
 
 __u32 ll_i2suppgid(struct inode *i);
-void ll_i2gids(__u32 *suppgids, struct inode *i1,struct inode *i2);
+void ll_i2gids(__u32 *suppgids, struct inode *i1, struct inode *i2);
 
 static inline int ll_need_32bit_api(struct ll_sb_info *sbi)
 {
index f2af3cc54d038a3780a0349cd85dfd804a96d254..7234cc23fea8e7e36daf389bbccc65f531b6d00b 100644 (file)
@@ -1377,7 +1377,7 @@ int ll_setattr_raw(struct dentry *dentry, struct iattr *attr, bool hsm_import)
                 * OST maximum object size and number of stripes.  This
                 * needs another check in addition to the VFS check above. */
                if (attr->ia_size > ll_file_maxbytes(inode)) {
-                       CDEBUG(D_INODE,"file "DFID" too large %llu > %llu\n",
+                       CDEBUG(D_INODE, "file "DFID" too large %llu > %llu\n",
                               PFID(&lli->lli_fid), attr->ia_size,
                               ll_file_maxbytes(inode));
                        return -EFBIG;
@@ -1568,7 +1568,8 @@ int ll_statfs_internal(struct super_block *sb, struct obd_statfs *osfs,
        osfs->os_type = sb->s_magic;
 
        CDEBUG(D_SUPER, "MDC blocks %llu/%llu objects %llu/%llu\n",
-              osfs->os_bavail, osfs->os_blocks, osfs->os_ffree,osfs->os_files);
+              osfs->os_bavail, osfs->os_blocks, osfs->os_ffree,
+              osfs->os_files);
 
        if (sbi->ll_flags & LL_SBI_LAZYSTATFS)
                flags |= OBD_STATFS_NODELAY;
index f493654a92b875c40bdfc179765a36186d506d68..ac567f2b5e6f190dc1fc180c5ed7a301d9f6363e 100644 (file)
@@ -1098,7 +1098,7 @@ void lprocfs_unregister_mountpoint(struct ll_sb_info *sbi)
 }
 #undef MAX_STRING_SIZE
 
-#define pct(a,b) (b ? a * 100 / b : 0)
+#define pct(a, b) (b ? a * 100 / b : 0)
 
 static void ll_display_extents_info(struct ll_rw_extents_info *io_extents,
                                   struct seq_file *seq, int which)
index 0dc7173bbd417feb967c9cca1440510c95798151..08c7456e502e6bc7238196f2a5d508949cb6dab2 100644 (file)
@@ -1137,7 +1137,8 @@ static int ll_rename_generic(struct inode *src, struct dentry *src_dparent,
        struct md_op_data *op_data;
        int err;
 
-       CDEBUG(D_VFSTRACE,"VFS Op:oldname=%.*s,src_dir=%lu/%u(%p),newname=%.*s,"
+       CDEBUG(D_VFSTRACE,
+              "VFS Op:oldname=%.*s,src_dir=%lu/%u(%p),newname=%.*s,"
               "tgt_dir=%lu/%u(%p)\n", src_name->len, src_name->name,
               src->i_ino, src->i_generation, src, tgt_name->len,
               tgt_name->name, tgt->i_ino, tgt->i_generation, tgt);
index 3f157e76a15c45f0bd75cbf47f0426a5002ac407..438485980027e4fb7f6aac505a43bbae2848d592 100644 (file)
@@ -436,7 +436,7 @@ static ssize_t ll_direct_IO_26(int rw, struct kiocb *iocb,
                                size = ((((size / 2) - 1) |
                                         ~CFS_PAGE_MASK) + 1) &
                                        CFS_PAGE_MASK;
-                               CDEBUG(D_VFSTRACE,"DIO size now %lu\n",
+                               CDEBUG(D_VFSTRACE, "DIO size now %lu\n",
                                       size);
                                continue;
                        }
index c39cf8d47d6ecc936d312e693e2eb6b7d0e6301c..bb91b93eb603be52d5e95fc1db19f1ed26867b1a 100644 (file)
@@ -528,7 +528,7 @@ static void ll_sai_put(struct ll_statahead_info *sai)
                spin_unlock(&lli->lli_sa_lock);
 
                if (sai->sai_sent > sai->sai_replied)
-                       CDEBUG(D_READA,"statahead for dir "DFID
+                       CDEBUG(D_READA, "statahead for dir "DFID
                              " does not finish: [sent:%llu] [replied:%llu]\n",
                              PFID(&lli->lli_fid),
                              sai->sai_sent, sai->sai_replied);
@@ -878,7 +878,8 @@ static int do_sa_revalidate(struct inode *dir, struct ll_sa_entry *entry,
                return 1;
 
        entry->se_inode = igrab(inode);
-       rc = md_revalidate_lock(ll_i2mdexp(dir), &it, ll_inode2fid(inode),NULL);
+       rc = md_revalidate_lock(ll_i2mdexp(dir), &it, ll_inode2fid(inode),
+                               NULL);
        if (rc == 1) {
                entry->se_handle = it.d.lustre.it_lock_handle;
                ll_intent_release(&it);
index 61ea9344fd456f0a80d073ab702de596c813f89b..5a1078a4198d7b94d61431a04dabb4c810ceb629 100644 (file)
@@ -405,7 +405,7 @@ static void vvp_pgcache_page_show(const struct lu_env *env,
 
        cpg = cl2ccc_page(cl_page_at(page, &vvp_device_type));
        vmpage = cpg->cpg_page;
-       seq_printf(seq," %5i | %p %p %s %s %s %s | %p %lu/%u(%p) %lu %u [",
+       seq_printf(seq, " %5i | %p %p %s %s %s %s | %p %lu/%u(%p) %lu %u [",
                   0 /* gen */,
                   cpg, page,
                   "none",
index e7f7b5a6b20d9167728676bb24e2f3885fabb780..b7ce0688880c115ffb819876f390bdc5a0d08c34 100644 (file)
@@ -721,7 +721,7 @@ static int vvp_io_fault_start(const struct lu_env *env,
                        CDEBUG(D_PAGE,
                                "llite: mkwrite and truncate race happened: "
                                "%p: 0x%lx 0x%lx\n",
-                               vmpage->mapping,fio->ft_index,last_index);
+                               vmpage->mapping, fio->ft_index, last_index);
                        /*
                         * We need to return if we are
                         * passed the end of the file. This will propagate
index 6038c53a7ec712d7ea968171a6b534d8c660ab13..8291d2b85ffb2c9fb9f790b6ca7c19b0bd99b0d5 100644 (file)
@@ -1802,7 +1802,7 @@ lmv_enqueue(struct obd_export *exp, struct ldlm_enqueue_info *einfo,
 }
 
 static int
-lmv_getattr_name(struct obd_export *exp,struct md_op_data *op_data,
+lmv_getattr_name(struct obd_export *exp, struct md_op_data *op_data,
                 struct ptlrpc_request **request)
 {
        struct ptlrpc_request   *req = NULL;
index 20e587052a292d348257f1fac4b58ccf95844ee0..62ea2239efa7931d29d567aa49f5de591c277c0d 100644 (file)
@@ -95,7 +95,7 @@ void lov_dump_lmm_v1(int level, struct lov_mds_md_v1 *lmm)
 void lov_dump_lmm_v3(int level, struct lov_mds_md_v3 *lmm)
 {
        lov_dump_lmm_common(level, lmm);
-       CDEBUG(level,"pool_name "LOV_POOLNAMEF"\n", lmm->lmm_pool_name);
+       CDEBUG(level, "pool_name "LOV_POOLNAMEF"\n", lmm->lmm_pool_name);
        lov_dump_lmm_objects(level, lmm->lmm_objects,
                             le16_to_cpu(lmm->lmm_stripe_count));
 }
index 174a5fe4a1490ff8445e0763b43e0c3be344c420..d00ab79ed7d250070dd95bbf368fd1d59618431d 100644 (file)
@@ -1315,7 +1315,8 @@ out_set:
                        (tot) += (add);                          \
        } while (0)
 
-int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs,int success)
+int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs,
+                   int success)
 {
        if (success) {
                __u32 expected_stripes = lov_get_stripecnt(&obd->u.lov,
index 504c59aabaefd48566be8abdfca3931f81c8823e..c2e561dec89f110709e99ebea40f9563410bd544 100644 (file)
@@ -1425,7 +1425,8 @@ int obd_export_evict_by_nid(struct obd_device *obd, const char *nid)
        cfs_hash_putref(nid_hash);
 
        if (!exports_evicted)
-               CDEBUG(D_HA,"%s: can't disconnect NID '%s': no exports found\n",
+               CDEBUG(D_HA,
+                      "%s: can't disconnect NID '%s': no exports found\n",
                       obd->obd_name, nid);
        return exports_evicted;
 }
index ca9927ccde68c9b8696677e1135a5ae4f051a70d..a7c75e29412834adc18a5b85b69138a9ddc92169 100644 (file)
@@ -114,7 +114,8 @@ static int llog_cat_new_log(const struct lu_env *env,
        cathandle->lgh_last_idx = index;
        llh->llh_tail.lrt_index = index;
 
-       CDEBUG(D_RPCTRACE,"new recovery log "DOSTID":%x for index %u of catalog"
+       CDEBUG(D_RPCTRACE,
+              "new recovery log "DOSTID":%x for index %u of catalog"
               DOSTID"\n", POSTID(&loghandle->lgh_id.lgl_oi),
               loghandle->lgh_id.lgl_ogen, index,
               POSTID(&cathandle->lgh_id.lgl_oi));
index fd48d59cf315f53066ffbdf63938a396a682446a..f6632dbec4f9a30cd2fa93a02860561c43583821 100644 (file)
@@ -78,7 +78,8 @@ static int llog_lvfs_pad(struct obd_device *obd, struct file *file, int len,
        }
 
        file->f_pos += len - sizeof(rec) - sizeof(tail);
-       rc = fsfilt_write_record(obd, file, &tail, sizeof(tail),&file->f_pos,0);
+       rc = fsfilt_write_record(obd, file, &tail, sizeof(tail),
+                                &file->f_pos, 0);
        if (rc) {
                CERROR("error writing padding record: rc %d\n", rc);
                goto out;
@@ -102,7 +103,8 @@ static int llog_lvfs_write_blob(struct obd_device *obd, struct file *file,
                CWARN("0-length record\n");
 
        if (!buf) {
-               rc = fsfilt_write_record(obd, file, rec, buflen,&file->f_pos,0);
+               rc = fsfilt_write_record(obd, file, rec, buflen,
+                                        &file->f_pos, 0);
                if (rc) {
                        CERROR("error writing log record: rc %d\n", rc);
                        goto out;
index 8ca9afc929aa2ee2d122c715e41b8cd2856b2313..5240b03ff99d992d64e227f7b9cdc0caf7772c6a 100644 (file)
@@ -947,7 +947,8 @@ int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list)
                                               list, obd);
        if (IS_ERR(obd->obd_proc_entry)) {
                rc = PTR_ERR(obd->obd_proc_entry);
-               CERROR("error %d setting up lprocfs for %s\n",rc,obd->obd_name);
+               CERROR("error %d setting up lprocfs for %s\n",
+                      rc, obd->obd_name);
                obd->obd_proc_entry = NULL;
        }
        return rc;
@@ -1596,7 +1597,7 @@ static int lprocfs_nid_stats_clear_write_cb(void *obj, void *data)
 {
        struct nid_stat *stat = obj;
 
-       CDEBUG(D_INFO,"refcnt %d\n", atomic_read(&stat->nid_exp_ref_count));
+       CDEBUG(D_INFO, "refcnt %d\n", atomic_read(&stat->nid_exp_ref_count));
        if (atomic_read(&stat->nid_exp_ref_count) == 1) {
                /* object has only hash references. */
                spin_lock(&stat->nid_obd->obd_nid_lock);
@@ -1786,7 +1787,8 @@ int lprocfs_seq_read_frac_helper(struct seq_file *m, long val, int mult)
 }
 EXPORT_SYMBOL(lprocfs_seq_read_frac_helper);
 
-int lprocfs_write_u64_helper(const char *buffer, unsigned long count,__u64 *val)
+int lprocfs_write_u64_helper(const char *buffer, unsigned long count,
+                            __u64 *val)
 {
        return lprocfs_write_frac_u64_helper(buffer, count, val, 1);
 }
index 9653b3813ff0443c2eae03a6140f63332474bf40..dbd638592ce870c1de6bfefb163a812623c6afc7 100644 (file)
@@ -318,7 +318,8 @@ int lustre_start_mgc(struct super_block *sb)
                   (using its local copy of the log), but we do want to connect
                   if at all possible. */
                recov_bk++;
-               CDEBUG(D_MOUNT, "%s: Set MGC reconnect %d\n", mgcname,recov_bk);
+               CDEBUG(D_MOUNT, "%s: Set MGC reconnect %d\n", mgcname,
+                      recov_bk);
                rc = obd_set_info_async(NULL, obd->obd_self_export,
                                        sizeof(KEY_INIT_RECOV_BACKUP),
                                        KEY_INIT_RECOV_BACKUP,
index ad2777fc217db28c26460f6a107d361ebb227ea0..9f719bcecab39e7b806bd30a7607ba7d2d1427a2 100644 (file)
@@ -565,7 +565,7 @@ static struct lprocfs_vars lprocfs_osc_module_vars[] = {
        { NULL }
 };
 
-#define pct(a,b) (b ? a * 100 / b : 0)
+#define pct(a, b) (b ? a * 100 / b : 0)
 
 static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v)
 {
index 0f182da96dc48f2d502516ee0f29cfb2e415d6e0..d788dac93cd0d844ed580b8199a786bcd1555275 100644 (file)
@@ -161,7 +161,7 @@ static inline unsigned long rpcs_in_flight(struct client_obd *cli)
 }
 
 #ifndef min_t
-#define min_t(type,x,y) \
+#define min_t(type, x, y) \
        ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
 #endif
 
index c502f346db9a98d81c550154b556eaa2aca48e6e..5e088f5e8c0880e7d29fe9bd97f2aa8de3a44cd3 100644 (file)
@@ -836,7 +836,7 @@ static void osc_announce_cached(struct client_obd *cli, struct obdo *oa,
        oa->o_dropped = cli->cl_lost_grant;
        cli->cl_lost_grant = 0;
        client_obd_list_unlock(&cli->cl_loi_list_lock);
-       CDEBUG(D_CACHE,"dirty: %llu undirty: %u dropped %u grant: %llu\n",
+       CDEBUG(D_CACHE, "dirty: %llu undirty: %u dropped %u grant: %llu\n",
               oa->o_dirty, oa->o_undirty, oa->o_dropped, oa->o_grant);
 
 }
@@ -1218,7 +1218,8 @@ static u32 osc_checksum_bulk(int nob, u32 pg_count,
        return cksum;
 }
 
-static int osc_brw_prep_request(int cmd, struct client_obd *cli,struct obdo *oa,
+static int osc_brw_prep_request(int cmd, struct client_obd *cli,
+                               struct obdo *oa,
                                struct lov_stripe_md *lsm, u32 page_count,
                                struct brw_page **pga,
                                struct ptlrpc_request **reqp,
@@ -1523,7 +1524,8 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, int rc)
                                         cksum_type_unpack(aa->aa_oa->o_flags)))
                        return -EAGAIN;
 
-               rc = check_write_rcs(req, aa->aa_requested_nob,aa->aa_nio_count,
+               rc = check_write_rcs(req, aa->aa_requested_nob,
+                                    aa->aa_nio_count,
                                     aa->aa_page_count, aa->aa_ppga);
                GOTO(out, rc);
        }
@@ -2320,7 +2322,7 @@ static int osc_enqueue_fini(struct ptlrpc_request *req, struct ost_lvb *lvb,
        if ((intent != 0 && rc == ELDLM_LOCK_ABORTED && agl == 0) ||
            (rc == 0)) {
                *flags |= LDLM_FL_LVB_READY;
-               CDEBUG(D_INODE,"got kms %llu blocks %llu mtime %llu\n",
+               CDEBUG(D_INODE, "got kms %llu blocks %llu mtime %llu\n",
                       lvb->lvb_size, lvb->lvb_blocks, lvb->lvb_mtime);
        }
 
index c3ec21d5d29fd373d45309d7ef45d64f29d0f738..b68157bab41b2e998514b379d1aeadd916add717 100644 (file)
@@ -186,7 +186,8 @@ void client_bulk_callback(lnet_event_t *ev)
        if (CFS_FAIL_CHECK_ORSET(OBD_FAIL_PTLRPC_CLIENT_BULK_CB, CFS_FAIL_ONCE))
                ev->status = -EIO;
 
-       if (CFS_FAIL_CHECK_ORSET(OBD_FAIL_PTLRPC_CLIENT_BULK_CB2,CFS_FAIL_ONCE))
+       if (CFS_FAIL_CHECK_ORSET(OBD_FAIL_PTLRPC_CLIENT_BULK_CB2,
+                                CFS_FAIL_ONCE))
                ev->status = -EIO;
 
        CDEBUG((ev->status == 0) ? D_NET : D_ERROR,
@@ -481,7 +482,7 @@ int ptlrpc_uuid_to_peer(struct obd_uuid *uuid,
                }
        }
 
-       CDEBUG(D_NET,"%s->%s\n", uuid->uuid, libcfs_id2str(*peer));
+       CDEBUG(D_NET, "%s->%s\n", uuid->uuid, libcfs_id2str(*peer));
        return rc;
 }
 
index 3e3fbfe94306cd47cff5873e8dd747817ef3ff48..c925690d5ca1c85c5bdf9b34c60884c90f626b86 100644 (file)
@@ -297,7 +297,8 @@ void ptlrpc_invalidate_import(struct obd_import *imp)
                        timeout = 1;
                }
 
-               CDEBUG(D_RPCTRACE,"Sleeping %d sec for inflight to error out\n",
+               CDEBUG(D_RPCTRACE,
+                      "Sleeping %d sec for inflight to error out\n",
                       timeout);
 
                /* Wait for all requests to error out and call completion
@@ -843,7 +844,7 @@ static int ptlrpc_connect_interpret(const struct lu_env *env,
        if ((ocd->ocd_connect_flags & imp->imp_connect_flags_orig) !=
            ocd->ocd_connect_flags) {
                CERROR("%s: Server didn't granted asked subset of flags: asked=%#llx grranted=%#llx\n",
-                      imp->imp_obd->obd_name,imp->imp_connect_flags_orig,
+                      imp->imp_obd->obd_name, imp->imp_connect_flags_orig,
                       ocd->ocd_connect_flags);
                GOTO(out, rc = -EPROTO);
        }
index bc220308e7d7de2e810f008ecad4137def5e27d9..ace12e8e2cc849d25ced75ae7e9fdcfc59962498 100644 (file)
@@ -119,7 +119,7 @@ struct ll_rpc_opcode {
        { OBD_IDX_READ,     "dt_index_read" },
        { LLOG_ORIGIN_HANDLE_CREATE,     "llog_origin_handle_open" },
        { LLOG_ORIGIN_HANDLE_NEXT_BLOCK, "llog_origin_handle_next_block" },
-       { LLOG_ORIGIN_HANDLE_READ_HEADER,"llog_origin_handle_read_header" },
+       { LLOG_ORIGIN_HANDLE_READ_HEADER, "llog_origin_handle_read_header" },
        { LLOG_ORIGIN_HANDLE_WRITE_REC,  "llog_origin_handle_write_rec" },
        { LLOG_ORIGIN_HANDLE_CLOSE,      "llog_origin_handle_close" },
        { LLOG_ORIGIN_CONNECT,     "llog_origin_connect" },
@@ -130,7 +130,7 @@ struct ll_rpc_opcode {
        { QUOTA_DQREL,      "quota_release" },
        { SEQ_QUERY,    "seq_query" },
        { SEC_CTX_INIT,     "sec_ctx_init" },
-       { SEC_CTX_INIT_CONT,"sec_ctx_init_cont" },
+       { SEC_CTX_INIT_CONT, "sec_ctx_init_cont" },
        { SEC_CTX_FINI,     "sec_ctx_fini" },
        { FLD_QUERY,    "fld_query" },
        { UPDATE_OBJ,       "update_obj" },
@@ -194,7 +194,8 @@ void ptlrpc_lprocfs_register(struct proc_dir_entry *root, char *dir,
        LASSERT(*procroot_ret == NULL);
        LASSERT(*stats_ret == NULL);
 
-       svc_stats = lprocfs_alloc_stats(EXTRA_MAX_OPCODES+LUSTRE_MAX_OPCODES,0);
+       svc_stats = lprocfs_alloc_stats(EXTRA_MAX_OPCODES+LUSTRE_MAX_OPCODES,
+                                       0);
        if (svc_stats == NULL)
                return;
 
index 5e4e49fab63cd5592b5643cd870ffa5ce9a2ce0e..97fdc7ff8d3a554183df8abe775c27918e7747bd 100644 (file)
@@ -281,7 +281,8 @@ static int ptlrpc_pinger_main(void *arg)
                   ping will get sent 2 timeouts from now!  Beware. */
                CDEBUG(D_INFO, "next wakeup in "CFS_DURATION_T" ("
                       CFS_TIME_T")\n", time_to_next_wake,
-                      cfs_time_add(this_ping,cfs_time_seconds(PING_INTERVAL)));
+                      cfs_time_add(this_ping,
+                                   cfs_time_seconds(PING_INTERVAL)));
                if (time_to_next_wake > 0) {
                        lwi = LWI_TIMEOUT(max_t(long, time_to_next_wake,
                                                cfs_time_seconds(1)),
index a477914111492b16d0ba17b24403bb2601bd424f..099cec3b669ff068467e07ce68aff2bbfac4cb25 100644 (file)
@@ -471,5 +471,6 @@ void sptlrpc_null_fini(void)
 
        rc = sptlrpc_unregister_policy(&null_policy);
        if (rc)
-               CERROR("failed to unregister %s: %d\n", null_policy.sp_name,rc);
+               CERROR("failed to unregister %s: %d\n",
+                      null_policy.sp_name, rc);
 }
index c88eae27bbf4299730dc6869d511073deaf0359d..6c09d88f88cedc5537b89c0eac7340a5e041d115 100644 (file)
@@ -1896,7 +1896,8 @@ ptlrpc_server_handle_request(struct ptlrpc_service_part *svcpt,
                libcfs_debug_dumplog();
 
        do_gettimeofday(&work_start);
-       timediff = cfs_timeval_sub(&work_start, &request->rq_arrival_time,NULL);
+       timediff = cfs_timeval_sub(&work_start, &request->rq_arrival_time,
+                                  NULL);
        if (likely(svc->srv_stats != NULL)) {
                lprocfs_counter_add(svc->srv_stats, PTLRPC_REQWAIT_CNTR,
                                    timediff);