mm/backing-dev.c: use might_alloc()
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Feb 2021 01:18:45 +0000 (17:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:01 +0000 (09:41 -0800)
commitc1ca59a1f21e360b26e26c187a4e42f22bb768d3
tree384894115e4010b94217e6cd1aedeab0fe42e4d4
parent0f2f89b6de32de49373040eb4ee9d6bc1930ae5a
mm/backing-dev.c: 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.

[akpm@linux-foundation.org: include linux/sched/mm.h]

Link: https://lkml.kernel.org/r/20210113135009.3606813-2-daniel.vetter@ffwll.ch
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/backing-dev.c