From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaegeuk Kim Subject: [PATCH 1/2] f2fs: add missing quota_initialize in f2fs_set_acl Date: Tue, 24 Oct 2017 00:14:08 +0200 Message-ID: <20171023221409.59148-1-jaegeuk@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1e6kzD-00015O-V6 for linux-f2fs-devel@lists.sourceforge.net; Mon, 23 Oct 2017 22:14:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1e6kzD-0005NA-72 for linux-f2fs-devel@lists.sourceforge.net; Mon, 23 Oct 2017 22:14:19 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim This patch adds to call quota_intialize in f2fs_set_acl. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index 436b3a1464d9..f6471f9d707e 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c @@ -209,6 +209,10 @@ static int __f2fs_set_acl(struct inode *inode, int type, int error; umode_t mode = inode->i_mode; + error = dquot_initialize(inode); + if (error) + return error; + switch (type) { case ACL_TYPE_ACCESS: name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS; -- 2.14.0.rc1.383.gd1ce394fe2-goog ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot