All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik Bobbaers <Rik.Bobbaers@cc.kuleuven.be>
To: linux-kernel@vger.kernel.org, linux-mm@vger.kernel.org
Subject: very small code cleanup
Date: Tue, 07 Nov 2006 15:30:04 +0100	[thread overview]
Message-ID: <4550986C.8020802@cc.kuleuven.be> (raw)

hey all,

in mm/mlock.c , mm is defined as vma->vm_mm, why not use that one for 
the decrement of pages?

proposed patch:
---------------
--- mm/mlock.c~ 2006-11-04 02:33:58.000000000 +0100
+++ mm/mlock.c  2006-11-07 15:23:48.000000000 +0100
@@ -65,7 +65,7 @@ success:
                         ret = make_pages_present(start, end);
         }

-       vma->vm_mm->locked_vm -= pages;
+       mm->locked_vm -= pages;
  out:
         if (ret == -ENOMEM)
                 ret = -EAGAIN;

---------------

tnx...

-- 
harry
aka Rik Bobbaers

K.U.Leuven - LUDIT          -=- Tel: +32 485 52 71 50
Rik.Bobbaers@cc.kuleuven.be -=- http://people.linux-vserver.org/~harry

thinking always leads to conclusions... and those can be extremely dangerous
-- me ;)

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


             reply	other threads:[~2006-11-07 14:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 14:30 Rik Bobbaers [this message]
2006-11-07 14:43 ` very small code cleanup Paulo Marques
2006-11-07 15:11   ` Hugh Dickins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4550986C.8020802@cc.kuleuven.be \
    --to=rik.bobbaers@cc.kuleuven.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.