Whamcloud - gitweb
LU-11770 osd-ldiskfs: clean up inline macro usage 41/33841/7
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 12 Dec 2018 23:28:38 +0000 (16:28 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Jan 2019 02:40:39 +0000 (02:40 +0000)
commitfa30d1efff93c6e11b7cf40c966f804c4718fbe8
tree8707bd8f39a3684912241a000c8aebc4e6adaa1f
parent3783aa285b15a811081a8de829d52f7f83e91209
LU-11770 osd-ldiskfs: clean up inline macro usage

Remove inline macro usage as much as possible in the osd-ldiskfs
code, per Linux and Lustre code style.  Balance start/end braces
for functions to keep syntax highlighting working properly.

Change the autoconf macros to be checking for the new structure
fields instead of the old fields, and add compat macros for older
kernels so that they can later be removed without code churn.

Remove direct inode->truncate() usage and autoconf check, since
ldiskfs_truncate() has been exported since at least RHEL6.3.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ifc3187275c1841918228fac2368b18a9fa89a47d
Reviewed-on: https://review.whamcloud.com/33841
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c