[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1345283361-7802-1-git-send-email-linkinjeon@gmail.com>
Date: Sat, 18 Aug 2012 05:49:21 -0400
From: Namjae Jeon <linkinjeon@...il.com>
To: fengguang.wu@...el.com, akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, Namjae Jeon <linkinjeon@...il.com>
Subject: [PATCH 2/3] writeback: fix incorrect return value type of bdi_dirty_limit
unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty)
Above function return type is unsigned long, but return value is
kept in "u64 bdi_dirty".
It can return incorrect value by type casting.
Signed-off-by: Namjae Jeon <linkinjeon@...il.com>
---
mm/page-writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 49133b6..73a7a06 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -546,7 +546,7 @@ static unsigned long hard_dirty_limit(unsigned long thresh)
*/
unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty)
{
- u64 bdi_dirty;
+ unsigned long bdi_dirty;
long numerator, denominator;
/*
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists