linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mempolicy: remove redundant check in __mpol_equal()
@ 2011-02-22 10:51 Namhyung Kim
  2011-02-22 12:21 ` Minchan Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2011-02-22 10:51 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-mm, linux-kernel, Bob Liu, Lee Schermerhorn

The 'flags' field is already checked, no need to do it again.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Bob Liu <lliubbo@gmail.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
---
 mm/mempolicy.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 368fc9d23610..4244e4988e66 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1979,8 +1979,7 @@ int __mpol_equal(struct mempolicy *a, struct mempolicy *b)
 	case MPOL_INTERLEAVE:
 		return nodes_equal(a->v.nodes, b->v.nodes);
 	case MPOL_PREFERRED:
-		return a->v.preferred_node == b->v.preferred_node &&
-			a->flags == b->flags;
+		return a->v.preferred_node == b->v.preferred_node;
 	default:
 		BUG();
 		return 0;
-- 
1.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mempolicy: remove redundant check in __mpol_equal()
  2011-02-22 10:51 [PATCH] mempolicy: remove redundant check in __mpol_equal() Namhyung Kim
@ 2011-02-22 12:21 ` Minchan Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Minchan Kim @ 2011-02-22 12:21 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: Andrew Morton, linux-mm, linux-kernel, Bob Liu, Lee Schermerhorn

On Tue, Feb 22, 2011 at 7:51 PM, Namhyung Kim <namhyung@gmail.com> wrote:
> The 'flags' field is already checked, no need to do it again.
>
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> Cc: Bob Liu <lliubbo@gmail.com>
> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>

Bob's mempolicy: remove redundant check(1980050250) made it redundant.
Good eye!


-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-22 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 10:51 [PATCH] mempolicy: remove redundant check in __mpol_equal() Namhyung Kim
2011-02-22 12:21 ` Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox