From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Monakhov Subject: quota locking question Date: Mon, 14 Dec 2009 17:30:49 +0300 Message-ID: <87d42h1vc6.fsf@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT Cc: linux-fsdevel@vger.kernel.org To: Jan Kara Return-path: Received: from mail.2ka.mipt.ru ([194.85.80.4]:40102 "EHLO mail.2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440AbZLNObN (ORCPT ); Mon, 14 Dec 2009 09:31:13 -0500 Received: from dmon-lp ([unknown] [10.55.87.200]) by mail.2ka.mipt.ru (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPA id <0KUN00AI9CJJZB10@mail.2ka.mipt.ru> for linux-fsdevel@vger.kernel.org; Mon, 14 Dec 2009 17:36:04 +0300 (MSK) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: According to dquot.c locking rules: dq_data_lock guards consistency of dquot->dq_dqb with inode->i_blocks, i_bytes. It is no clear to me what is the reason. Why do we need it ? What use-case causes this requirement?