All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] proc-fix-kflags-to-uflags-copying-in-proc-kpageflags.patch removed from -mm tree
@ 2009-03-12 20:16 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-03-12 20:16 UTC (permalink / raw)
  To: fengguang.wu, adobriyan, kosaki.motohiro, mpm, stable, mm-commits


The patch titled
     proc: fix kflags to uflags copying in /proc/kpageflags
has been removed from the -mm tree.  Its filename was
     proc-fix-kflags-to-uflags-copying-in-proc-kpageflags.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: proc: fix kflags to uflags copying in /proc/kpageflags
From: Wu Fengguang <fengguang.wu@intel.com>

Fix kpf_copy_bit(src,dst) to be kpf_copy_bit(dst,src) to match the actual
call patterns, e.g.  kpf_copy_bit(kflags, KPF_LOCKED, PG_locked).

This misplacement of src/dst only affected reporting of PG_writeback,
PG_reclaim and PG_buddy.  For others kflags==uflags so not affected.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/page.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/proc/page.c~proc-fix-kflags-to-uflags-copying-in-proc-kpageflags fs/proc/page.c
--- a/fs/proc/page.c~proc-fix-kflags-to-uflags-copying-in-proc-kpageflags
+++ a/fs/proc/page.c
@@ -80,7 +80,7 @@ static const struct file_operations proc
 #define KPF_RECLAIM    9
 #define KPF_BUDDY     10
 
-#define kpf_copy_bit(flags, srcpos, dstpos) (((flags >> srcpos) & 1) << dstpos)
+#define kpf_copy_bit(flags, dstpos, srcpos) (((flags >> srcpos) & 1) << dstpos)
 
 static ssize_t kpageflags_read(struct file *file, char __user *buf,
 			     size_t count, loff_t *ppos)
_

Patches currently in -mm which might be from fengguang.wu@intel.com are

origin.patch
linux-next.patch
ramfs-add-support-for-mode=-mount-option.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-12 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 20:16 [merged] proc-fix-kflags-to-uflags-copying-in-proc-kpageflags.patch removed from -mm tree akpm

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.