mm-page-writebackc-improve-arithmetic-divisions.patch removed from -mm tree
The patch titled
Subject: mm/page-writeback.c: improve arithmetic divisions
has been removed from the -mm tree. Its filename was
mm-page-writebackc-improve-arithmetic-divisions.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Wen Yang <[email protected]>
Subject: mm/page-writeback.c: improve arithmetic divisions
Use div64_ul() instead of do_div() if the divisor is unsigned long, to avoid truncation to 32-bit on 64-bit platforms.
Signed-off-by Wen Yang <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Cc Qian Cai <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Jens Axboe <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c renamed from mm/page-writeback.c~mm-page-writebackc-improve-arithmetic-divisions +1 -1
@@ -1102,7 +1102,7 @@ static void wb_update_write_bandwidth(st bw = written -min (written, wb->written_stamp); bw *=HZ ;if (unlikely (elapsed > period)) { -do_div (bw, elapsed); + bw =div64_ul (bw, elapsed); avg = bw; goto out; }
_
Patches currently in -mm which might be from [email protected] are