Skip to content
Permalink
Browse files
bdi: Use might_alloc()
Now that my little helper has landed, use it more. On top of the
existing check this also uses lockdep through the fs_reclaim
annotations.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
--
v2: git add everything ... oops
  • Loading branch information
danvet authored and intel-lab-lkp committed Jan 13, 2021
1 parent bd51ec7 commit 95ad71591084350229e768f9c2be5350d504f896
Showing 1 changed file with 1 addition and 1 deletion.
@@ -644,7 +644,7 @@ struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,
{
struct bdi_writeback *wb;

might_sleep_if(gfpflags_allow_blocking(gfp));
might_alloc(gfp);

if (!memcg_css->parent)
return &bdi->wb;

0 comments on commit 95ad715

Please sign in to comment.