From: Oleg Drokin <green@xxxxxxxxxxxxxx> This is another round of Lustre cleanups mostly aimed at fixing checkpatch warnings, but also removing unneeded code and fixign other things I am noticing along the way. Oleg Drokin (56): staging/lustre/fld: Remove useless typedefs staging/lustre: Get rid of client_obd_lock_t typedef staging/lustre: Get rid of loc_flags_t typedef stagig/lustre: Get rid of cksum_type_t typedef staging/lustre: Get rid of ost_cmd_t typedef staging/lustre: Get rid of quota_cmd_t typedef staging/lustre: Get rid of mds_cmd_t typedef staging/lustre: Get rid of mds_reint_t, mdt_reint_t typedefs staging/lustre: Get rid of ldlm_cmd_t typedef staging/lustre: Remove ldlm typedefs staging/lustre: Get rid of mgs_cmd_t typedef staging/lustre: Get rid of obd_cmd_t typedef staging/lustre: Get rid of llog_op_type typedef staging/lustre: Get rid of sec_cmd_t typedef staging/lustre/ldlm: Remove unused lr_most_restr from struct ldlm_resource staging/lustre: Get rid of object update code staging/lustre: Get rid of lustre_fid typedef staging/lustre: Get rid of lustre_quota_version typedef staging/lustre: Get rid of ldlm_error_t typedef staging/lustre: Remove ldlm_appetite_t typedef staging/lustre: Get rid of ldlm_ns_type_t typedef staging/lustre: Get rid of ldlm_cancel_flags_t typedef staging/lustre/llite: Get rid of se_stat_t typedef staging/lustre: Remove lustre_build_version.h staging/lustre: Get rid of C99 comments in lustre_idl.h staging/lustre: Remove server-side changelog defines staging/lustre: Remove FSF mailing address from GPL notices staging/lustre: Remove server-only values from enum lu_dirent_attrs staging/lustre: Remove *_CONNECT_SUPPORTED defines staging/lustre: Remove duplicated quota defines staging/lustre: Remove unused struct quota_body staging/lustre: Remove lquota_glb_rec, lquota_slv_rec and lquota_acct_rec staging/lustre: S_DIRSYNC is always defined in kernel staging/lustre: FMODE_READ and FMODE_WRITE are always defined in the kernel staging/lustre: Remvoe index file transfer structures staging/lustre: Remove server data from struct obd_export staging/lustre: Remove last_rcvd-file related data staging/lustre: Remove dead code in ldlm_lock_destroy_internal staging/lustre: MAY_NOT_BLOCK is always defined, don't check for it. staging/lustre: Remove unused lli_open_count from struct ll_inode_info staging/lustre: Reformat comments and structures in lustre_idl.h staging/lustre/include: Adjust comment style staging/lustre/fld: Adjust comments to better conform to coding style staging/lustre/fid: Adjust comments to better conform to coding style staging/lustre/lclient: Adjust comments to better conform to coding style staging/lustre/ldlm: Adjust comments to better conform to coding style staging/lustre/llite: Adjust comments to better conform to coding style staging/lustre/lmv: Adjust comments to better conform to coding style staging/lustre/lov: Adjust comments to better conform to coding style staging/lustre/mdc: Adjust comments to better conform to coding style staging/lustre/mgc: Adjust comments to better conform to coding style staging/lustre/obdclass: Adjust comments to better conform to coding style staging/lustre/obdecho: Adjust comments to better conform to coding style staging/lustre/osc: Adjust comments to better conform to coding style staging/lustre/ptlrpc: Adjust comments to better conform to coding style staging/lustre: Fix indentation mistakes .../lustre/include/linux/libcfs/libcfs_cpu.h | 5 - .../lustre/include/linux/libcfs/linux/linux-cpu.h | 5 - drivers/staging/lustre/lnet/lnet/lib-ptl.c | 5 - drivers/staging/lustre/lustre/fid/fid_request.c | 6 +- drivers/staging/lustre/lustre/fld/fld_cache.c | 9 +- drivers/staging/lustre/lustre/fld/fld_internal.h | 33 +- drivers/staging/lustre/lustre/fld/fld_request.c | 9 +- drivers/staging/lustre/lustre/include/cl_object.h | 69 +- drivers/staging/lustre/lustre/include/lclient.h | 3 +- drivers/staging/lustre/lustre/include/linux/obd.h | 12 +- .../staging/lustre/lustre/include/lprocfs_status.h | 31 +- drivers/staging/lustre/lustre/include/lu_object.h | 12 +- .../lustre/lustre/include/lustre/ll_fiemap.h | 63 +- .../lustre/include/lustre/lustre_build_version.h | 2 - .../lustre/lustre/include/lustre/lustre_idl.h | 731 ++++++--------------- .../lustre/lustre/include/lustre/lustre_user.h | 82 ++- drivers/staging/lustre/lustre/include/lustre_cfg.h | 9 +- .../staging/lustre/lustre/include/lustre_disk.h | 252 +------ drivers/staging/lustre/lustre/include/lustre_dlm.h | 111 ++-- .../lustre/lustre/include/lustre_dlm_flags.h | 51 +- .../staging/lustre/lustre/include/lustre_export.h | 73 +- drivers/staging/lustre/lustre/include/lustre_fid.h | 18 +- drivers/staging/lustre/lustre/include/lustre_fld.h | 33 +- .../staging/lustre/lustre/include/lustre_handles.h | 3 +- .../staging/lustre/lustre/include/lustre_import.h | 3 +- drivers/staging/lustre/lustre/include/lustre_lib.h | 3 +- drivers/staging/lustre/lustre/include/lustre_log.h | 3 +- drivers/staging/lustre/lustre/include/lustre_mdc.h | 6 +- drivers/staging/lustre/lustre/include/lustre_net.h | 41 +- .../lustre/lustre/include/lustre_req_layout.h | 9 - drivers/staging/lustre/lustre/include/obd.h | 76 ++- drivers/staging/lustre/lustre/include/obd_cksum.h | 21 +- drivers/staging/lustre/lustre/include/obd_class.h | 66 +- .../staging/lustre/lustre/include/obd_support.h | 18 +- drivers/staging/lustre/lustre/lclient/glimpse.c | 3 +- drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 24 +- .../staging/lustre/lustre/lclient/lcommon_misc.c | 6 +- drivers/staging/lustre/lustre/ldlm/interval_tree.c | 6 +- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 14 +- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c | 51 +- drivers/staging/lustre/lustre/ldlm/ldlm_internal.h | 15 +- drivers/staging/lustre/lustre/ldlm/ldlm_lib.c | 35 +- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 110 ++-- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 46 +- drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 159 +++-- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 46 +- drivers/staging/lustre/lustre/llite/dcache.c | 18 +- drivers/staging/lustre/lustre/llite/dir.c | 31 +- drivers/staging/lustre/lustre/llite/file.c | 182 +++-- drivers/staging/lustre/lustre/llite/llite_close.c | 18 +- .../staging/lustre/lustre/llite/llite_internal.h | 123 ++-- drivers/staging/lustre/lustre/llite/llite_lib.c | 89 ++- drivers/staging/lustre/lustre/llite/llite_mmap.c | 22 +- drivers/staging/lustre/lustre/llite/llite_nfs.c | 6 +- drivers/staging/lustre/lustre/llite/lproc_llite.c | 3 +- drivers/staging/lustre/lustre/llite/namei.c | 41 +- drivers/staging/lustre/lustre/llite/rw.c | 74 ++- drivers/staging/lustre/lustre/llite/rw26.c | 23 +- drivers/staging/lustre/lustre/llite/statahead.c | 46 +- drivers/staging/lustre/lustre/llite/super25.c | 6 +- drivers/staging/lustre/lustre/llite/symlink.c | 3 +- drivers/staging/lustre/lustre/llite/vvp_io.c | 42 +- drivers/staging/lustre/lustre/llite/vvp_object.c | 3 +- drivers/staging/lustre/lustre/llite/vvp_page.c | 9 +- drivers/staging/lustre/lustre/llite/xattr.c | 15 +- drivers/staging/lustre/lustre/llite/xattr_cache.c | 8 +- drivers/staging/lustre/lustre/lmv/lmv_fld.c | 3 +- drivers/staging/lustre/lustre/lmv/lmv_intent.c | 9 +- drivers/staging/lustre/lustre/lmv/lmv_obd.c | 56 +- drivers/staging/lustre/lustre/lov/lov_ea.c | 3 +- drivers/staging/lustre/lustre/lov/lov_internal.h | 6 +- drivers/staging/lustre/lustre/lov/lov_lock.c | 32 +- drivers/staging/lustre/lustre/lov/lov_obd.c | 86 ++- drivers/staging/lustre/lustre/lov/lov_object.c | 24 +- drivers/staging/lustre/lustre/lov/lov_offset.c | 12 +- drivers/staging/lustre/lustre/lov/lov_pack.c | 12 +- drivers/staging/lustre/lustre/lov/lov_pool.c | 14 +- drivers/staging/lustre/lustre/lov/lov_request.c | 18 +- drivers/staging/lustre/lustre/lov/lovsub_lock.c | 6 +- drivers/staging/lustre/lustre/mdc/mdc_internal.h | 14 +- drivers/staging/lustre/lustre/mdc/mdc_lib.c | 3 +- drivers/staging/lustre/lustre/mdc/mdc_locks.c | 103 +-- drivers/staging/lustre/lustre/mdc/mdc_reint.c | 14 +- drivers/staging/lustre/lustre/mdc/mdc_request.c | 27 +- drivers/staging/lustre/lustre/mgc/mgc_request.c | 71 +- drivers/staging/lustre/lustre/obdclass/cl_io.c | 58 +- drivers/staging/lustre/lustre/obdclass/cl_lock.c | 24 +- drivers/staging/lustre/lustre/obdclass/class_obd.c | 16 +- drivers/staging/lustre/lustre/obdclass/genops.c | 42 +- .../lustre/lustre/obdclass/linux/linux-module.c | 4 +- drivers/staging/lustre/lustre/obdclass/llog.c | 6 +- drivers/staging/lustre/lustre/obdclass/llog_obd.c | 3 +- drivers/staging/lustre/lustre/obdclass/llog_swab.c | 3 +- .../lustre/lustre/obdclass/lprocfs_counters.c | 6 +- .../lustre/lustre/obdclass/lprocfs_status.c | 2 +- drivers/staging/lustre/lustre/obdclass/lu_object.c | 3 +- .../lustre/lustre/obdclass/lustre_handles.c | 3 +- .../staging/lustre/lustre/obdclass/lustre_peer.c | 3 +- .../staging/lustre/lustre/obdclass/obd_config.c | 44 +- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 67 +- drivers/staging/lustre/lustre/obdclass/obdo.c | 6 +- .../staging/lustre/lustre/obdecho/echo_client.c | 9 +- .../staging/lustre/lustre/obdecho/echo_internal.h | 5 - drivers/staging/lustre/lustre/osc/lproc_osc.c | 4 +- drivers/staging/lustre/lustre/osc/osc_cache.c | 168 +++-- .../staging/lustre/lustre/osc/osc_cl_internal.h | 37 +- drivers/staging/lustre/lustre/osc/osc_internal.h | 8 +- drivers/staging/lustre/lustre/osc/osc_io.c | 6 +- drivers/staging/lustre/lustre/osc/osc_lock.c | 45 +- drivers/staging/lustre/lustre/osc/osc_page.c | 42 +- drivers/staging/lustre/lustre/osc/osc_quota.c | 21 +- drivers/staging/lustre/lustre/osc/osc_request.c | 171 +++-- drivers/staging/lustre/lustre/ptlrpc/connection.c | 3 +- drivers/staging/lustre/lustre/ptlrpc/events.c | 51 +- drivers/staging/lustre/lustre/ptlrpc/import.c | 114 ++-- drivers/staging/lustre/lustre/ptlrpc/layout.c | 82 --- drivers/staging/lustre/lustre/ptlrpc/llog_client.c | 8 +- .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 10 +- drivers/staging/lustre/lustre/ptlrpc/niobuf.c | 42 +- drivers/staging/lustre/lustre/ptlrpc/nrs.c | 6 +- .../staging/lustre/lustre/ptlrpc/pack_generic.c | 75 +-- drivers/staging/lustre/lustre/ptlrpc/pinger.c | 11 +- .../staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 2 - drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c | 9 +- drivers/staging/lustre/lustre/ptlrpc/recover.c | 18 +- drivers/staging/lustre/lustre/ptlrpc/sec.c | 27 +- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c | 6 +- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 3 +- drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 6 +- drivers/staging/lustre/lustre/ptlrpc/service.c | 117 ++-- drivers/staging/lustre/lustre/ptlrpc/wiretest.c | 272 -------- 131 files changed, 2608 insertions(+), 2723 deletions(-) delete mode 100644 drivers/staging/lustre/lustre/include/lustre/lustre_build_version.h -- 2.1.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel