Whamcloud - gitweb
LU-14291 lustre: limit header scope for server only handling 96/43096/12
authorJames Simmons <jsimmons@infradead.org>
Sat, 8 May 2021 16:15:33 +0000 (12:15 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 May 2021 02:03:50 +0000 (02:03 +0000)
commit5ecd5a5ecfb880236b5fbc23621102239de5f5d6
tree94e3ced942db42f9a842f2c35138675f177571ed
parent6d111ff0dde182bfbdf0a7ab10df812ab43e2ddd
LU-14291 lustre: limit header scope for server only handling

The lustre headers have server only function declarations and
inline functions. Only include them if HAVE_SERVER_SUPPORT is
set. This gets us closer to building OpenSFS modules against
a Linux kernel with a native Lustre client. Move a few things
from UAPI headers that are used only by kernel space to kernel
only headers where they belong.

For mdc_changlog.c a debug message access a field that is
available the server which is never the case. Since its
nonsense we can remove the report of this field

Change-Id: I6e2d3bebc121aef97fe69344d496e230f62b28ad
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/43096
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lustre/include/llog_swab.h
lustre/include/lprocfs_status.h
lustre/include/lu_object.h
lustre/include/lustre_fid.h
lustre/include/lustre_lmv.h
lustre/include/lustre_swab.h
lustre/include/obd.h
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdc/mdc_changelog.c
lustre/ptlrpc/lproc_ptlrpc.c