Whamcloud - gitweb
LU-9679 lustre: remove some "#ifdef CONFIG*" from .c files. 31/39131/4
authorMr NeilBrown <neilb@suse.de>
Sun, 7 Jun 2020 23:24:26 +0000 (19:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:02:50 +0000 (03:02 +0000)
commitf37e26964a34fc33ec6add792ebb3b6a51797813
tree7dba1ffe5c133f93a55d6c85c9d82165bc487edf
parent8c19d5147dba92a79cbcb8eb74a7bf3eecd77133
LU-9679 lustre: remove some "#ifdef CONFIG*" from .c files.

It is Linux policy to avoid #ifdef in C files where
convenient - .h files are OK.

This patch defines a few inline functions which differ
depending on CONFIG_LUSTRE_FS_POSIX_ACL, and removes
some #ifdefs from .c files.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I680bcf568d3a09d3768cc992a53671352bd125fd
Reviewed-on: https://review.whamcloud.com/39131
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/mdc/mdc_request.c