* [PATCH 0/4] Staging: lustre: Remove unused code
@ 2015-10-25 12:06 Shraddha Barke
2015-10-25 12:06 ` [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file Shraddha Barke
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Shraddha Barke @ 2015-10-25 12:06 UTC (permalink / raw)
To: outreachy-kernel
These patches remove unused header file, function definition
and declarations and EXPORT_SYMBOL for static function
Shraddha Barke (4):
Staging: lustre: include: Remove unused obd_cache.h file
Staging: lustre: lustre_log: Remove unused functions
Staging: lustre: ptlrpc: Remove EXPORT_SYMBOL for
sptlrpc_rule_set_expand
Staging: lustre: lprocfs_status: Remove unused declaration
.../staging/lustre/lustre/include/lprocfs_status.h | 2 -
drivers/staging/lustre/lustre/include/lustre_log.h | 89 ----------------------
drivers/staging/lustre/lustre/include/obd_cache.h | 38 ---------
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 1 -
4 files changed, 130 deletions(-)
delete mode 100644 drivers/staging/lustre/lustre/include/obd_cache.h
--
2.1.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file
2015-10-25 12:06 [PATCH 0/4] Staging: lustre: Remove unused code Shraddha Barke
@ 2015-10-25 12:06 ` Shraddha Barke
2015-10-27 5:33 ` [Outreachy kernel] " Greg KH
2015-10-25 12:06 ` [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions Shraddha Barke
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Shraddha Barke @ 2015-10-25 12:06 UTC (permalink / raw)
To: outreachy-kernel
Remove the header file obd_cache.h since it is not needed
---
drivers/staging/lustre/lustre/include/obd_cache.h | 38 -----------------------
1 file changed, 38 deletions(-)
delete mode 100644 drivers/staging/lustre/lustre/include/obd_cache.h
diff --git a/drivers/staging/lustre/lustre/include/obd_cache.h b/drivers/staging/lustre/lustre/include/obd_cache.h
deleted file mode 100644
index b5e1155..0000000
--- a/drivers/staging/lustre/lustre/include/obd_cache.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * GPL HEADER START
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 only,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License version 2 for more details (a copy is included
- * in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
- *
- * GPL HEADER END
- */
-/*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
- * Use is subject to license terms.
- */
-/*
- * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
- */
-
-#ifndef _OBD_CACHE_H__
-#define _OBD_CACHE_H__
-
-#endif
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions
2015-10-25 12:06 [PATCH 0/4] Staging: lustre: Remove unused code Shraddha Barke
2015-10-25 12:06 ` [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file Shraddha Barke
@ 2015-10-25 12:06 ` Shraddha Barke
2015-10-27 5:34 ` [Outreachy kernel] " Greg KH
2015-10-25 12:06 ` [PATCH 3/4] Staging: lustre: ptlrpc: Remove EXPORT_SYMBOL for sptlrpc_rule_set_expand Shraddha Barke
2015-10-25 12:07 ` [PATCH 4/4] Staging: lustre: lprocfs_status: Remove unused declaration Shraddha Barke
3 siblings, 1 reply; 7+ messages in thread
From: Shraddha Barke @ 2015-10-25 12:06 UTC (permalink / raw)
To: outreachy-kernel
Remove the functions which are defined but not used anywhere
---
drivers/staging/lustre/lustre/include/lustre_log.h | 89 ----------------------
1 file changed, 89 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lustre_log.h b/drivers/staging/lustre/lustre/include/lustre_log.h
index 5d3b2df..901d6a6 100644
--- a/drivers/staging/lustre/lustre/include/lustre_log.h
+++ b/drivers/staging/lustre/lustre/include/lustre_log.h
@@ -80,36 +80,6 @@ struct cat_handle_data {
struct llog_handle *chd_next_log; /* llog to be used next */
};
-static inline void logid_to_fid(struct llog_logid *id, struct lu_fid *fid)
-{
- /* For compatibility purposes we identify pre-OSD (~< 2.3.51 MDS)
- * logid's by non-zero ogen (inode generation) and convert them
- * into IGIF */
- if (id->lgl_ogen == 0) {
- fid->f_seq = id->lgl_oi.oi.oi_seq;
- fid->f_oid = id->lgl_oi.oi.oi_id;
- fid->f_ver = 0;
- } else {
- lu_igif_build(fid, id->lgl_oi.oi.oi_id, id->lgl_ogen);
- }
-}
-
-static inline void fid_to_logid(struct lu_fid *fid, struct llog_logid *id)
-{
- id->lgl_oi.oi.oi_seq = fid->f_seq;
- id->lgl_oi.oi.oi_id = fid->f_oid;
- id->lgl_ogen = 0;
-}
-
-static inline void logid_set_id(struct llog_logid *log_id, __u64 id)
-{
- log_id->lgl_oi.oi.oi_id = id;
-}
-
-static inline __u64 logid_id(struct llog_logid *log_id)
-{
- return log_id->lgl_oi.oi.oi_id;
-}
struct llog_handle;
@@ -286,19 +256,6 @@ struct llog_ctxt {
#define LLOG_PROC_BREAK 0x0001
#define LLOG_DEL_RECORD 0x0002
-static inline int llog_obd2ops(struct llog_ctxt *ctxt,
- struct llog_operations **lop)
-{
- if (ctxt == NULL)
- return -ENOTCONN;
-
- *lop = ctxt->loc_logops;
- if (*lop == NULL)
- return -EOPNOTSUPP;
-
- return 0;
-}
-
static inline int llog_handle2ops(struct llog_handle *loghandle,
struct llog_operations **lop)
{
@@ -309,18 +266,6 @@ static inline int llog_handle2ops(struct llog_handle *loghandle,
return 0;
}
-static inline int llog_data_len(int len)
-{
- return cfs_size_round(len);
-}
-
-static inline int llog_get_size(struct llog_handle *loghandle)
-{
- if (loghandle && loghandle->lgh_hdr)
- return loghandle->lgh_hdr->llh_count;
- return 0;
-}
-
static inline struct llog_ctxt *llog_ctxt_get(struct llog_ctxt *ctxt)
{
atomic_inc(&ctxt->loc_refcount);
@@ -421,40 +366,6 @@ static inline int llog_next_block(const struct lu_env *env,
return rc;
}
-static inline int llog_prev_block(const struct lu_env *env,
- struct llog_handle *loghandle,
- int prev_idx, void *buf, int len)
-{
- struct llog_operations *lop;
- int rc;
-
- rc = llog_handle2ops(loghandle, &lop);
- if (rc)
- return rc;
- if (lop->lop_prev_block == NULL)
- return -EOPNOTSUPP;
-
- rc = lop->lop_prev_block(env, loghandle, prev_idx, buf, len);
- return rc;
-}
-
-static inline int llog_connect(struct llog_ctxt *ctxt,
- struct llog_logid *logid, struct llog_gen *gen,
- struct obd_uuid *uuid)
-{
- struct llog_operations *lop;
- int rc;
-
- rc = llog_obd2ops(ctxt, &lop);
- if (rc)
- return rc;
- if (lop->lop_connect == NULL)
- return -EOPNOTSUPP;
-
- rc = lop->lop_connect(ctxt, logid, gen, uuid);
- return rc;
-}
-
/* llog.c */
int llog_declare_write_rec(const struct lu_env *env,
struct llog_handle *handle,
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] Staging: lustre: ptlrpc: Remove EXPORT_SYMBOL for sptlrpc_rule_set_expand
2015-10-25 12:06 [PATCH 0/4] Staging: lustre: Remove unused code Shraddha Barke
2015-10-25 12:06 ` [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file Shraddha Barke
2015-10-25 12:06 ` [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions Shraddha Barke
@ 2015-10-25 12:06 ` Shraddha Barke
2015-10-25 12:07 ` [PATCH 4/4] Staging: lustre: lprocfs_status: Remove unused declaration Shraddha Barke
3 siblings, 0 replies; 7+ messages in thread
From: Shraddha Barke @ 2015-10-25 12:06 UTC (permalink / raw)
To: outreachy-kernel
Since sptlrpc_rule_set_expand is static, export symbol is not needed
---
drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
index fca9aa1..7ff948f 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c
@@ -257,7 +257,6 @@ static int sptlrpc_rule_set_expand(struct sptlrpc_rule_set *rset)
rset->srs_nslot = nslot;
return 0;
}
-EXPORT_SYMBOL(sptlrpc_rule_set_expand);
static inline int rule_spec_dir(struct sptlrpc_rule *rule)
{
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] Staging: lustre: lprocfs_status: Remove unused declaration
2015-10-25 12:06 [PATCH 0/4] Staging: lustre: Remove unused code Shraddha Barke
` (2 preceding siblings ...)
2015-10-25 12:06 ` [PATCH 3/4] Staging: lustre: ptlrpc: Remove EXPORT_SYMBOL for sptlrpc_rule_set_expand Shraddha Barke
@ 2015-10-25 12:07 ` Shraddha Barke
3 siblings, 0 replies; 7+ messages in thread
From: Shraddha Barke @ 2015-10-25 12:07 UTC (permalink / raw)
To: outreachy-kernel
Remove declaration of function lprocfs_wr_timeouts from header file
since it is not used
---
drivers/staging/lustre/lustre/include/lprocfs_status.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h
index 6e41129..f332351 100644
--- a/drivers/staging/lustre/lustre/include/lprocfs_status.h
+++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h
@@ -594,8 +594,6 @@ int lprocfs_rd_connect_flags(struct seq_file *m, void *data);
struct adaptive_timeout;
int lprocfs_at_hist_helper(struct seq_file *m, struct adaptive_timeout *at);
int lprocfs_rd_timeouts(struct seq_file *m, void *data);
-int lprocfs_wr_timeouts(struct file *file, const char __user *buffer,
- unsigned long count, void *data);
int lprocfs_wr_ping(struct file *file, const char __user *buffer,
size_t count, loff_t *off);
int lprocfs_wr_import(struct file *file, const char __user *buffer,
--
2.1.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file
2015-10-25 12:06 ` [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file Shraddha Barke
@ 2015-10-27 5:33 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2015-10-27 5:33 UTC (permalink / raw)
To: Shraddha Barke; +Cc: outreachy-kernel
On Sun, Oct 25, 2015 at 05:36:57PM +0530, Shraddha Barke wrote:
> Remove the header file obd_cache.h since it is not needed
> ---
> drivers/staging/lustre/lustre/include/obd_cache.h | 38 -----------------------
> 1 file changed, 38 deletions(-)
> delete mode 100644 drivers/staging/lustre/lustre/include/obd_cache.h
No signed-off-by: line :(
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions
2015-10-25 12:06 ` [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions Shraddha Barke
@ 2015-10-27 5:34 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2015-10-27 5:34 UTC (permalink / raw)
To: Shraddha Barke; +Cc: outreachy-kernel
On Sun, Oct 25, 2015 at 05:36:58PM +0530, Shraddha Barke wrote:
> Remove the functions which are defined but not used anywhere
> ---
> drivers/staging/lustre/lustre/include/lustre_log.h | 89 ----------------------
> 1 file changed, 89 deletions(-)
No signed-off-by line for the whole series :(
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-10-27 5:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 12:06 [PATCH 0/4] Staging: lustre: Remove unused code Shraddha Barke
2015-10-25 12:06 ` [PATCH 1/4] Staging: lustre: include: Remove unused obd_cache.h file Shraddha Barke
2015-10-27 5:33 ` [Outreachy kernel] " Greg KH
2015-10-25 12:06 ` [PATCH 2/4] Staging: lustre: lustre_log: Remove unused functions Shraddha Barke
2015-10-27 5:34 ` [Outreachy kernel] " Greg KH
2015-10-25 12:06 ` [PATCH 3/4] Staging: lustre: ptlrpc: Remove EXPORT_SYMBOL for sptlrpc_rule_set_expand Shraddha Barke
2015-10-25 12:07 ` [PATCH 4/4] Staging: lustre: lprocfs_status: Remove unused declaration Shraddha Barke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.