- fs-reiser4-misc-cleanups.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     fs/reiser4/: misc cleanups

has been removed from the -mm tree.  Its filename is

     fs-reiser4-misc-cleanups.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.

------------------------------------------------------
Subject: fs/reiser4/: misc cleanups
From: Adrian Bunk <bunk@xxxxxxxxx>


Make some needlessly global code static and #ifdef some unused code away.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
Cc: <reiserfs-dev@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/reiser4/debug.c                         |   31 +++-----
 fs/reiser4/debug.h                         |    2 
 fs/reiser4/entd.c                          |    4 +
 fs/reiser4/entd.h                          |    2 
 fs/reiser4/estimate.c                      |    2 
 fs/reiser4/inode.c                         |    2 
 fs/reiser4/inode.h                         |    1 
 fs/reiser4/jnode.c                         |   62 ++++++++---------
 fs/reiser4/jnode.h                         |    2 
 fs/reiser4/plugin/cluster.h                |    3 
 fs/reiser4/plugin/compress/compress_mode.c |    2 
 fs/reiser4/plugin/file/cryptcompress.c     |   69 +++++++++++--------
 fs/reiser4/plugin/file/cryptcompress.h     |    7 -
 fs/reiser4/plugin/file/file.h              |    3 
 fs/reiser4/plugin/file/funcs.h             |    2 
 fs/reiser4/plugin/file_ops.c               |    2 
 fs/reiser4/plugin/file_plugin_common.c     |    2 
 fs/reiser4/plugin/item/ctail.c             |    2 
 fs/reiser4/plugin/object.h                 |    3 
 fs/reiser4/plugin/plugin_set.c             |    8 +-
 fs/reiser4/plugin/plugin_set.h             |    5 -
 21 files changed, 106 insertions(+), 110 deletions(-)

diff -puN fs/reiser4/debug.c~fs-reiser4-misc-cleanups fs/reiser4/debug.c
--- devel/fs/reiser4/debug.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/debug.c	2006-05-17 13:10:17.000000000 -0700
@@ -123,22 +123,6 @@ int preempt_point(void)
 }
 
 #if REISER4_DEBUG
-
-/* check that no spinlocks are held */
-int schedulable(void)
-{
-	if (get_current_context_check() != NULL) {
-		if (!LOCK_CNT_NIL(spin_locked)) {
-			print_lock_counters("in atomic", lock_counters());
-			return 0;
-		}
-	}
-	might_sleep();
-	return 1;
-}
-#endif
-
-#if REISER4_DEBUG
 /* Debugging aid: return struct where information about locks taken by current
    thread is accumulated. This can be used to formulate lock ordering
    constraints and various assertions.
@@ -154,7 +138,8 @@ lock_counters_info *lock_counters(void)
 /*
  * print human readable information about locks held by the reiser4 context.
  */
