You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
38e13929c3
commit
8e13059a37
+1
-1
@@ -259,7 +259,7 @@ static ssize_t coda_psdev_read(struct file * file, char __user * buf,
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -725,7 +725,7 @@ static int coda_upcall(struct coda_sb_info *sbi,
|
||||
((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
|
||||
|
||||
Reference in New Issue
Block a user