Whamcloud - gitweb
LU-1576 llite: correct page usage count
authorBobi Jam <bobijam@whamcloud.com>
Mon, 2 Jul 2012 08:56:07 +0000 (16:56 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jul 2012 21:28:56 +0000 (17:28 -0400)
commit7cd8b93461905334d227f3e6203b2862965f411f
treee7a1ead86716e33bd41aea0fe36a616a3c0bfccb
parent553a648a6a807151cbd9a63bc4edaee35e6d59c9
LU-1576 llite: correct page usage count

If kernel has add_to_page_cache_lru(), the ll_pagevec_add() is defined
as an empty function, while page_cache_get(page) only makes sense if
ll_pagevec_add() is defined.

This patch moves page_cache_get into ll_pagevec_add() macro
definition.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Iad98aacff43beec3e7a64fd1a778f549250aa5b8
Reviewed-on: http://review.whamcloud.com/3255
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/linux/lustre_compat25.h
lustre/llite/dir.c