25 May, 2010

3 commits

  • mapping_gfp_mask() is not supposed to store allocation contex details,
    only page location details. So mapping_gfp_mask should be applied to the
    pagecache page allocation, wheras normal (kernel mapped) memory should be
    used for surrounding allocations such as radix-tree nodes allocated by
    add_to_page_cache. Context modifiers should be applied on a per-callsite
    basis.

    So change splice to follow this convention (which is followed in similar
    code patterns in core code).

    Signed-off-by: Nick Piggin
    Signed-off-by: Andrew Morton
    Signed-off-by: Jens Axboe

    Nick Piggin
     
  • Instead of requiring an exact number of pages as the argument and
    return value, change the API to deal with number of bytes instead.

    This also relaxes the requirement that the passed in size must
    result in a power-of-2 page array size. Round up to the nearest
    power-of-2 automatically and return the resulting size of the pipe
    on success.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • If the passed in size is larger than what has been set as the
    system wide limit and the user is not root, we want to return
    permission denied (not invalid value).

    Signed-off-by: Jens Axboe

    Jens Axboe
     

22 May, 2010

37 commits