*参照元 [#b2b3650b] #backlinks *説明 [#h79b2c4a] -パス: [[linux-4.4.1/]] -パス: [[linux-4.4.1/mm/util.c]] -FIXME: これは何? --説明 **引数 [#f418f7fa] -struct page *page -- --[[linux-4.4.1/page]] **返り値 [#qd3e50ae] -struct address_space * -- **参考 [#b7827a4f] *実装 [#n0df7d3e] struct address_space *page_mapping(struct page *page) { unsigned long mapping; /* This happens if someone calls flush_dcache_page on slab page */ if (unlikely(PageSlab(page))) return NULL; - --[[linux-4.4.1/unlikely()]] --[[linux-4.4.1/PageSlab()]] if (unlikely(PageSwapCache(page))) { swp_entry_t entry; - --[[linux-4.4.1/PageSwapCache()]] entry.val = page_private(page); return swap_address_space(entry); - --[[linux-4.4.1/page_private()]] --[[linux-4.4.1/swap_address_space()]] } mapping = (unsigned long)page->mapping; if (mapping & PAGE_MAPPING_FLAGS) return NULL; return page->mapping; } *コメント [#l4150f14]