staging/lustre/mdc: Fix style vs open parenthesis alignment
authorOleg Drokin <green@linuxhacker.ru>
Fri, 26 Feb 2016 06:50:06 +0000 (01:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 03:17:41 +0000 (19:17 -0800)
This mostly fixes checkpatch complaints about
"Alignment should match open parenthesis"

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_internal.h
drivers/staging/lustre/lustre/mdc/mdc_locks.c
drivers/staging/lustre/lustre/mdc/mdc_reint.c
drivers/staging/lustre/lustre/mdc/mdc_request.c

index 54f4ca61fdd3d192735b6f2f74e1f7504cc658c1..c5519aeb0d8a592ecded53b9fe32d4b610668118 100644 (file)
@@ -53,7 +53,7 @@ void mdc_readdir_pack(struct ptlrpc_request *req, __u64 pgoff, __u32 size,
 void mdc_getattr_pack(struct ptlrpc_request *req, __u64 valid, int flags,
                      struct md_op_data *data, int ea_size);
 void mdc_setattr_pack(struct ptlrpc_request *req, struct md_op_data *op_data,
-                    void *ea, int ealen, void *ea2, int ea2len);
+                     void *ea, int ealen, void *ea2, int ea2len);
 void mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data,
                     const void *data, int datalen, __u32 mode, __u32 uid,
                     __u32 gid, cfs_cap_t capability, __u64 rdev);
index 6dae574a5fa0b4fa15ced3a5709394995704bbd8..958a164f620d77b90da661b37547ec5741ffb947 100644 (file)
@@ -366,7 +366,7 @@ mdc_intent_getxattr_pack(struct obd_export *exp,
        LIST_HEAD(cancels);
 
        req = ptlrpc_request_alloc(class_exp2cliimp(exp),
-                                       &RQF_LDLM_INTENT_GETXATTR);
+                                  &RQF_LDLM_INTENT_GETXATTR);
        if (!req)
                return ERR_PTR(-ENOMEM);
 
@@ -386,14 +386,12 @@ mdc_intent_getxattr_pack(struct obd_export *exp,
        mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, maxdata, -1,
                      0);
 
-       req_capsule_set_size(&req->rq_pill, &RMF_EADATA,
-                               RCL_SERVER, maxdata);
+       req_capsule_set_size(&req->rq_pill, &RMF_EADATA, RCL_SERVER, maxdata);
 
-       req_capsule_set_size(&req->rq_pill, &RMF_EAVALS,
-                               RCL_SERVER, maxdata);
+       req_capsule_set_size(&req->rq_pill, &RMF_EAVALS, RCL_SERVER, maxdata);
 
        req_capsule_set_size(&req->rq_pill, &RMF_EAVALS_LENS,
-                               RCL_SERVER, maxdata);
+                            RCL_SERVER, maxdata);
 
        ptlrpc_request_set_replen(req);
 
