Whamcloud - gitweb
LU-339 use new aops for kernel >= RHEL5.4
authorLai Siyao <laisiyao@whamcloud.com>
Tue, 24 May 2011 02:19:53 +0000 (19:19 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 May 2011 22:43:45 +0000 (15:43 -0700)
commit0c9d8d75ad60e4f93f884bc18d3021a0f37599c6
treee016d13c72bbd4fb9df55c4ba59b3f8eefbf8bc1
parentc66d8316766c3b35032d6bee7113a74cd690105c
LU-339 use new aops for kernel >= RHEL5.4

Kernel in RHEL5 >= 5.4 supports both old and new aops interface,
and a flag MS_HAS_NEW_AOPS is used to mark whether a filesystem
supports new aops.
Lustre has implemented the new aops, but not enabled. And with
new aops a single thread I/O can gain 5% perf increase.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I23bbfcd105c1ffd7f6c942342f9c1fb29a1cffe4
Reviewed-on: http://review.whamcloud.com/592
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/llite/dir.c
lustre/llite/llite_lib.c
lustre/llite/rw26.c