• Mianhan Liu's avatar
    include/linux/mm.h: move nr_free_buffer_pages from swap.h to mm.h · a1554c00
    Mianhan Liu authored
    nr_free_buffer_pages could be exposed through mm.h instead of swap.h.
    The advantage of this change is that it can reduce the obsolete
    includes.  For example, net/ipv4/tcp.c wouldn't need swap.h any more
    since it has already included mm.h.  Similarly, after checking all the
    other files, it comes that tcp.c, udp.c meter.c ,...  follow the same
    rule, so these files can have swap.h removed too.
    
    Moreover, after preprocessing all the files that use
    nr_free_buffer_pages, it turns out that those files have already
    included mm.h.Thus, we can move nr_free_buffer_pages from swap.h to mm.h
    safely.  This change will not affect the compilation of other files.
    
    Link: https://lkml.kernel.org/r/20210912133640.1624-1-liumh1@shanghaitech.edu.cnSigned-off-by: default avatarMianhan Liu <liumh1@shanghaitech.edu.cn>
    Cc: Jakub Kicinski <kuba@kernel.org>
    CC: Ulf Hansson <ulf.hansson@linaro.org>
    Cc: "David S . Miller" <davem@davemloft.net>
    Cc: Simon Horman <horms@verge.net.au>
    Cc: Pravin B Shelar <pshelar@ovn.org>
    Cc: Vlad Yasevich <vyasevich@gmail.com>
    Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a1554c00
protocol.c 45.7 KB