Whamcloud - gitweb
LU-6142 lustre: use is_root_inode() 93/40293/7
authorMr NeilBrown <neilb@suse.de>
Fri, 16 Oct 2020 03:29:32 +0000 (14:29 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 22:10:34 +0000 (22:10 +0000)
commitfca56be02b8fe074e7fce4bf8e9224a644cc7572
treef7ebbe2044167776d90164f3f5a2ae2c94bdc31c
parentaaf0eb86969b41464093d36f1c0a2f128a1d9851
LU-6142 lustre: use is_root_inode()

Lustre has multiple tests to see if a given inode is the root of the
filesystem.  Linux has (since 3.19) a helper function is_root_inode().
Use that throughout.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ib5997e8976b6e935c268ad7ac9328fcd4d071b1f
Reviewed-on: https://review.whamcloud.com/40293
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/include/lustre_compat.h
lustre/llite/crypto.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/namei.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c