- use-list_add_tail-instead-of-list_add.patch removed from -mm tree

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

 



The patch titled

     use list_add_tail() instead of list_add()

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

     use-list_add_tail-instead-of-list_add.patch

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

------------------------------------------------------
Subject: use list_add_tail() instead of list_add()
From: Akinobu Mita <mita@xxxxxxxxxxxxxxxx>


This patch converts list_add(A, B.prev) to list_add_tail(A, &B) for
readability.

Acked-by: Karsten Keil <kkeil@xxxxxxx>
Cc: Jan Harkes <jaharkes@xxxxxxxxxx>
Acked-by: Jan Kara <jack@xxxxxxx>
AOLed-by: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Cc: Sridhar Samudrala <sri@xxxxxxxxxx>
Signed-off-by: Akinobu Mita <mita@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/coda/psdev.c  |    2 +-
 fs/coda/upcall.c |    2 +-
 fs/dcache.c      |    2 +-
 fs/dquot.c       |    4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff -puN fs/coda/psdev.c~use-list_add_tail-instead-of-list_add fs/coda/psdev.c
--- a/fs/coda/psdev.c~use-list_add_tail-instead-of-list_add
+++ a/fs/coda/psdev.c
@@ -259,7 +259,7 @@ static ssize_t coda_psdev_read(struct fi
 	/* If request was not a signal, enqueue and don't free */
 	if (!(req->uc_flags & REQ_ASYNC)) {
 		req->uc_flags |= REQ_READ;
-		list_add(&(req->uc_chain), vcp->vc_processing.prev);
+		list_add_tail(&(req->uc_chain), &vcp->vc_processing);
 		goto out;
 	}
 
diff -puN fs/coda/upcall.c~use-list_add_tail-instead-of-list_add fs/coda/upcall.c
--- a/fs/coda/upcall.c~use-list_add_tail-instead-of-list_add
+++ a/fs/coda/upcall.c
@@ -725,7 +725,7 @@ static int coda_upcall(struct coda_sb_in
 	((union inputArgs *)buffer)->ih.unique = req->uc_unique;
 
 	/* Append msg to pending queue and poke Venus. */
-	list_add(&(req->uc_chain), vcommp->vc_pending.prev);
+	list_add_tail(&(req->uc_chain), &vcommp->vc_pending);
         
 	wake_up_interruptible(&vcommp->vc_waitq);
 	/* We can be interrupted while we wait for Venus to process
diff -puN fs/dcache.c~use-list_add_tail-instead-of-list_add fs/dcache.c
--- a/fs/dcache.c~use-list_add_tail-instead-of-list_add
+++ a/fs/dcache.c
@@ -638,7 +638,7 @@ resume:
 		 * of the unused list for prune_dcache
 		 */
 		if (!atomic_read(&dentry->d_count)) {
-			list_add(&dentry->d_lru, dentry_unused.prev);
+			list_add_tail(&dentry->d_lru, &dentry_unused);
 			dentry_stat.nr_unused++;
 			found++;
 		}
diff -puN fs/dquot.c~use-list_add_tail-instead-of-list_add fs/dquot.c
--- a/fs/dquot.c~use-list_add_tail-instead-of-list_add
+++ a/fs/dquot.c
@@ -250,7 +250,7 @@ static inline struct dquot *find_dquot(u
 /* Add a dquot to the tail of the free list */
 static inline void put_dquot_last(struct dquot *dquot)
 {
-	list_add(&dquot->dq_free, free_dquots.prev);
+	list_add_tail(&dquot->dq_free, &free_dquots);
 	dqstats.free_dquots++;
 }
 
@@ -266,7 +266,7 @@ static inline void put_inuse(struct dquo
 {
 	/* We add to the back of inuse list so we don't have to restart
 	 * when traversing this list and we block */
-	list_add(&dquot->dq_inuse, inuse_list.prev);
+	list_add_tail(&dquot->dq_inuse, &inuse_list);
 	dqstats.allocated_dquots++;
 }
 
_

Patches currently in -mm which might be from mita@xxxxxxxxxxxxxxxx are

origin.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