- jffs2-use-rb_first-and-rb_last-cleanup.patch removed from -mm tree

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

 



The patch titled
     jffs2: use rb_first() and rb_last() cleanup
has been removed from the -mm tree.  Its filename was
     jffs2-use-rb_first-and-rb_last-cleanup.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: jffs2: use rb_first() and rb_last() cleanup
From: Akinobu Mita <akinobu.mita@xxxxxxxxx>

Use rb_first() and rb_last() to implement frag_first() and frag_last().

Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Signed-off-by: Akinbou Mita <akinobu.mita@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/jffs2/nodelist.h |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff -puN fs/jffs2/nodelist.h~jffs2-use-rb_first-and-rb_last-cleanup fs/jffs2/nodelist.h
--- a/fs/jffs2/nodelist.h~jffs2-use-rb_first-and-rb_last-cleanup
+++ a/fs/jffs2/nodelist.h
@@ -294,23 +294,21 @@ static inline int jffs2_encode_dev(union
 
 static inline struct jffs2_node_frag *frag_first(struct rb_root *root)
 {
-	struct rb_node *node = root->rb_node;
+	struct rb_node *node = rb_first(root);
 
 	if (!node)
 		return NULL;
-	while(node->rb_left)
-		node = node->rb_left;
+
 	return rb_entry(node, struct jffs2_node_frag, rb);
 }
 
 static inline struct jffs2_node_frag *frag_last(struct rb_root *root)
 {
-	struct rb_node *node = root->rb_node;
+	struct rb_node *node = rb_last(root);
 
 	if (!node)
 		return NULL;
-	while(node->rb_right)
-		node = node->rb_right;
+
 	return rb_entry(node, struct jffs2_node_frag, rb);
 }
 
_

Patches currently in -mm which might be from akinobu.mita@xxxxxxxxx are

origin.patch
debugfs-check-return-value-correctly.patch
git-mtd.patch
git-cryptodev.patch
bit-revese-library.patch
crc32-replace-bitreverse-by-bitrev32.patch
video-use-bitrev8.patch
net-use-bitrev8.patch
isdn-hisax-use-bitrev8.patch
atm-ambassador-use-bitrev8.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