All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] logfs: readwrite: Remove unused function
@ 2015-01-11 22:11 Rickard Strandqvist
  0 siblings, 0 replies; only message in thread
From: Rickard Strandqvist @ 2015-01-11 22:11 UTC (permalink / raw)
  To: Joern Engel, Prasad Joshi; +Cc: Rickard Strandqvist, logfs, linux-kernel

Remove the function init_shadow_tree() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 fs/logfs/readwrite.c |    9 ---------
 1 file changed, 9 deletions(-)

diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c
index 380d86e..eafaa29 100644
--- a/fs/logfs/readwrite.c
+++ b/fs/logfs/readwrite.c
@@ -377,15 +377,6 @@ static unsigned long get_bits(u64 val, level_t skip)
 	return __get_bits(val, (__force int)skip, LOGFS_BLOCK_BITS);
 }
 
-static inline void init_shadow_tree(struct super_block *sb,
-		struct shadow_tree *tree)
-{
-	struct logfs_super *super = logfs_super(sb);
-
-	btree_init_mempool64(&tree->new, super->s_btree_pool);
-	btree_init_mempool64(&tree->old, super->s_btree_pool);
-}
-
 static void indirect_write_block(struct logfs_block *block)
 {
 	struct page *page;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-11 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 22:11 [PATCH] logfs: readwrite: Remove unused function Rickard Strandqvist

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.