[lkml]   [2012]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Lsf] [RFC] writeback and cgroup
On Wed, 2012-04-04 at 14:23 -0500, Steve French wrote:
> Current use of bdi is a little hard to understand since
> there are 25+ fields in the structure.

Filesystems only need a small fraction of those.

In particular,

backing_dev_info::name -- string
backing_dev_info::ra_pages -- number of read-ahead-pages
backing_dev_info::capability -- see BDI_CAP_*

One should properly initialize/destroy the thing using:


Furthermore, it has hooks into the regular page-writeback stuff:


but also allows filesystems to do custom stuff, see FUSE for example.

The only other bit is the pressure valve, aka.
{set,clear}_bdi_congested(). Which really is rather broken and of
dubious value.

 \ /
  Last update: 2012-04-14 14:19    [W:0.048 / U:0.492 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site