[Ocfs2-devel] [PATCH] ocfs2: Fix quota file corruption

Mark Fasheh mfasheh at suse.de
Mon Feb 24 14:28:50 PST 2014


On Thu, Feb 20, 2014 at 12:39:59PM +0100, Jan Kara wrote:
> Global quota files are accessed from different nodes. Thus we cannot
> cache offset of quota structure in the quota file after we drop our
> node reference count to it because after that moment quota structure may
> be freed and reallocated elsewhere by a different node resulting in
> corruption of quota file.
> 
> Fix the problem by clearing dq_off when we are releasing dquot
> structure. We also remove the DB_READ_B handling because it is useless -
> DQ_ACTIVE_B is set iff DQ_READ_B is set.
> 
> CC: stable at vger.kernel.org
> CC: Goldwyn Rodrigues <rgoldwyn at suse.de>
> CC: Mark Fasheh <mfasheh at suse.de>
> Signed-off-by: Jan Kara <jack at suse.cz>

Thanks Jan, this looks good.

Reviewed-by: Mark Fasheh <mfasheh at suse.de>
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list