login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
11
Re: [PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Benjamin Herrenschmidt
Subject:
Re: [PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
Date: Monday, May 10, 2010 - 9:56 pm
On Mon, 2010-05-10 at 16:37 -0700, Yinghai Lu wrote:
quoted text
> > if (lmbsize < size) > > continue; > > - base = min(lmbbase + lmbsize, max_addr); > > - res_base = lmb_find_region(lmbbase, base, size, align); > > - if (res_base != LMB_ERROR) > > - return res_base; > > + if ((lmbbase + lmbsize) <= start) > > + break; > > + bottom = max(lmbbase, start); > > + top = min(lmbbase + lmbsize, end); > > + if (bottom >= top) > > + continue; > > + found = lmb_find_region(lmbbase, top, size, align); > ^^^^^^^^^ > should use bottom here
Correct, I missed that when converting. Cheers, Ben. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 02/25] lmb: No reason to include asm/lmb.h late
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 03/25] lmb: Introduce for_each_lmb() and new access ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 04/25] lmb: Remove nid_range argument, arch provide ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 05/25] lmb: Factor the lowest level alloc function
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 06/25] lmb: Expose LMB_ALLOC_ANYWHERE
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 07/25] lmb: Introduce default allocation limit and ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 08/25] lmb: Remove rmo_size, burry it in arch/power ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 09/25] lmb: Change u64 to phys_addr_t
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 10/25] lmb: Remove unused lmb.debug struct member
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 11/25] lmb: Remove lmb_type.size and add lmb.memory ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 12/25] lmb: Move lmb arrays to static storage in lm ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 13/25] lmb: Add debug markers at the end of the array
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 14/25] lmb: Make lmb_find_region() out of lmb_alloc ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 15/25] lmb: Define LMB_ERROR internally instead of ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 16/25] lmb: Move lmb_init() to the bottom of the file
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 17/25] lmb: split lmb_find_base() out of __lmb_allo ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 18/25] lmb: Move functions around into a more sensi ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 19/25] lmb: Add array resizing support
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 20/25] lmb: Add arch function to control coalescing ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 22/25] lmb: NUMA allocate can now use early_pfn_map
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
[PATCH 23/25] lmb: Separate lmb_alloc_nid() and lmb_alloc_ ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:38 am)
Re: [PATCH 12/25] lmb: Move lmb arrays to static storage i ...
, Paul Mundt
, (Mon May 10, 3:44 am)
Re: [PATCH 12/25] lmb: Move lmb arrays to static storage i ...
, Benjamin Herrenschmidt
, (Mon May 10, 4:46 am)
Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new ac ...
, Thomas Gleixner
, (Mon May 10, 8:39 am)
Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new ac ...
, Benjamin Herrenschmidt
, (Mon May 10, 2:52 pm)
Re: [PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
, Yinghai Lu
, (Mon May 10, 4:37 pm)
Re: [PATCH 19/25] lmb: Add array resizing support
, Yinghai Lu
, (Mon May 10, 4:59 pm)
Re: [PATCH 19/25] lmb: Add array resizing support
, Benjamin Herrenschmidt
, (Mon May 10, 9:56 pm)
Re: [PATCH 21/25] lmb: Add "start" argument to lmb_find_base()
, Benjamin Herrenschmidt
, (Mon May 10, 9:56 pm)
Re: [PATCH 05/25] lmb: Factor the lowest level alloc function
, Thomas Gleixner
, (Tue May 11, 5:30 am)
Re: [PATCH 19/25] lmb: Add array resizing support
, Yinghai Lu
, (Tue May 11, 10:54 am)
Re: [PATCH 05/25] lmb: Factor the lowest level alloc function
, Benjamin Herrenschmidt
, (Tue May 11, 3:24 pm)
Re: [PATCH 03/25] lmb: Introduce for_each_lmb() and new ac ...
, Benjamin Herrenschmidt
, (Tue May 11, 10:20 pm)
Re: [PATCH 05/25] lmb: Factor the lowest level alloc function
, Benjamin Herrenschmidt
, (Tue May 11, 10:24 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-scsi
:
michaelc
[RFC PATCH 7/7] qla2xxx: hook scsi eh into fc_block_scsi_eh
Jelle de Jong
Re: Still having major MVSAS issues.
Konstantinos Skarlatos
Re: Still havind major MVSAS issues.
Erno Kovacs
Re[2]: MVSAS status
giridhar.malavali
[PATCH 01/16] qla2xxx: Check for ISP84xx before processing to get 84xx firmware ve...
linux-ext4
:
root
[PATCH] fix ext2 parse_options printk
Theodore Tso
Re: [PATCH 2/2] ext4: Automatically enable journal_async_commit on ext4 file systems
lakshmi pathi
Re: [Jfs-discussion] benchmark results
tytso
Re: 2.6.33-rc1: kernel BUG at fs/ext4/inode.c:1063 (sparc)
Dmitry Monakhov
Re: [PATCH 2/4] ext4: fix reserved space transferring on chown() [V2]
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Matthew
Re: Linux 2.6.25
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
linux-kernel-newbies
:
govind raj nayak
Re: Re: Error while compiling 2.6.10 kernel
Parmenides
macro or inline
Manish Katiyar
generic_file_read function for kernel 2.6.23.11
Harishkumar V
Re: BUG: soft lockup - CPU#0 stuck for 61s!
Thomas Petazzoni
Re: Question on Memory Leaks in Module
linux-raid
:
Asdo
Re: [PATCH 0/3] md fixes for 2.6.32-rc
Raz
Re: Subject: [PATCH] mdadm: raid0: support chunks of 4K*n for raid0
Chris Caputo
script for TRIM on RAID1 full-disk arrays with live ext4 filesystems
Robin Hill
Re: md data-check causes soft lockup
Richard Scobie
Re: Use of WD20EARS with MDADM
Colocation donated by:
Syndicate