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>
Thu, 5 Jul 2012 17:05:15 +0000 (13:05 -0400)
commit01bd9accf1f2edcafe63aaf923b173642a88840f
treea7e61f0979ee43a3f5441e5a441ad6548356b002
parent8bbd62a7c0d2fc48d8f11e78d92bb42809968bba
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