[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <x498u74gkyd.fsf@segfault.boston.devel.redhat.com>
Date: Thu, 15 Oct 2015 12:23:06 -0400
From: Jeff Moyer <jmoyer@...hat.com>
To: Vivek Goyal <vgoyal@...hat.com>
Cc: Jens Axboe <axboe@...nel.dk>, Christoph Hellwig <hch@....de>,
Mike Snitzer <snitzer@...hat.com>, dm-devel@...hat.com,
Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org,
Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH] fs/block_dev.c: Remove WARN_ON() when inode writeback fails
Vivek Goyal <vgoyal@...hat.com> writes:
> Hi Jens,
>
> Do you have concerns with this patch? If not, can you please include it.
The concept is fine, but:
>> -static void bdev_write_inode(struct inode *inode)
>> +static void bdev_write_inode(struct block_device *bdev)
>> {
>> + struct inode *inode = bdev->bd_inode;
>> + int ret;
>> +
>> spin_lock(&inode->i_lock);
>> while (inode->i_state & I_DIRTY) {
>> spin_unlock(&inode->i_lock);
>> - WARN_ON_ONCE(write_inode_now(inode, true));
>> + ret = write_inode_now(inode, true);
>> + if (ret) {
>> + char name[BDEVNAME_SIZE] = "";
that initializer isn't necessary.
Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists