Staging: lustre: Remove unused code
cover Staging: lustre: Remove unused code
From: Shraddha Barke <[email protected]>
Remove unused functions.
Shraddha Barke (3):
Staging: lustre: include: Remove unused llog_backup declaration
Staging: lustre: include: Remove unused md_should_create
Staging: lustre: lnet: Remove functions LNetEQWait and LNetEQGet
drivers/staging/lustre/include/linux/lnet/api.h | 6 ------ drivers/staging/lustre/lnet/lnet/lib-eq.c | 18 ------------------ drivers/staging/lustre/lustre/include/lustre_log.h | 3 --- drivers/staging/lustre/lustre/include/lustre_mds.h | 6 ------ 4 files changed, 33 deletions(-)
Signature · 1 line
2.1.4
PATCH 1/3 Staging: lustre: include: Remove unused llog_backup declaration
From: Shraddha Barke <[email protected]>
Function llog_backup is declared in header file but not used. Thus remove it.
--- drivers/staging/lustre/lustre/include/lustre_log.h | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/lustre/lustre/include/lustre_log.h +0 -3
@@ -94,9 +94,6 @@ int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt, struct llog_handle **lgh, struct llog_logid *logid, char *name, enum llog_open_param open_param);int llog_close (const struct lu_env *env,struct llog_handle *cathandle); -int llog_backup (const struct lu_env *env,struct obd_device *obd, -struct llog_ctxt *ctxt,struct llog_ctxt *bak_ctxt, -char *name,char *backup);/* llog_process flags */ #define LLOG_FLAG_NODEAMON 0x0001
Signature · 1 line
2.1.4
PATCH 2/3 Staging: lustre: include: Remove unused md_should_create
In reply to ShraddhaFrom: Shraddha Barke <[email protected]>
Function md_should_create is defined but not used. Thus remove it.
--- drivers/staging/lustre/lustre/include/lustre_mds.h | 6 ------ 1 file changed, 6 deletions(-)
drivers/staging/lustre/lustre/include/lustre_mds.h +0 -6
@@ -62,12 +62,6 @@ struct mds_group_info {#define MDD_OBD_NAME "mdd_obd"#define MDD_OBD_UUID "mdd_obd_uuid" -static inline int md_should_create (__u64 flags) -{ -return !(flags &MDS_OPEN_DELAY_CREATE || - !(flags &FMODE_WRITE )); -} -/* these are local flags, used only on the client, private */ #define M_CHECK_STALE 0200000000
Signature · 1 line
2.1.4
PATCH 3/3 Staging: lustre: lnet: Remove functions LNetEQWait and LNetEQGet
In reply to ShraddhaFrom: Shraddha Barke <[email protected]>
Functions LNetEQWait and LNetEQGet are defined but not used. Thus remove it. Also remove corresponding declarations from header file.
--- drivers/staging/lustre/include/linux/lnet/api.h | 6 ------ drivers/staging/lustre/lnet/lnet/lib-eq.c | 18 ------------------ 2 files changed, 24 deletions(-)
drivers/staging/lustre/include/linux/lnet/api.h +0 -6
@@ -161,12 +161,6 @@ int LNetEQAlloc(unsigned int count_in,int LNetEQFree (lnet_handle_eq_t eventq_in); -int LNetEQGet (lnet_handle_eq_t eventq_in, -lnet_event_t *event_out); - -int LNetEQWait (lnet_handle_eq_t eventq_in, -lnet_event_t *event_out); - int LNetEQPoll(lnet_handle_eq_t *eventqs_in, int neq_in, int timeout_ms,
drivers/staging/lustre/lnet/lnet/lib-eq.c +0 -18
@@ -282,15 +282,6 @@ lnet_eq_dequeue_event(lnet_eq_t *eq, lnet_event_t *ev)* at least one event between this event and the last event obtained from the * EQ has been dropped due to limited space in the EQ. */ -int -LNetEQGet (lnet_handle_eq_t eventq,lnet_event_t *event) -{ -int which; - -return LNetEQPoll (&eventq,1 ,0 , - event, &which); -} -EXPORT_SYMBOL (LNetEQGet);/** * Block the calling process until there is an event in the EQ.
@@ -308,15 +299,6 @@ EXPORT_SYMBOL(LNetEQGet);* at least one event between this event and the last event obtained from the * EQ has been dropped due to limited space in the EQ. */ -int -LNetEQWait (lnet_handle_eq_t eventq,lnet_event_t *event) -{ -int which; - -return LNetEQPoll (&eventq,1 ,LNET_TIME_FOREVER , - event, &which); -} -EXPORT_SYMBOL (LNetEQWait);static int lnet_eq_wait_locked (int *timeout_ms)
Signature · 1 line
2.1.4