@@ -439,8 +437,8 @@ static struct ptlrpc_request *mdc_intent_unlink_pack(struct obd_export *exp,
 }
 
 static struct ptlrpc_request *mdc_intent_getattr_pack(struct obd_export *exp,
-                                                   struct lookup_intent *it,
-                                                   struct md_op_data *op_data)
+                                                     struct lookup_intent *it,
+                                                    struct md_op_data *op_data)
 {
        struct ptlrpc_request *req;
        struct obd_device     *obddev = class_exp2obd(exp);
@@ -498,7 +496,7 @@ static struct ptlrpc_request *mdc_intent_layout_pack(struct obd_export *exp,
        int rc;
 
        req = ptlrpc_request_alloc(class_exp2cliimp(exp),
-                               &RQF_LDLM_INTENT_LAYOUT);
+                                  &RQF_LDLM_INTENT_LAYOUT);
        if (!req)
                return ERR_PTR(-ENOMEM);
 
@@ -718,7 +716,7 @@ static int mdc_finish_enqueue(struct obd_export *exp,
                void *lmm;
 
                LDLM_DEBUG(lock, "layout lock returned by: %s, lvb_len: %d\n",
-                       ldlm_it2str(it->it_op), lvb_len);
+                          ldlm_it2str(it->it_op), lvb_len);
 
                lmm = libcfs_kvzalloc(lvb_len, GFP_NOFS);
                if (!lmm) {
@@ -1094,7 +1092,7 @@ int mdc_revalidate_lock(struct obd_export *exp, struct lookup_intent *it,
                }
 
                mode = mdc_lock_match(exp, LDLM_FL_BLOCK_GRANTED, fid,
-                                      LDLM_IBITS, &policy,
+                                     LDLM_IBITS, &policy,
                                      LCK_CR | LCK_CW | LCK_PR | LCK_PW,
                                      &lockh);
        }
@@ -1264,9 +1262,9 @@ int mdc_intent_getattr_async(struct obd_export *exp,
        __u64               flags = LDLM_FL_HAS_INTENT;
 
        CDEBUG(D_DLMTRACE,
-               "name: %.*s in inode "DFID", intent: %s flags %#Lo\n",
-               op_data->op_namelen, op_data->op_name, PFID(&op_data->op_fid1),
-               ldlm_it2str(it->it_op), it->it_flags);
+              "name: %.*s in inode " DFID ", intent: %s flags %#Lo\n",
+              op_data->op_namelen, op_data->op_name, PFID(&op_data->op_fid1),
+              ldlm_it2str(it->it_op), it->it_flags);
 
        fid_build_reg_res_name(&op_data->op_fid1, &res_id);
        req = mdc_intent_getattr_pack(exp, it, op_data);
index 019b23735bee06bbabae582876cb830ac67abe76..4ef3db147f8722d8ccff2524154895055dc5f051 100644 (file)
@@ -422,7 +422,7 @@ int mdc_rename(struct obd_export *exp, struct md_op_data *op_data,
                                                 &cancels, LCK_EX,
                                                 MDS_INODELOCK_LOOKUP);
        if ((op_data->op_flags & MF_MDC_CANCEL_FID4) &&
-            (fid_is_sane(&op_data->op_fid4)))
+           (fid_is_sane(&op_data->op_fid4)))
                count += mdc_resource_get_unused(exp, &op_data->op_fid4,
                                                 &cancels, LCK_EX,
                                                 MDS_INODELOCK_FULL);
index c7a0fa1f1e1cf0cdd180c0dc3ccb9fe5799ec209..7bdb205117da35b136cd25d388766a19bfd664ec 100644 (file)
@@ -165,7 +165,7 @@ static int mdc_getattr_common(struct obd_export *exp,
 }
 
 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data,
-               struct ptlrpc_request **request)
+                      struct ptlrpc_request **request)
 {
        struct ptlrpc_request *req;
        int                 rc;
@@ -207,7 +207,7 @@ static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data,
 }
 
 static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data,
-                    struct ptlrpc_request **request)
+                           struct ptlrpc_request **request)
 {
        struct ptlrpc_request *req;
        int                 rc;
@@ -1036,8 +1036,8 @@ restart_bulk:
 
        if (req->rq_bulk->bd_nob_transferred & ~LU_PAGE_MASK) {
                CERROR("Unexpected # bytes transferred: %d (%ld expected)\n",
-                       req->rq_bulk->bd_nob_transferred,
-                       PAGE_CACHE_SIZE * op_data->op_npages);
+                      req->rq_bulk->bd_nob_transferred,
+                      PAGE_CACHE_SIZE * op_data->op_npages);
                ptlrpc_req_finished(req);
                return -EPROTO;
        }
@@ -1815,7 +1815,7 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
                /* copy UUID */
                if (copy_to_user(data->ioc_pbuf2, obd2cli_tgt(obd),
                                 min_t(size_t, data->ioc_plen2,
-                                              sizeof(struct obd_uuid)))) {
+                                      sizeof(struct obd_uuid)))) {
                        rc = -EFAULT;
                        goto out;
                }
@@ -1828,7 +1828,7 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
 
                if (copy_to_user(data->ioc_pbuf1, &stat_buf,
                                 min_t(size_t, data->ioc_plen1,
-                                              sizeof(stat_buf)))) {
+                                      sizeof(stat_buf)))) {
                        rc = -EFAULT;
                        goto out;
                }