From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH 0/11] Per-bdi writeback flusher threads v9 Date: Fri, 29 May 2009 18:37:02 +0300 Message-ID: <4A20011E.7020900@nokia.com> References: <1243511204-2328-1-git-send-email-jens.axboe@oracle.com> <4A1E9D0B.4090402@gmail.com> <4A1E9D8B.8020908@gmail.com> <1243542908.6645.104.camel@laptop> Reply-To: Artem.Bityutskiy@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jens Axboe , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, chris.mason@oracle.com, david@fromorbit.com, hch@infradead.org, akpm@linux-foundation.org, jack@suse.cz, yanmin_zhang@linux.intel.com, richard@rsk.demon.co.uk, damien.wyart@free.fr To: Peter Zijlstra Return-path: Received: from smtp.nokia.com ([192.100.122.230]:29854 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757892AbZE2PmA (ORCPT ); Fri, 29 May 2009 11:42:00 -0400 In-Reply-To: <1243542908.6645.104.camel@laptop> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Peter Zijlstra wrote: > On Thu, 2009-05-28 at 17:19 +0300, Artem Bityutskiy wrote: >> Artem Bityutskiy wrote: >>> question is - should it? 'bdi_register()' a block device, >>> but we do not have one. >> Sorry, wanted to say: 'bdi_register()' registers a block >> device. >=20 > BDI stands for backing device info and is not related to block device= s > other than that block devices can also be (ok, always are) backing > devices. >=20 > If you want to do writeback, you need a backing device to write to. T= he > BDI is the device abstraction for writeback. I see, thanks. The below UBIFS patch fixes the issue. I'll push it to ubifs-2.6.git tree, unless there are objections. =46rom: Artem Bityutskiy Subject: [PATCH] UBIFS: do not forget to register BDI device Signed-off-by: Artem Bityutskiy --- fs/ubifs/super.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 2349e2c..d1ac967 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1929,6 +1929,9 @@ static int ubifs_fill_super(struct super_block *s= b, void *data, int silent) err =3D bdi_init(&c->bdi); if (err) goto out_close; + err =3D bdi_register(&c->bdi, NULL, "ubifs"); + if (err) + goto out_close; =20 err =3D ubifs_parse_options(c, data, 0); if (err) --=20 1.6.0.6 --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html