Skip to contentSkip to conversation

Staging: lustre: ldlm_lockd: Remove unused function

PATCH In review Shivani Bhardwaj 1 participant 2 messages Nov 1, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: ldlm_lockd: Remove unused function

Remove the function cancel_unused_locks_before_replay_show() as it is not called anywhere.

---
 drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c +0 -7
index ca11511..3af0a73 100644
@@ -873,13 +873,6 @@ EXPORT_SYMBOL(ldlm_put_ref);
 
 extern unsigned int ldlm_cancel_unused_locks_before_replay;
 
-static ssize_t cancel_unused_locks_before_replay_show(struct kobject *kobj,
-						      struct attribute *attr,
-						      char *buf)
-{
-	return sprintf(buf, "%d\n", ldlm_cancel_unused_locks_before_replay);
-}
-
 static ssize_t cancel_unused_locks_before_replay_store(struct kobject *kobj,
 						       struct attribute *attr,
 						       const char *buffer,
Signature · 1 line
2.1.0
#1 lore raw
Quoted 28 lines · Shivani Bhardwaj

Remove the function cancel_unused_locks_before_replay_show() as it is not called anywhere.

---

 drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 7 ------- 
 1 file changed, 7 deletions(-) 
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c +0 -7
index ca11511..3af0a73 100644 
@@ -873,13 +873,6 @@ EXPORT_SYMBOL(ldlm_put_ref); 
 
 extern unsigned int ldlm_cancel_unused_locks_before_replay; 
 
-static ssize_t cancel_unused_locks_before_replay_show(struct kobject 
 *kobj, 
-                                                      struct attribute 
 *attr, 
-                                                      char *buf) 
-{ 
-        return sprintf(buf, "%d\n", 
 ldlm_cancel_unused_locks_before_replay); 
-} 
- 
Quoted 10 lines

static ssize_t cancel_unused_locks_before_replay_store(struct kobject
*kobj,
struct attribute
*attr,
const char
*buffer,

Signature · 1 line
2.1.0 

This patch does not apply. I'm sorry. This is wrong, I just figured out.