summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-03-03 15:38:32 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-03-04 07:55:48 -0800
commit15c34a760630ca2c803848fba90ca0646a9907dd (patch)
treea8045655ec6307ff8fc9794bd440368df51dc7f3 /arch/sh/mm
parent40d2d968e99aa267ac1e5d70deb97faa41a7dfc8 (diff)
downloadlinux-15c34a760630ca2c803848fba90ca0646a9907dd.tar.bz2
ocfs2: fix quota file corruption
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. Signed-off-by: Jan Kara <jack@suse.cz> Cc: Goldwyn Rodrigues <rgoldwyn@suse.de> Cc: Joel Becker <jlbec@evilplan.org> Reviewed-by: Mark Fasheh <mfasheh@suse.de> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh/mm')
0 files changed, 0 insertions, 0 deletions