From: Tahsin Erdogan Subject: Re: [PATCH 28/28] quota: add extra inode count to dquot transfer functions Date: Tue, 20 Jun 2017 02:53:22 -0700 Message-ID: References: <20170531081517.11438-1-tahsin@google.com> <20170531081517.11438-28-tahsin@google.com> <20170615075735.GB1764@quack2.suse.cz> <20170619090329.GE11837@quack2.suse.cz> <20170619123614.GA20405@quack2.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Jan Kara , "Theodore Ts'o" , Andreas Dilger , Dave Kleikamp , Alexander Viro , Mark Fasheh , Joel Becker , Jens Axboe , Deepa Dinamani , Mike Christie , Fabian Frederick , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org To: Jan Kara Return-path: Received: from mail-yb0-f177.google.com ([209.85.213.177]:35855 "EHLO mail-yb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdFTJxX (ORCPT ); Tue, 20 Jun 2017 05:53:23 -0400 Received: by mail-yb0-f177.google.com with SMTP id t7so35526983yba.3 for ; Tue, 20 Jun 2017 02:53:23 -0700 (PDT) In-Reply-To: <20170619123614.GA20405@quack2.suse.cz> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Jun 19, 2017 at 5:36 AM, Jan Kara wrote: > Heh, this "pushing of responsibility" looks like a silly game. If an error > can happen in a function, it is better to report it as far as easily > possible (unless we can cleanly handle it which we cannot here). I'm guilty > of making dquot_free_inode() ignore errors from mark_all_dquot_dirty() and > in retrospect it would have been better if these were propagated to the > caller as well. And eventually we can fix this if we decide we care enough. > I'm completely fine with just returning an error from dquot_free_inode() > and ignore it in all the callers except for ext4. Then filesystems which > care enough can try to handle the error. That way we at least don't > increase the design debt from the past. I sent an update but since patch title changed it landed in a new email thread I think ("[PATCH v2 28/31] quota: add get_inode_usage callback to transfer multi-inode charges"). I will respond to your comment in that thread.