Commit 8e13059a37252c45ab7173a0e4bac05e4a444ab6
Committed by
Linus Torvalds
1 parent
38e13929c3
Exists in
master
and in
20 other branches
[PATCH] use list_add_tail() instead of list_add()
This patch converts list_add(A, B.prev) to list_add_tail(A, &B) for readability. Acked-by: Karsten Keil <kkeil@suse.de> Cc: Jan Harkes <jaharkes@cs.cmu.edu> Acked-by: Jan Kara <jack@suse.cz> AOLed-by: David Woodhouse <dwmw2@infradead.org> Cc: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: Akinobu Mita <mita@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 4 changed files with 5 additions and 5 deletions Side-by-side Diff
fs/coda/psdev.c
... | ... | @@ -259,7 +259,7 @@ |
259 | 259 | /* If request was not a signal, enqueue and don't free */ |
260 | 260 | if (!(req->uc_flags & REQ_ASYNC)) { |
261 | 261 | req->uc_flags |= REQ_READ; |
262 | - list_add(&(req->uc_chain), vcp->vc_processing.prev); | |
262 | + list_add_tail(&(req->uc_chain), &vcp->vc_processing); | |
263 | 263 | goto out; |
264 | 264 | } |
265 | 265 |
fs/coda/upcall.c
... | ... | @@ -725,7 +725,7 @@ |
725 | 725 | ((union inputArgs *)buffer)->ih.unique = req->uc_unique; |
726 | 726 | |
727 | 727 | /* Append msg to pending queue and poke Venus. */ |
728 | - list_add(&(req->uc_chain), vcommp->vc_pending.prev); | |
728 | + list_add_tail(&(req->uc_chain), &vcommp->vc_pending); | |
729 | 729 | |
730 | 730 | wake_up_interruptible(&vcommp->vc_waitq); |
731 | 731 | /* We can be interrupted while we wait for Venus to process |
fs/dcache.c
fs/dquot.c
... | ... | @@ -250,7 +250,7 @@ |
250 | 250 | /* Add a dquot to the tail of the free list */ |
251 | 251 | static inline void put_dquot_last(struct dquot *dquot) |
252 | 252 | { |
253 | - list_add(&dquot->dq_free, free_dquots.prev); | |
253 | + list_add_tail(&dquot->dq_free, &free_dquots); | |
254 | 254 | dqstats.free_dquots++; |
255 | 255 | } |
256 | 256 | |
... | ... | @@ -266,7 +266,7 @@ |
266 | 266 | { |
267 | 267 | /* We add to the back of inuse list so we don't have to restart |
268 | 268 | * when traversing this list and we block */ |
269 | - list_add(&dquot->dq_inuse, inuse_list.prev); | |
269 | + list_add_tail(&dquot->dq_inuse, &inuse_list); | |
270 | 270 | dqstats.allocated_dquots++; |
271 | 271 | } |
272 | 272 |