* + mm-backing-dev-remove-duplicated-macro-definition.patch added to -mm tree
@ 2021-02-09 19:28 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-09 19:28 UTC (permalink / raw)
To: akpm, baolin.wang, mm-commits
The patch titled
Subject: mm: backing-dev: Remove duplicated macro definition
has been added to the -mm tree. Its filename is
mm-backing-dev-remove-duplicated-macro-definition.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-backing-dev-remove-duplicated-macro-definition.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-backing-dev-remove-duplicated-macro-definition.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Baolin Wang <baolin.wang@linux.alibaba.com>
Subject: mm: backing-dev: Remove duplicated macro definition
Move the K() macro a little forward to remove the same macro definition.
Link: https://lkml.kernel.org/r/d1ccdf2d3116dce9814f2bcc1f0415ecb4c76ea5.1612862230.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/backing-dev.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- a/mm/backing-dev.c~mm-backing-dev-remove-duplicated-macro-definition
+++ a/mm/backing-dev.c
@@ -32,6 +32,8 @@ LIST_HEAD(bdi_list);
/* bdi_wq serves all asynchronous writeback tasks */
struct workqueue_struct *bdi_wq;
+#define K(x) ((x) << (PAGE_SHIFT - 10))
+
#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>
#include <linux/seq_file.h>
@@ -69,7 +71,6 @@ static int bdi_debug_stats_show(struct s
global_dirty_limits(&background_thresh, &dirty_thresh);
wb_thresh = wb_calc_thresh(wb, dirty_thresh);
-#define K(x) ((x) << (PAGE_SHIFT - 10))
seq_printf(m,
"BdiWriteback: %10lu kB\n"
"BdiReclaimable: %10lu kB\n"
@@ -98,7 +99,6 @@ static int bdi_debug_stats_show(struct s
nr_more_io,
nr_dirty_time,
!list_empty(&bdi->bdi_list), bdi->wb.state);
-#undef K
return 0;
}
@@ -146,8 +146,6 @@ static ssize_t read_ahead_kb_store(struc
return count;
}
-#define K(pages) ((pages) << (PAGE_SHIFT - 10))
-
#define BDI_SHOW(name, expr) \
static ssize_t name##_show(struct device *dev, \
struct device_attribute *attr, char *buf) \
_
Patches currently in -mm which might be from baolin.wang@linux.alibaba.com are
mm-filemap-remove-unused-parameter-and-change-to-void-type-for-replace_page_cache_page.patch
mm-backing-dev-remove-duplicated-macro-definition.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-09 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 19:28 + mm-backing-dev-remove-duplicated-macro-definition.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).