Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321572 > unrolled thread

[PATCH] Staging:lustre:lclient:Remove unused function

Started byBhumika Goyal <bhumirks@gmail.com>
First post2016-01-29 09:50 +0100
Last post2016-01-29 09:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging:lustre:lclient:Remove unused function Bhumika Goyal <bhumirks@gmail.com> - 2016-01-29 09:50 +0100

#1321572 — [PATCH] Staging:lustre:lclient:Remove unused function

FromBhumika Goyal <bhumirks@gmail.com>
Date2016-01-29 09:50 +0100
Subject[PATCH] Staging:lustre:lclient:Remove unused function
Message-ID<qWcUH-90-27@gated-at.bofh.it>
Discard the function ccc_vmpage_page_transient as it is not used
anywhere in the kernel.
Used grep to find occurences.
Problem found using sparse.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c b/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
index 34dde7d..4dfeb4e 100644
--- a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
+++ b/drivers/staging/lustre/lustre/lclient/lcommon_cl.c
@@ -986,17 +986,6 @@ struct inode *ccc_object_inode(const struct cl_object *obj)
 }
 
 /**
- * Returns a pointer to cl_page associated with \a vmpage, without acquiring
- * additional reference to the resulting page. This is an unsafe version of
- * cl_vmpage_page() that can only be used under vmpage lock.
- */
-struct cl_page *ccc_vmpage_page_transient(struct page *vmpage)
-{
-	KLASSERT(PageLocked(vmpage));
-	return (struct cl_page *)vmpage->private;
-}
-
-/**
  * Initialize or update CLIO structures for regular files when new
  * meta-data arrives from the server.
  *
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web