Whamcloud - gitweb
LU-6142 lustre: convert IFTODT to S_DT 41/40641/3
authorMr NeilBrown <neilb@suse.de>
Thu, 12 Nov 2020 23:01:06 +0000 (10:01 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 03:01:59 +0000 (03:01 +0000)
commit77f5bb4dace53e0040dea4ce5c72156e901e6819
tree416ce55fc081241af6764df7656ccc4c80c99edc
parentf38f09e02a05c82718344ad86f80a4a0f399af9d
LU-6142 lustre: convert IFTODT to S_DT

In Linux v5.1-rc1~141^2~1 introduced include/linux/fs_types.h which
adds macros for manipulating file types, including S_DT() which
does what the userpsace IFTODT() macro does.

So change kernel code to use S_DT() instead of IFTODT(), and provide
definitions for kernels which don't yet have this file.

fs_types.h is included by fs.h, so we don't need to explicitly include
it anywhere.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: If001f7e7a97992af690222b7524770c5e4b7003d
Reviewed-on: https://review.whamcloud.com/40641
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/libcfs_cleanup.sed
libcfs/include/libcfs/linux/linux-fs.h
lustre/llite/dir.c
lustre/osd-zfs/osd_index.c
lustre/osd-zfs/osd_object.c
lustre/osd-zfs/osd_oi.c