-void print_lock_counters(const char *prefix, const lock_counters_info * info)
+static void print_lock_counters(const char *prefix,
+				const lock_counters_info * info)
 {
 	printk("%s: jnode: %i, tree: %i (r:%i,w:%i), dk: %i (r:%i,w:%i)\n"
 	       "jload: %i, "
@@ -187,6 +172,18 @@ void print_lock_counters(const char *pre
 	       info->d_refs, info->x_refs, info->t_refs);
 }
 
+/* check that no spinlocks are held */
+int schedulable(void)
+{
+	if (get_current_context_check() != NULL) {
+		if (!LOCK_CNT_NIL(spin_locked)) {
+			print_lock_counters("in atomic", lock_counters());
+			return 0;
+		}
+	}
+	might_sleep();
+	return 1;
+}
 /*
  * return true, iff no locks are held.
  */
diff -puN fs/reiser4/debug.h~fs-reiser4-misc-cleanups fs/reiser4/debug.h
--- devel/fs/reiser4/debug.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/debug.h	2006-05-17 13:10:17.000000000 -0700
@@ -229,8 +229,6 @@ extern void reiser4_print_stats(void);
 
 
 #if REISER4_DEBUG
-extern void print_lock_counters(const char *prefix,
-				const lock_counters_info * info);
 extern int no_counters_are_held(void);
 extern int commit_check_locks(void);
 #else
diff -puN fs/reiser4/entd.c~fs-reiser4-misc-cleanups fs/reiser4/entd.c
--- devel/fs/reiser4/entd.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/entd.c	2006-05-17 13:10:17.000000000 -0700
@@ -86,6 +86,8 @@ static struct wbq *__get_wbq(entd_contex
 	return wbq;
 }
 
+#if 0
+
 struct wbq * get_wbq(struct super_block * super)
 {
 	struct wbq *result;
@@ -107,6 +109,8 @@ void put_wbq(struct super_block *super, 
 	spin_unlock(&ent->guard);
 }
 
+#endif  /*  0  */
+
 static void wakeup_all_wbq(entd_context * ent)
 {
 	struct wbq *rq;
diff -puN fs/reiser4/entd.h~fs-reiser4-misc-cleanups fs/reiser4/entd.h
--- devel/fs/reiser4/entd.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/entd.h	2006-05-17 13:10:17.000000000 -0700
@@ -75,8 +75,6 @@ extern int write_page_by_ent(struct page
 extern int wbq_available(void);
 extern void ent_writes_page(struct super_block *, struct page *);
 
-extern struct wbq *get_wbq(struct super_block *);
-extern void put_wbq(struct super_block *, struct wbq *);
 extern jnode *get_jnode_by_wbq(struct super_block *, struct wbq *);
 /* __ENTD_H__ */
 #endif
diff -puN fs/reiser4/estimate.c~fs-reiser4-misc-cleanups fs/reiser4/estimate.c
--- devel/fs/reiser4/estimate.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/estimate.c	2006-05-17 13:10:17.000000000 -0700
@@ -70,7 +70,7 @@ reiser4_block_nr estimate_insert_flow(tr
 }
 
 /* returnes max number of nodes can be occupied by disk cluster */
-reiser4_block_nr estimate_cluster(struct inode * inode, int unprepped)
+static reiser4_block_nr estimate_cluster(struct inode * inode, int unprepped)
 {
 	int per_cluster;
 	per_cluster = (unprepped ? 1 : cluster_nrpages(inode));
diff -puN fs/reiser4/inode.c~fs-reiser4-misc-cleanups fs/reiser4/inode.c
--- devel/fs/reiser4/inode.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/inode.c	2006-05-17 13:10:17.000000000 -0700
@@ -521,11 +521,13 @@ dir_plugin *inode_dir_plugin(const struc
 	return reiser4_inode_data(inode)->pset->dir;
 }
 
+#if 0
 perm_plugin *inode_perm_plugin(const struct inode * inode)
 {
 	assert("nikita-1999", inode != NULL);
 	return reiser4_inode_data(inode)->pset->perm;
 }
+#endif  /*  0  */
 
 formatting_plugin *inode_formatting_plugin(const struct inode * inode)
 {
diff -puN fs/reiser4/inode.h~fs-reiser4-misc-cleanups fs/reiser4/inode.h
--- devel/fs/reiser4/inode.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/inode.h	2006-05-17 13:10:17.000000000 -0700
@@ -340,7 +340,6 @@ is_inode_loaded(const struct inode *inod
 
 extern file_plugin *inode_file_plugin(const struct inode *inode);
 extern dir_plugin *inode_dir_plugin(const struct inode *inode);
-extern perm_plugin *inode_perm_plugin(const struct inode *inode);
 extern formatting_plugin *inode_formatting_plugin(const struct inode *inode);
 extern hash_plugin *inode_hash_plugin(const struct inode *inode);
 extern fibration_plugin *inode_fibration_plugin(const struct inode *inode);
diff -puN fs/reiser4/jnode.c~fs-reiser4-misc-cleanups fs/reiser4/jnode.c
--- devel/fs/reiser4/jnode.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/jnode.c	2006-05-17 13:10:17.000000000 -0700
@@ -1824,34 +1824,6 @@ int jnode_invariant_f(const jnode * node
 
 }
 
-/* debugging aid: check znode invariant and panic if it doesn't hold */
-static int jnode_invariant(const jnode * node, int tlocked, int jlocked)
-{
-	char const *failed_msg;
-	int result;
-	reiser4_tree *tree;
-
-	tree = jnode_get_tree(node);
-
-	assert("umka-063312", node != NULL);
-	assert("umka-064321", tree != NULL);
-
-	if (!jlocked && !tlocked)
-		spin_lock_jnode((jnode *) node);
-	if (!tlocked)
-		read_lock_tree(jnode_get_tree(node));
-	result = jnode_invariant_f(node, &failed_msg);
-	if (!result) {
-		info_jnode("corrupted node", node);
-		warning("jmacd-555", "Condition %s failed", failed_msg);
-	}
-	if (!tlocked)
-		read_unlock_tree(jnode_get_tree(node));
-	if (!jlocked && !tlocked)
-		spin_unlock_jnode((jnode *) node);
-	return result;
-}
-
 static const char *jnode_type_name(jnode_type type)
 {
 	switch (type) {
@@ -1880,8 +1852,8 @@ static const char *jnode_type_name(jnode
 	( JF_ISSET( ( node ), ( flag ) ) ? ((#flag "|")+6) : "" )
 
 /* debugging aid: output human readable information about @node */
-void info_jnode(const char *prefix /* prefix to print */ ,
-		const jnode * node /* node to print */ )
+static void info_jnode(const char *prefix /* prefix to print */ ,
+		       const jnode * node /* node to print */ )
 {
 	assert("umka-068", prefix != NULL);
 
@@ -1925,8 +1897,37 @@ void info_jnode(const char *prefix /* pr
 }
 
 
+/* debugging aid: check znode invariant and panic if it doesn't hold */
+static int jnode_invariant(const jnode * node, int tlocked, int jlocked)
+{
+	char const *failed_msg;
+	int result;
+	reiser4_tree *tree;
+
+	tree = jnode_get_tree(node);
+
+	assert("umka-063312", node != NULL);
+	assert("umka-064321", tree != NULL);
+
+	if (!jlocked && !tlocked)
+		spin_lock_jnode((jnode *) node);
+	if (!tlocked)
+		read_lock_tree(jnode_get_tree(node));
+	result = jnode_invariant_f(node, &failed_msg);
+	if (!result) {
+		info_jnode("corrupted node", node);
+		warning("jmacd-555", "Condition %s failed", failed_msg);
+	}
+	if (!tlocked)
+		read_unlock_tree(jnode_get_tree(node));
+	if (!jlocked && !tlocked)
+		spin_unlock_jnode((jnode *) node);
+	return result;
+}
+
 #endif				/* REISER4_DEBUG */
 
+#if REISER4_COPY_ON_CAPTURE
 /* this is only used to created jnode during capture copy */
 jnode *jclone(jnode * node)
 {
@@ -1942,6 +1943,7 @@ jnode *jclone(jnode * node)
 	JF_SET(clone, JNODE_CC);
 	return clone;
 }
+#endif  /*  REISER4_COPY_ON_CAPTURE  */
 
 /* Make Linus happy.
    Local variables:
diff -puN fs/reiser4/jnode.h~fs-reiser4-misc-cleanups fs/reiser4/jnode.h
--- devel/fs/reiser4/jnode.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/jnode.h	2006-05-17 13:10:17.000000000 -0700
@@ -449,12 +449,10 @@ extern int jnodes_tree_done(reiser4_tree
 
 extern int znode_is_any_locked(const znode * node);
 extern void jnode_list_remove(jnode * node);
-extern void info_jnode(const char *prefix, const jnode * node);
 
 #else
 
 #define jnode_list_remove(node) noop
-#define info_jnode(p, n) noop
 
 #endif
 
diff -puN fs/reiser4/plugin/cluster.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/cluster.h
--- devel/fs/reiser4/plugin/cluster.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/cluster.h	2006-05-17 13:10:17.000000000 -0700
@@ -245,8 +245,6 @@ void forget_cluster_pages(struct page **
 int flush_cluster_pages(reiser4_cluster_t *, jnode *, struct inode *);
 int deflate_cluster(reiser4_cluster_t *, struct inode *);
 void truncate_page_cluster(struct inode *inode, cloff_t start);
-void set_hint_cluster(struct inode *inode, hint_t * hint, unsigned long index,
-		      znode_lock_mode mode);
 void invalidate_hint_cluster(reiser4_cluster_t * clust);
 void put_hint_cluster(reiser4_cluster_t * clust, struct inode *inode,
 		      znode_lock_mode mode);
@@ -263,7 +261,6 @@ int grab_tfm_stream(struct inode *inode,
 int tfm_cluster_is_uptodate(tfm_cluster_t * tc);
 void tfm_cluster_set_uptodate(tfm_cluster_t * tc);
 void tfm_cluster_clr_uptodate(tfm_cluster_t * tc);
-unsigned long clust_by_coord(const coord_t * coord, struct inode *inode);
 
 /* move cluster handle to the target position
    specified by the page of index @pgidx
diff -puN fs/reiser4/plugin/compress/compress_mode.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/compress/compress_mode.c
--- devel/fs/reiser4/plugin/compress/compress_mode.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/compress/compress_mode.c	2006-05-17 13:10:17.000000000 -0700
@@ -25,7 +25,7 @@ static int should_deflate_common(struct 
 }
 
 /* generic turn on/off compression */
-int switch_compression(struct inode *inode)
+static int switch_compression(struct inode *inode)
 {
 	int result;
 
diff -puN fs/reiser4/plugin/file/cryptcompress.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/file/cryptcompress.c
--- devel/fs/reiser4/plugin/file/cryptcompress.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file/cryptcompress.c	2006-05-17 13:10:17.000000000 -0700
@@ -19,7 +19,7 @@
 #include <linux/random.h>
 
 /* get cryptcompress specific portion of inode */
-cryptcompress_info_t *cryptcompress_inode_data(const struct inode *inode)
+static cryptcompress_info_t *cryptcompress_inode_data(const struct inode *inode)
 {
 	return &reiser4_inode_data(inode)->file_plugin_data.cryptcompress_info;
 }
@@ -100,6 +100,7 @@ crypto_stat_t * alloc_crypto_stat (struc
 	return info;
 }
 
+#if 0
 static int
 alloc_crypto_tfms(plugin_set * pset, crypto_stat_t * info)
 {
@@ -139,6 +140,7 @@ alloc_crypto_tfms(plugin_set * pset, cry
 	}
 	return RETERR(-EINVAL);
 }
+#endif  /*  0  */
 
 static void
 free_crypto_tfms(crypto_stat_t * info)
@@ -153,6 +155,7 @@ free_crypto_tfms(crypto_stat_t * info)
 	return;
 }
 
+#if 0
 static int create_keyid (crypto_stat_t * info, crypto_data_t * data)
 {
 	int ret = -ENOMEM;
@@ -207,6 +210,7 @@ static int create_keyid (crypto_stat_t *
  exit1:
 	return ret;
 }
+#endif  /*  0  */
 
 static void destroy_keyid(crypto_stat_t * info)
 {
@@ -225,12 +229,14 @@ static void free_crypto_stat (crypto_sta
 	kfree(info);
 }
 
+#if 0
 static void instantiate_crypto_stat(crypto_stat_t * info)
 {
 	assert("edward-1373", info != NULL);
 	assert("edward-1374", info->inst == 0);
 	info->inst = 1;
 }
+#endif  /*  0  */
 
 static void uninstantiate_crypto_stat(crypto_stat_t * info)
 {
@@ -238,7 +244,7 @@ static void uninstantiate_crypto_stat(cr
 	info->inst = 0;
 }
 
-int crypto_stat_instantiated(crypto_stat_t * info)
+static int crypto_stat_instantiated(crypto_stat_t * info)
 {
 	return info->inst;
 }
@@ -256,7 +262,14 @@ static void inode_free_crypto_stat (stru
 	free_crypto_stat(inode_crypto_stat(inode));
 }
 
+static int need_cipher(struct inode * inode)
+{
+	return inode_cipher_plugin(inode) !=
+		cipher_plugin_by_id(NONE_CIPHER_ID);
+}
+
 /* Instantiate a crypto-stat represented by low-lewel @data for the @object */
+#if 0
 crypto_stat_t *
 create_crypto_stat(struct inode * object, crypto_data_t * data)
 {
@@ -300,6 +313,7 @@ create_crypto_stat(struct inode * object
 	free_crypto_stat(info);
  	return ERR_PTR(ret);
 }
+#endif  /*  0  */
 
 static void load_crypto_stat(crypto_stat_t * info)
 {
@@ -328,6 +342,24 @@ void attach_crypto_stat(struct inode * i
 	load_crypto_stat(info);
 }
 
+/* returns true, if crypto stat can be attached to the @host */
+#if REISER4_DEBUG
+static int host_allows_crypto_stat(struct inode * host)
+{
+	int ret;
+	file_plugin * fplug = inode_file_plugin(host);
+
+	switch (fplug->h.id) {
+	case CRC_FILE_PLUGIN_ID:
+		ret = 1;
+		break;
+	default:
+		ret = 0;
+	}
+	return ret;
+}
+#endif  /*  REISER4_DEBUG  */
+
 void detach_crypto_stat(struct inode * inode)
 {
 	assert("edward-1385", inode != NULL);
@@ -338,6 +370,8 @@ void detach_crypto_stat(struct inode * i
 	set_inode_crypto_stat(inode, NULL);
 }
 
+#if 0
+
 static int keyid_eq(crypto_stat_t * child, crypto_stat_t * parent)
 {
 	return !memcmp(child->keyid, parent->keyid, info_digest_plugin(parent)->fipsize);
@@ -359,27 +393,7 @@ int can_inherit_crypto_crc(struct inode 
 		keyid_eq(inode_crypto_stat(child), inode_crypto_stat(parent)));
 }
 
-int need_cipher(struct inode * inode)
-{
-	return inode_cipher_plugin(inode) !=
-		cipher_plugin_by_id(NONE_CIPHER_ID);
-}
-
-/* returns true, if crypto stat can be attached to the @host */
-int host_allows_crypto_stat(struct inode * host)
-{
-	int ret;
-	file_plugin * fplug = inode_file_plugin(host);
-
-	switch (fplug->h.id) {
-	case CRC_FILE_PLUGIN_ID:
-		ret = 1;
-		break;
-	default:
-		ret = 0;
-	}
-	return ret;
-}
+#endif  /*  0  */
 
 static int inode_set_crypto(struct inode * object)
 {
@@ -1248,6 +1262,7 @@ int readpage_cryptcompress(struct file *
 }
 
 /* plugin->readpages() */
+#if 0
 void
 readpages_cryptcompress(struct file *file, struct address_space *mapping,
 			struct list_head *pages)
@@ -1270,6 +1285,7 @@ readpages_cryptcompress(struct file *fil
 
 	return;
 }
+#endif  /*  0  */
 
 /* how much pages will be captured */
 static int cluster_nrpages_to_capture(reiser4_cluster_t * clust)
@@ -1885,9 +1901,8 @@ flush_cluster_pages(reiser4_cluster_t * 
 }
 
 /* set hint for the cluster of the index @index */
-void
-set_hint_cluster(struct inode *inode, hint_t * hint,
-		 cloff_t index, znode_lock_mode mode)
+static void set_hint_cluster(struct inode *inode, hint_t * hint,
+			     cloff_t index, znode_lock_mode mode)
 {
 	reiser4_key key;
 	assert("edward-722", crc_inode_ok(inode));
@@ -3668,6 +3683,7 @@ int mmap_cryptcompress(struct file *file
 /* implentation of vfs' bmap method of struct address_space_operations for
    cryptcompress plugin
 */
+#if 0
 sector_t bmap_cryptcompress(struct address_space * mapping, sector_t lblock)
 {
 	struct inode *inode;
@@ -3727,6 +3743,7 @@ sector_t bmap_cryptcompress(struct addre
 		return result;
 	}
 }
+#endif  /*  0  */
 
 /* this is implementation of delete method of file plugin for
    cryptcompress objects */
diff -puN fs/reiser4/plugin/file/cryptcompress.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/file/cryptcompress.h
--- devel/fs/reiser4/plugin/file/cryptcompress.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file/cryptcompress.h	2006-05-17 13:10:17.000000000 -0700
@@ -436,14 +436,11 @@ typedef struct cryptcompress_info {
 	crypto_stat_t *crypt;
 } cryptcompress_info_t;
 
-cryptcompress_info_t *cryptcompress_inode_data(const struct inode *inode);
 int equal_to_rdk(znode *, const reiser4_key *);
 int goto_right_neighbor(coord_t *, lock_handle *);
 int load_file_hint(struct file *, hint_t *);
 void save_file_hint(struct file *, const hint_t *);
 void hint_init_zero(hint_t *);
-int need_cipher (struct inode *);
-int host_allows_crypto_stat(struct inode * inode);
 int crc_inode_ok(struct inode *inode);
 int jnode_of_cluster(const jnode * node, struct page * page);
 extern int ctail_read_disk_cluster (reiser4_cluster_t *, struct inode *, int);
@@ -457,14 +454,10 @@ crypto_stat_t * inode_crypto_stat (struc
 void inherit_crypto_stat_common(struct inode * parent, struct inode * object,
 				int (*can_inherit)(struct inode * child,
 						   struct inode * parent));
-crypto_stat_t * create_crypto_stat(struct inode * parent, crypto_data_t * data);
-int crypto_stat_instantiated(crypto_stat_t * info);
 void attach_crypto_stat(struct inode * inode, crypto_stat_t * info);
 void detach_crypto_stat(struct inode * inode);
 void change_crypto_stat(struct inode * inode, crypto_stat_t * new);
-int can_inherit_crypto_crc(struct inode *child, struct inode *parent);
 crypto_stat_t * alloc_crypto_stat (struct inode * inode);
-int switch_compression(struct inode *inode);
 
 
 static inline reiser4_tfma_t *
diff -puN fs/reiser4/plugin/file/file.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/file/file.h
--- devel/fs/reiser4/plugin/file/file.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file/file.h	2006-05-17 13:10:17.000000000 -0700
@@ -192,9 +192,6 @@ int release_cryptcompress(struct inode *
 extern int readpage_cryptcompress(struct file *, struct page *);
 extern int writepages_cryptcompress(struct address_space *,
 				     struct writeback_control *);
-extern void readpages_cryptcompress(struct file *, struct address_space *,
-				    struct list_head *pages);
-extern sector_t bmap_cryptcompress(struct address_space *, sector_t lblock);
 
 
 /* file plugin operations */
diff -puN fs/reiser4/plugin/file/funcs.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/file/funcs.h
--- devel/fs/reiser4/plugin/file/funcs.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file/funcs.h	2006-05-17 13:10:17.000000000 -0700
@@ -16,7 +16,7 @@ write_mode_t how_to_write(uf_coord_t *, 
 int equal_to_ldk(znode *, const reiser4_key *);
 #endif
 
-extern inline int cbk_errored(int cbk_result)
+static inline int cbk_errored(int cbk_result)
 {
 	return (cbk_result != CBK_COORD_NOTFOUND
 		&& cbk_result != CBK_COORD_FOUND);
diff -puN fs/reiser4/plugin/file_ops.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/file_ops.c
--- devel/fs/reiser4/plugin/file_ops.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file_ops.c	2006-05-17 13:10:17.000000000 -0700
@@ -64,6 +64,7 @@ int sync_common(struct file *file, struc
    Reads @count bytes from @file and calls @actor for every page read. This is
    needed for loop back devices support.
 */
+#if 0
 ssize_t
 sendfile_common(struct file *file, loff_t *ppos, size_t count,
 		read_actor_t actor, void *target)
@@ -78,6 +79,7 @@ sendfile_common(struct file *file, loff_
 	reiser4_exit_context(ctx);
 	return result;
 }
+#endif  /*  0  */
 
 /* address space operations */
 
diff -puN fs/reiser4/plugin/file_plugin_common.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/file_plugin_common.c
--- devel/fs/reiser4/plugin/file_plugin_common.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/file_plugin_common.c	2006-05-17 13:10:17.000000000 -0700
@@ -709,7 +709,7 @@ int lookup_sd(struct inode *inode /* ino
 	return result;
 }
 
-int
+static int
 locate_inode_sd(struct inode *inode,
 		reiser4_key * key, coord_t * coord, lock_handle * lh)
 {
diff -puN fs/reiser4/plugin/item/ctail.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/item/ctail.c
--- devel/fs/reiser4/plugin/item/ctail.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/item/ctail.c	2006-05-17 13:10:17.000000000 -0700
@@ -68,7 +68,7 @@ static int coord_is_unprepped_ctail(cons
 	return (int)cluster_shift_by_coord(coord) == (int)UCTAIL_SHIFT;
 }
 
-cloff_t clust_by_coord(const coord_t * coord, struct inode *inode)
+static cloff_t clust_by_coord(const coord_t * coord, struct inode *inode)
 {
 	int shift;
 
diff -puN fs/reiser4/plugin/object.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/object.h
--- devel/fs/reiser4/plugin/object.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/object.h	2006-05-17 13:10:17.000000000 -0700
@@ -34,8 +34,6 @@ loff_t llseek_common_dir(struct file *, 
 int readdir_common(struct file *, void *dirent, filldir_t);
 int release_dir_common(struct inode *, struct file *);
 int sync_common(struct file *, struct dentry *, int datasync);
-ssize_t sendfile_common(struct file *, loff_t *ppos, size_t count,
-			read_actor_t, void *target);
 
 /* common implementations of address space operations */
 int prepare_write_common(struct file *, struct page *, unsigned from,
@@ -105,7 +103,6 @@ reiser4_block_nr dir_estimate_unlink_com
 int do_prepare_write(struct file *, struct page *, unsigned from, unsigned to);
 
 /* merely useful functions */
-int locate_inode_sd(struct inode *, reiser4_key *, coord_t *, lock_handle *);
 int lookup_sd(struct inode *, znode_lock_mode, coord_t *, lock_handle *,
 	      const reiser4_key *, int silent);
 
diff -puN fs/reiser4/plugin/plugin_set.c~fs-reiser4-misc-cleanups fs/reiser4/plugin/plugin_set.c
--- devel/fs/reiser4/plugin/plugin_set.c~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/plugin_set.c	2006-05-17 13:10:17.000000000 -0700
@@ -320,12 +320,12 @@ DEFINE_PLUGIN_SET(file_plugin, file)
     DEFINE_PLUGIN_SET(hash_plugin, hash)
     DEFINE_PLUGIN_SET(fibration_plugin, fibration)
     DEFINE_PLUGIN_SET(item_plugin, sd)
-    DEFINE_PLUGIN_SET(cipher_plugin, cipher)
-    DEFINE_PLUGIN_SET(digest_plugin, digest)
+    /* DEFINE_PLUGIN_SET(cipher_plugin, cipher) */
+    /* DEFINE_PLUGIN_SET(digest_plugin, digest) */
     DEFINE_PLUGIN_SET(compression_plugin, compression)
-    DEFINE_PLUGIN_SET(compression_mode_plugin, compression_mode)
+    /* DEFINE_PLUGIN_SET(compression_mode_plugin, compression_mode) */
     DEFINE_PLUGIN_SET(cluster_plugin, cluster)
-    DEFINE_PLUGIN_SET(regular_plugin, regular_entry)
+    /* DEFINE_PLUGIN_SET(regular_plugin, regular_entry) */
 
 
 /**
diff -puN fs/reiser4/plugin/plugin_set.h~fs-reiser4-misc-cleanups fs/reiser4/plugin/plugin_set.h
--- devel/fs/reiser4/plugin/plugin_set.h~fs-reiser4-misc-cleanups	2006-05-17 13:10:17.000000000 -0700
+++ devel-akpm/fs/reiser4/plugin/plugin_set.h	2006-05-17 13:10:17.000000000 -0700
@@ -57,13 +57,8 @@ extern int plugin_set_formatting(plugin_
 extern int plugin_set_hash(plugin_set ** set, hash_plugin * plug);
 extern int plugin_set_fibration(plugin_set ** set, fibration_plugin * plug);
 extern int plugin_set_sd(plugin_set ** set, item_plugin * plug);
-extern int plugin_set_cipher(plugin_set ** set, cipher_plugin * plug);
-extern int plugin_set_digest(plugin_set ** set, digest_plugin * plug);
 extern int plugin_set_compression(plugin_set ** set, compression_plugin * plug);
-extern int plugin_set_compression_mode(plugin_set ** set,
-				       compression_mode_plugin * plug);
 extern int plugin_set_cluster(plugin_set ** set, cluster_plugin * plug);
-extern int plugin_set_regular_entry(plugin_set ** set, regular_plugin * plug);
 
 extern int init_plugin_set(void);
 extern void done_plugin_set(void);
_

Patches currently in -mm which might be from bunk@xxxxxxxxx are

git-acpi.patch
acpiphp-use-new-dock-driver-fix.patch
git-dvb.patch
git-gfs2.patch
git-intelfb.patch
git-mtd.patch
git-netdev-all.patch
drivers-char-hw_randomc-remove-asserts.patch
git-nfs.patch
gregkh-pci-acpiphp-configure-_prt-v3-cleanup.patch
drivers-scsi-aic7xxx-possible-cleanups.patch
drivers-scsi-small-cleanups.patch
drivers-scsi-megaraidc-add-a-dummy-mega_create_proc_entry-for-proc_fs=y.patch
drivers-scsi-gdthc-make-__gdth_execute-static.patch
drivers-scsi-qla2xxx-make-some-functions-static.patch
drivers-scsi-aic7xxx-aic79xx_corec-make-ahd_done_with_status-static.patch
remove-drivers-scsi-constantscscsi_print_req_sense.patch
drivers-scsi-aic7xxx-aic79xx_corec-make-ahd_match_scb-static.patch
drivers-scsi-aic7xxx-possible-cleanups-2.patch
x86_64-unexport-ia32_sys_call_table.patch
swsusp-rework-memory-shrinker-rev-2-fix.patch
acx1xx-wireless-driver.patch
arch-i386-kernel-apicc-make-modern_apic-static.patch
kernel-power-snapshotc-cleanups.patch
remove-fs-jffs2-ioctlc.patch
fs-locksc-make-posix_locks_deadlock-static.patch
remove-config_parport_arc-drivers-parport-parport_arcc.patch
fs-fat-miscc-unexport-fat_sync_bhs.patch
the-scheduled-unexport-of-insert_resource.patch
fs-bufferc-possible-cleanups.patch
drivers-md-raid6algosc-fix-a-null-dereference.patch
drivers-char-applicomc-proper-module_initexit.patch
kernel-sysc-cleanups.patch
kernel-sysc-cleanups-fix.patch
time-i386-clocksource-drivers.patch
fbdev-cleanup-the-config_video_select-mess.patch
fbdev-remove-duplicate-includes.patch
md-make-md_print_devices-static.patch
slab-cache-shrinker-statistics.patch
i386-enable-4k-stacks-by-default.patch
mutex-subsystem-synchro-test-module.patch
drivers-char-ipmi-ipmi_msghandlerc-make-proc_ipmi_root-static.patch
drivers-message-i2o-iopc-unexport-i2o_msg_nop.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux