Skip to content

Removal of lustre compat macros

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13staging/lustre: Remove unused ll_vfs_* compat definesdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h+0 -250 replies
2/13staging/lustre: get rid of cfs_bio_* compat macrosesdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/lloop.c+2 -60 replies
3/13staging/lustre: Drop FS_HAS_FIEMAP compat macrodrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/obdclass/obd_mount.c+1 -60 replies
4/13staging/lustre: Drop SLAB_DESTROY_BY_RCU redefine, it's always defineddrivers/staging/lustre/lustre/include/linux/lustre_compat25.h+0 -60 replies
5/13staging/lustre: remove *hw_segments compat definesdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h+0 -60 replies
6/13staging/lustre: Drop SEEK_* definition checksdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h+0 -382 replies
7/13staging/lustre: Drop FMODE_UNSIGNED_OFFSET definedrivers/staging/lustre/lustre/include/linux/lustre_compat25.h+0 -40 replies
8/13staging/lustre: replace ll_umode_t with umode_tdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/namei.c+1 -70 replies
9/13staging/lustre: Use hlist primitives directlydrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/dcache.c drivers/staging/lustre/lustre/llite/namei.c+5 -170 replies
10/13staging/lustre: Get rid of ll_pagevec_ macrosdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/dir.c+0 -90 replies
11/13staging/lustre: ATTR_TIMES_SET is always defined, so don't check itdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/llite_lib.c+2 -60 replies
12/13staging/lustre: Get rid of inode_dio_write_done and inode_dio_readdrivers/staging/lustre/lustre/include/linux/lustre_compat25.h drivers/staging/lustre/lustre/llite/llite_lib.c drivers/staging/lustre/lustre/llite/vvp_io.c+3 -120 replies
13/13staging/lustre: use ATTR_OPEN directly, remove ATTR_RAWdrivers/staging/lustre/lustre/include/linux/lustre_patchless_compat.h drivers/staging/lustre/lustre/mdc/mdc_lib.c+1 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Removal of lustre compat macros

From: Oleg Drokin <[email protected]>

This patchset is a stroll through lustre/include/linux/lustre_compat25.h that houses a bunch of our "compatibility with old/new kernels" code and gettign rid of everything that we know for granted is available because we are part of the tree.

These are the low hanging fruit, the rest are somewhat more tricky and would need some more research.

a different cfs_bio_* compat removal patch was sent to the linux-block tree since they changed the prototype, so if there's a conflict with that, please pick their version.

Oleg Drokin (13):
staging/lustre: Remove unused ll_vfs_* compat defines staging/lustre: get rid of cfs_bio_* compat macroses staging/lustre: Drop FS_HAS_FIEMAP compat macro staging/lustre: Drop SLAB_DESTROY_BY_RCU redefine, it's always defined staging/lustre: remove *hw_segments compat defines staging/lustre: Drop SEEK_* definition checks staging/lustre: Drop FMODE_UNSIGNED_OFFSET define staging/lustre: replace ll_umode_t with umode_t staging/lustre: Use hlist primitives directly staging/lustre: Get rid of ll_pagevec_ macros staging/lustre: ATTR_TIMES_SET is always defined, so don't check it staging/lustre: Get rid of inode_dio_write_done and inode_dio_read staging/lustre: use ATTR_OPEN directly, remove ATTR_RAW

 .../lustre/lustre/include/linux/lustre_compat25.h  | 119 ---------------------
 .../lustre/include/linux/lustre_patchless_compat.h |  12 ---
 drivers/staging/lustre/lustre/llite/dcache.c       |   3 +-
 drivers/staging/lustre/lustre/llite/dir.c          |   4 -
 drivers/staging/lustre/lustre/llite/llite_lib.c    |   7 +-
 drivers/staging/lustre/lustre/llite/lloop.c        |   4 +-
 drivers/staging/lustre/lustre/llite/namei.c        |  12 +--
 drivers/staging/lustre/lustre/llite/vvp_io.c       |   5 +-
 drivers/staging/lustre/lustre/mdc/mdc_lib.c        |   2 +-
 drivers/staging/lustre/lustre/obdclass/obd_mount.c |   2 +-
 10 files changed, 15 insertions(+), 155 deletions(-)
Signature · 1 line
2.1.0