• Theodore Ts'o's avatar
    jbd2: Remove __GFP_NOFAIL from jbd2 layer · 47def826
    Theodore Ts'o authored
    __GFP_NOFAIL is going away, so add our own retry loop.  Also add
    jbd2__journal_start() and jbd2__journal_restart() which take a gfp
    mask, so that file systems can optionally (re)start transaction
    handles using GFP_KERNEL.  If they do this, then they need to be
    prepared to handle receiving an PTR_ERR(-ENOMEM) error, and be ready
    to reflect that error up to userspace.
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    47def826
journal.c 65.8 KB