jbd: remove dependency on __GFP_NOFAIL
authorJan Kara <jack@suse.cz>
Thu, 26 May 2011 15:17:18 +0000 (17:17 +0200)
committerJan Kara <jack@suse.cz>
Sat, 25 Jun 2011 15:29:51 +0000 (17:29 +0200)
commit05713082ab7690a2b22b044cfc867f346c39cd2d
treed69117ce69b53c5c51011595def5664210513437
parent40680f2fa4670ab35ee554822a69dda1a118f966
jbd: remove dependency on __GFP_NOFAIL

The callers of start_this_handle() (or better ext3_journal_start()) are not
really prepared to handle allocation failures. Such failures can for example
result in silent data loss when it happens in ext3_..._writepage().  OTOH
__GFP_NOFAIL is going away so we just retry allocation in start_this_handle().

This loop is potentially dangerous because the oom killer cannot be invoked
for GFP_NOFS allocation, so there is a potential for infinitely looping.
But still this is better than silent data loss.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/transaction.c