staging: lustre: remove space between function name and and open parenthesis
Fixes following checkpatch warning: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Srikrishan Malik <srikrishanmalik@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
139cc6aed5
commit
ffdac6ce36
drivers/staging/lustre/lustre/mdc
@ -40,7 +40,7 @@
|
||||
#include "../include/lustre_mdc.h"
|
||||
#include "../include/lustre_mds.h"
|
||||
|
||||
#if defined (CONFIG_PROC_FS)
|
||||
#if defined CONFIG_PROC_FS
|
||||
void lprocfs_mdc_init_vars(struct lprocfs_static_vars *lvars);
|
||||
#else
|
||||
static inline void lprocfs_mdc_init_vars(struct lprocfs_static_vars *lvars)
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
static void __mdc_pack_body(struct mdt_body *b, __u32 suppgid)
|
||||
{
|
||||
LASSERT (b != NULL);
|
||||
LASSERT(b != NULL);
|
||||
|
||||
b->suppgid = suppgid;
|
||||
b->uid = from_kuid(&init_user_ns, current_uid());
|
||||
@ -409,7 +409,7 @@ void mdc_link_pack(struct ptlrpc_request *req, struct md_op_data *op_data)
|
||||
|
||||
CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_link));
|
||||
rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT);
|
||||
LASSERT (rec != NULL);
|
||||
LASSERT(rec != NULL);
|
||||
|
||||
rec->lk_opcode = REINT_LINK;
|
||||
rec->lk_fsuid = op_data->op_fsuid;//current->fsuid;
|
||||
|
@ -633,7 +633,7 @@ static int mdc_finish_enqueue(struct obd_export *exp,
|
||||
|
||||
body = req_capsule_server_get(pill, &RMF_MDT_BODY);
|
||||
if (body == NULL) {
|
||||
CERROR ("Can't swab mdt_body\n");
|
||||
CERROR("Can't swab mdt_body\n");
|
||||
return -EPROTO;
|
||||
}
|
||||
|
||||
|
@ -1702,7 +1702,7 @@ static int mdc_quotactl(struct obd_device *unused, struct obd_export *exp,
|
||||
if (oqc) {
|
||||
*oqctl = *oqc;
|
||||
} else if (!rc) {
|
||||
CERROR ("Can't unpack obd_quotactl\n");
|
||||
CERROR("Can't unpack obd_quotactl\n");
|
||||
rc = -EPROTO;
|
||||
}
|
||||
} else if (!rc) {
|
||||
@ -2426,14 +2426,14 @@ static int mdc_setup(struct obd_device *obd, struct lustre_cfg *cfg)
|
||||
struct lprocfs_static_vars lvars = { NULL };
|
||||
int rc;
|
||||
|
||||
OBD_ALLOC(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
|
||||
OBD_ALLOC(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
|
||||
if (!cli->cl_rpc_lock)
|
||||
return -ENOMEM;
|
||||
mdc_init_rpc_lock(cli->cl_rpc_lock);
|
||||
|
||||
ptlrpcd_addref();
|
||||
|
||||
OBD_ALLOC(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
|
||||
OBD_ALLOC(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
|
||||
if (!cli->cl_close_lock)
|
||||
GOTO(err_rpc_lock, rc = -ENOMEM);
|
||||
mdc_init_rpc_lock(cli->cl_close_lock);
|
||||
@ -2459,9 +2459,9 @@ static int mdc_setup(struct obd_device *obd, struct lustre_cfg *cfg)
|
||||
return rc;
|
||||
|
||||
err_close_lock:
|
||||
OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
|
||||
OBD_FREE(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
|
||||
err_rpc_lock:
|
||||
OBD_FREE(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
|
||||
OBD_FREE(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
|
||||
ptlrpcd_decref();
|
||||
return rc;
|
||||
}
|
||||
@ -2523,8 +2523,8 @@ static int mdc_cleanup(struct obd_device *obd)
|
||||
{
|
||||
struct client_obd *cli = &obd->u.cli;
|
||||
|
||||
OBD_FREE(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
|
||||
OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
|
||||
OBD_FREE(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
|
||||
OBD_FREE(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
|
||||
|
||||
ptlrpcd_decref();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user