memory:Make the function tlb_next_batch bool now
Subsystems (2)
PATCH 1/1 memory:Make the function tlb_next_batch bool now
This makes the function tlb_next_batch bool now due to this particular function only ever returning either one or zero as its return value.
Signed-off-by Nicholas Krause <[email protected]>
--- mm/memory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
mm/memory.c +5 -5
@@ -180,22 +180,22 @@ static void check_sync_rss_stat(struct task_struct *task)#ifdef HAVE_GENERIC_MMU_GATHER -static int tlb_next_batch (struct mmu_gather *tlb) +static bool tlb_next_batch (struct mmu_gather *tlb) {struct mmu_gather_batch *batch; batch = tlb->active;if (batch->next) { tlb->active = batch->next; -return 1 ; +return true; }if (tlb->batch_count ==MAX_GATHER_BATCH_COUNT ) -return 0 ; +return false; batch = (void *)__get_free_pages (GFP_NOWAIT | __GFP_NOWARN,0 );if (!batch) -return 0 ; +return false; tlb->batch_count++; batch->next =NULL ;
@@ -205,7 +205,7 @@ static int tlb_next_batch(struct mmu_gather *tlb) tlb->active->next = batch; tlb->active = batch; -return 1 ; +return true; }/* tlb_gather_mmu
Signature · 7 lines
2.1.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>