Skip to content

Commit

Permalink
bdi: Use might_alloc()
Browse files Browse the repository at this point in the history
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 95ad715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/backing-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95ad715

Please sign in to comment.