mm/pdflush.c: merge the same code in two path
PATCH 1/1 mm/pdflush.c: merge the same code in two path
--- mm/pdflush.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
mm/pdflush.c +2 -2
@@ -207,7 +207,6 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0)spin_lock_irqsave (&pdflush_lock, flags);if (list_empty (&pdflush_list)) { -spin_unlock_irqrestore (&pdflush_lock, flags); ret =-1 ; }else {struct pdflush_work *pdf;
@@ -219,8 +218,9 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0) pdf->fn = fn; pdf->arg0 = arg0;wake_up_process (pdf->who); -spin_unlock_irqrestore (&pdflush_lock, flags); } +spin_unlock_irqrestore (&pdflush_lock, flags); +return ret; }
Signature · 7 lines
1.5.5.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>