lkml.org 
[lkml]   [2010]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/19] fs: switch bdev inode bdi's correctly
On Sat, Oct 16, 2010 at 07:13:55PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> bdev inodes can remain dirty even after their last close. Hence the
> BDI associated with the bdev->inode gets modified duringthe last
> close to point to the default BDI. However, the bdev inode still
> needs to be moved to the dirty lists of the new BDI, otherwise it
> will corrupt the writeback list is was left on.
>
> Add a new function bdev_inode_switch_bdi() to move all the bdi state
> from the old bdi to the new one safely. This is only a temporary
> measure until the bdev inode<->bdi lifecycle problems are sorted
> out.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>

Nice to see you and Christoph eliminated the need for that bdev:inode
hack in my tree. Looks good.


\
 
 \ /
  Last update: 2010-10-16 11:33    [W:0.180 / U:9.704 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site