mm: introduce and use mapping_empty()