]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: lustre: add blank lines after declarations
authorSrikrishan Malik <srikrishanmalik@gmail.com>
Mon, 11 Aug 2014 18:27:33 +0000 (23:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:17 +0000 (12:23 -0700)
Fixes the following checkpatch warning:

WARNING: Missing a blank line after declarations

Signed-off-by: Srikrishan Malik <srikrishanmalik@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_lib.c
drivers/staging/lustre/lustre/mdc/mdc_locks.c
drivers/staging/lustre/lustre/mdc/mdc_request.c

index 8b301f4d7e23575adfd4e691856c49ff55e8eb13..e8732cc30ce26335ebdd988a7d2c46f9b0cfc440 100644 (file)
@@ -490,6 +490,7 @@ void mdc_getattr_pack(struct ptlrpc_request *req, __u64 valid, int flags,
 
        if (op_data->op_name) {
                char *tmp = req_capsule_client_get(&req->rq_pill, &RMF_NAME);
+
                LOGL0(op_data->op_name, op_data->op_namelen, tmp);
 
        }
index a5a2597616e9134a74ecaa781c7fa02ee2437e25..4d837d61be657132e9d7f7e236b38e1d7228b40e 100644 (file)
@@ -134,6 +134,7 @@ int mdc_set_lock_data(struct obd_export *exp, __u64 *lockh, void *data,
        if (lock->l_resource->lr_lvb_inode &&
            lock->l_resource->lr_lvb_inode != data) {
                struct inode *old_inode = lock->l_resource->lr_lvb_inode;
+
                LASSERTF(old_inode->i_state & I_FREEING,
                         "Found existing inode %p/%lu/%u state %lu in lock: "
                         "setting data to %p/%lu/%u\n", old_inode,
@@ -678,6 +679,7 @@ static int mdc_finish_enqueue(struct obd_export *exp,
                         */
                        if ((it->it_op & IT_OPEN) && req->rq_replay) {
                                void *lmm;
+
                                if (req_capsule_get_size(pill, &RMF_EADATA,
                                                         RCL_CLIENT) <
                                    body->eadatasize)
@@ -1029,6 +1031,7 @@ static int mdc_finish_intent_lock(struct obd_export *exp,
        lock = ldlm_handle2lock(lockh);
        if (lock) {
                ldlm_policy_data_t policy = lock->l_policy_data;
+
                LDLM_DEBUG(lock, "matching against this");
 
                LASSERTF(fid_res_name_eq(&mdt_body->fid1,
index 6def9213322763023b7d3c2350ced74e41ee03bf..57d903156917c45c24345be338788508df79c1c7 100644 (file)
@@ -203,6 +203,7 @@ static int mdc_getattr_common(struct obd_export *exp,
 
        if (body->valid & OBD_MD_FLMDSCAPA) {
                struct lustre_capa *capa;
+
                capa = req_capsule_server_get(pill, &RMF_CAPA1);
                if (capa == NULL)
                        return -EPROTO;
@@ -283,6 +284,7 @@ int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data,
 
        if (op_data->op_name) {
                char *name = req_capsule_client_get(&req->rq_pill, &RMF_NAME);
+
                LASSERT(strnlen(op_data->op_name, op_data->op_namelen) ==
                                op_data->op_namelen);
                memcpy(name, op_data->op_name, op_data->op_namelen);
@@ -696,6 +698,7 @@ void mdc_replay_open(struct ptlrpc_request *req)
 void mdc_commit_open(struct ptlrpc_request *req)
 {
        struct md_open_data *mod = req->rq_cb_data;
+
        if (mod == NULL)
                return;
 
@@ -2390,6 +2393,7 @@ int mdc_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
 struct obd_uuid *mdc_get_uuid(struct obd_export *exp)
 {
        struct client_obd *cli = &exp->exp_obd->u.cli;
+
        return &cli->cl_target_uuid;
 }
 
@@ -2742,6 +2746,7 @@ int __init mdc_init(void)
 {
        int rc;
        struct lprocfs_static_vars lvars = { NULL };
+
        lprocfs_mdc_init_vars(&lvars);
 
        rc = class_register_type(&mdc_obd_ops, &mdc_md_ops, lvars.module_vars,