• A
    revert "mm: oom analysis: add buffer cache information to show_free_areas()" · b76146ed
    Andrew Morton 提交于
    Revert
    
        commit 71de1ccb
        Author:     KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
        AuthorDate: Mon Sep 21 17:01:31 2009 -0700
        Commit:     Linus Torvalds <torvalds@linux-foundation.org>
        CommitDate: Tue Sep 22 07:17:27 2009 -0700
    
            mm: oom analysis: add buffer cache information to show_free_areas()
    
    show_free_areas() is called during page allocation failures, and page
    allocation failures can occur in any calling context.
    
    But nr_blockdev_pages() takes VFS locks which should not be taken from
    hard IRQ context (at least).  The result is lockdep warnings (and
    deadlockability) during page allocation failures.
    
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Wu Fengguang <fengguang.wu@intel.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    b76146ed
page_alloc.c 138.7 KB