]> git.karo-electronics.de Git - karo-tx-linux.git/commit
quota: fix possible infinite loop in quota code
authorJan Kara <jack@suse.cz>
Fri, 25 Jul 2008 18:15:07 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:42:58 +0000 (12:42 -0700)
commit6b918773965623828a8662cba0305e8f58010f03
treef88e2013a7bbaa06da0a0e8e7335c387295fd8ac
parent5f817e2b6d8d2dd972f4746faf20191fef7b08c6
quota: fix possible infinite loop in quota code

commit b48d380541f634663b71766005838edbb7261685 upstream

When quota structure is going to be dropped and it is dirty, quota code tries
to write it.  If the write fails for some reason (e.  g.  transaction cannot
be started because the journal is aborted), we try writing again and again and
again...  Fix the problem by clearing the dirty bit even if the write failed.

(akpm: for 2.6.27, 2.6.26.x and 2.6.25.x)

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: dingdinghua <dingdinghua85@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/dquot.c