Whamcloud - gitweb
LU-12514 obdclass: Drop FS_HAS_FIEMAP compat macro 24/35424/2
authorOleg Drokin <green@whamcloud.com>
Fri, 5 Jul 2019 17:13:26 +0000 (13:13 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2019 05:22:59 +0000 (05:22 +0000)
FS_HAS_FIEMAP was some sort of old RHEL5 construct that's not
really important anymore

Linux-commit: 5c8eae72ff46f0e70d03ae2e86e631d7a1ca4fe6

Change-Id: Ia9941fa32eeb6114f9404014b78c29465d524d07
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/35424
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/include/lustre_compat.h
lustre/obdclass/obd_mount.c

index 284f4ee..03a1c3a 100644 (file)
@@ -134,10 +134,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
 # define inode_dio_write_done(i)       up_write(&(i)->i_alloc_sem)
 #endif
 
-#ifndef FS_HAS_FIEMAP
-#define FS_HAS_FIEMAP                  (0)
-#endif
-
 #ifndef HAVE_SIMPLE_SETATTR
 #define simple_setattr(dentry, ops) inode_setattr((dentry)->d_inode, ops)
 #endif
index 65fe8fa..85da147 100644 (file)
@@ -1737,7 +1737,7 @@ static struct file_system_type lustre_fs_type = {
        .get_sb       = lustre_get_sb,
 #endif
        .kill_sb      = lustre_kill_super,
-       .fs_flags     = FS_REQUIRES_DEV | FS_HAS_FIEMAP | FS_RENAME_DOES_D_MOVE,
+       .fs_flags     = FS_REQUIRES_DEV | FS_RENAME_DOES_D_MOVE,
 };
 MODULE_ALIAS_FS("lustre");