[PATCH 6/9] staging: ion: remove struct page_info

Mitchel Humpherys mitchelh at codeaurora.org
Tue May 27 18:36:07 UTC 2014


On Mon, May 26 2014 at 03:04:58 AM, Heesub Shin <heesub.shin at samsung.com> wrote:
> ION system heap uses a temporary list holding meta data on pages
> allocated to build scatter/gather table. Now that the pages are compound
> pages, we do not need to introduce a new data type redundantly.
>
> Signed-off-by: Heesub Shin <heesub.shin at samsung.com>
> ---
>  drivers/staging/android/ion/ion_system_heap.c | 47 +++++++++------------------
>  1 file changed, 15 insertions(+), 32 deletions(-)
>
> diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c
> index 73a2e67..f0ae210 100644
> --- a/drivers/staging/android/ion/ion_system_heap.c
> +++ b/drivers/staging/android/ion/ion_system_heap.c
> @@ -51,11 +51,6 @@ struct ion_system_heap {
>  	struct ion_page_pool **pools;
>  };
>  
> -struct page_info {
> -	struct page *page;
> -	struct list_head list;
> -};
> -
>  static struct page *alloc_buffer_page(struct ion_system_heap *heap,
>  				      struct ion_buffer *buffer,
>  				      unsigned long order)
> @@ -96,19 +91,14 @@ static void free_buffer_page(struct ion_system_heap *heap,
>  }
>  
>  
> -static struct page_info *alloc_largest_available(struct ion_system_heap *heap,
> -						 struct ion_buffer *buffer,
> -						 unsigned long size,
> -						 unsigned int max_order)
> +static struct page *alloc_largest_available(struct ion_system_heap *heap,
> +					    struct ion_buffer *buffer,
> +					    unsigned long size,
> +					    unsigned int max_order)

Was this whitespace-only change intentional?


-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


More information about the devel mailing list