From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: PM/hibernate swapfile regression Date: Tue, 21 Jul 2009 17:55:36 -0400 Message-ID: <20090721215536.GA9502@infradead.org> References: <20090714135453.GA26976@osiris.boeblingen.de.ibm.com> <200907141821.06101.rjw@sisk.pl> <4A6077DE.6060202@tuffmail.co.uk> <20090720132456.GA29023@osiris.boeblingen.de.ibm.com> <4A659D75.3050004@tuffmail.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Rafael J. Wysocki" , Heiko Carstens , linux-kernel@vger.kernel.org, Hans-Joachim Picht , pm list , Arnd Schneider , linux-fsdevel@vger.kernel.org To: Alan Jenkins Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:51722 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755897AbZGUVzo (ORCPT ); Tue, 21 Jul 2009 17:55:44 -0400 Content-Disposition: inline In-Reply-To: <4A659D75.3050004@tuffmail.co.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jul 21, 2009 at 11:50:29AM +0100, Alan Jenkins wrote: > +struct block_device *bdcopy(struct block_device *bdev) > +{ > + atomic_inc(&bdev->bd_inode->i_count); > + return bdev; > +} > + > +EXPORT_SYMBOL(bdcopy); The function name doesn't make any sense. You don't copy anything here, but you grab a reference to it. A better name would be bdgrab, mirroing the names of functions like igrab. A kerneldoc comment documenting it would also be very helpful. Why do you export it? The swapfile code is not actually modular.