lkml.org 
[lkml]   [2011]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/17] writeback: introduce writeback_control.inodes_cleaned
On Mon, May 16, 2011 at 09:50:21AM +1000, Dave Chinner wrote:
> > - nr_to_write has always been "# of pages written" and writeback_sb_inodes()
> > is actually making use of it to do page accounting in work->nr_pages.
>
> Do we really care whether it's inodes or pages that are written? As
> far as i can tell it doesn't, because writing inodes generally
> requires more IO and so needs to be limited anyway.

We do care, but the current infrastructure already is bad enough to
not make it work. E.g. when calling from balance_dirty_pages we
couldn't care less if the inode is written back, we just want pages
on stable storage, similar for wakeups from the VM code. Sooner or
later there's no way around splitting page and inode writeback
completely.

> So put the accounting in the post-write code in
> writeback_single_inode() where we already check if the inode is
> still dirty or not. Splitting per-inode post-write processing
> between writeback_single_inode and the higher level code is cludgy -
> I'd much prefer it done in only one place.

I'd tend to agree. Especially as cleaner separation was the main
goal for getting rid of the writeback_control overload in the beginning.



\
 
 \ /
  Last update: 2011-05-16 12:43    [W:0.078 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site