lkml.org 
[lkml]   [2014]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mm: don't allow fault_around_bytes to be 0
    On Mon, 28 Jul 2014, Andrey Ryabinin wrote:

    > do_fault_around expects fault_around_bytes rounded down to nearest
    > page order. Instead of calling rounddown_pow_of_two every time
    > in fault_around_pages()/fault_around_mask() we could do round down
    > when user changes fault_around_bytes via debugfs interface.
    >

    If you're going to optimize this, it seems like fault_around_bytes would
    benefit from being __read_mostly.


    \
     
     \ /
      Last update: 2014-07-29 01:21    [W:6.573 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site