lkml.org 
[lkml]   [2011]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC][PATCH v7 08/14] writeback: add memcg fields to writeback_control
    Date
    Add writeback_control fields to differentiate between bdi-wide and
    per-cgroup writeback. Cgroup writeback is also able to differentiate
    between writing inodes isolated to a particular cgroup and inodes shared
    by multiple cgroups.

    Signed-off-by: Greg Thelen <gthelen@google.com>
    ---
    include/linux/writeback.h | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/include/linux/writeback.h b/include/linux/writeback.h
    index d10d133..4f5c0d2 100644
    --- a/include/linux/writeback.h
    +++ b/include/linux/writeback.h
    @@ -47,6 +47,8 @@ struct writeback_control {
    unsigned for_reclaim:1; /* Invoked from the page allocator */
    unsigned range_cyclic:1; /* range_start is cyclic */
    unsigned more_io:1; /* more io to be dispatched */
    + unsigned for_cgroup:1; /* enable cgroup writeback */
    + unsigned shared_inodes:1; /* write inodes spanning cgroups */
    };

    /*
    --
    1.7.3.1


    \
     
     \ /
      Last update: 2011-05-13 10:53    [W:4.149 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site