From: Oleg Drokin <green@xxxxxxxxxxxxxx> This big set of patches started with Arnd Bergmann doing some y2038 proofing on the Lustre code and then it was noticed that some parts f the code are not really needed on the client so some of the unused functionality (both time related and not) piled on. I did some chopping of the biggest patches to make them smaller, but some of them are still pretty big (doing huge net deletions at that). I am sending this now to get my local tree back under control so that more stuff could be deleted as it's being found. Overall this set removes about 10k lines from Lustre. Please consider. Arnd Bergmann (39): staging/lustre: use jiffies for lp_last_query times staging/lustre: use 64-bit inode timestamps internally staging/lustre: obd: remove unused data structures staging/lustre: tracefile: document seconds overflow staging/lustre: use 64-bit timestamps in debugfs output staging/lustre: use time64_t for l_last_activity staging/lustre: use ktime_t for calculating elapsed time staging/lustre: change rq_at_index type staging/lustre: avoid unnecessary timeval conversion staging/lustre: use 64-bit time LNetCtl() staging/lustre: use 'long' return type for cfs_duration_sec() staging/lustre: use jiffies_to_*() instead of cfs_duration_usec staging/lustre: use 64-bit ibn_incarnation computation staging/lustre: use 64-bit times for cfs_srand seed staging/lustre: use 64-bit computation in s2dhms() staging/lustre: use 64-bit timestamps for selftest staging/lustre: use 64-bit time for pl_recalc staging/lustre: use 64-bit time for debugfs output staging/lustre: use 64-bit time for adaptive timeout staging/lustre: use 64-bit llite debugfs timestamps staging/lustre: use 64-bit times for ksnd_connd staging/lustre: use 64-bit time for ni_last_alive staging/lustre: use 64-bit time for selftest staging/lustre: use 64-bit times in ptlrpc_enc_page_pool staging/lustre: use 64-bit times in debug print staging/lustre: use 64-bit times in another debug print staging/lustre: use 64-bit timestamps for mdc staging/lustre: use 64-bit times for ptlrpc sec expiry staging/lustre: use 64-bit times for ptlrpc_sec staging/lustre: use 64-bit times for request times staging/lustre: remove the ping evictor staging/lustre/lov: remove a bit of dead code staging/lustre: remove wrappers for timer functions staging/lustre: remove unused time handling functions staging/lustre: remove class_disconnect_export_list staging/lustre: remove CFS_TIME_T definition staging/lustre/llog: remove unused server code staging/lustre: remove dt_object implementation staging/lustre: partially use time64_t for capa expiry Oleg Drokin (34): staging/lustre/ptlrpc: Remove ptlrpc_update_export_timer() staging/lustre/obdclass: Remove unused lprocfs_wr_evict_client staging/lustre: Remove obd_export_evict_by_nid/uuid staging/lustre/obdclass: Remove unused lprocfs_alloc/free_obd_stats staging/lustre: Remove unused lprocfs_alloc/free_md_stats staging/lustre: Remove unused lprocfs_init_ldlm_stats staging/lustre: Remove unused debugfs/procfs helpers staging/lustre: Remove mds/ost capabilities support staging/lustre: Remove unused target_print_req() staging/lustre: Remove unused lustre_acl_xattr_merge2posix() staging/lustre/ptlrpc: Remove server-specific health checks staging/lustre: Remove unused req_capsule_server_grow staging/lustre: Remove unused reply state batches code staging/lustre: Remove high-priority request callbacks staging/lustre: Remove unused statfs_pack() staging/lustre: Remove unused ptlrpcd_add_rqset() staging/lustre: Remove unused functions and definitions from cl_object staging/lustre: Remove unused lu_object functions. staging/lustre/ldlm: Remove unused round_timeout function staging/lustre/obdclass: Remove unused functions from genops.c staging/lustre: Remove unused function class_handle_hash_back() staging/lustre: Remove unused function server_name2svname() staging/lustre/obdclass: Drop unused code from obdo.c staging/lustre/ptlrpc: Drop unused client code staging/lustre/ptlrpc: secure wrapping code cleanup staging/lustre: Drop unused obdo_from_la() and la_from_obdo() staging/lustre: remove lots of dead code staging/lustre/fid: Remove server fid function declarations staging/lustre/fid: seq_client_init/fini don't need to be exported staging/lustre/fid: Remove unused seq_client_get_seq function staging/lustre/fid: Get rid of lcs_srv in lu_client_seq staging/lustre/fid: Remove unused struct lu_server_seq staging/lustre/obdclass: Remove unused nid_hash staging/lustre: Remove server-only recovery-related bits .../staging/lustre/include/linux/libcfs/libcfs.h | 3 - .../lustre/include/linux/libcfs/libcfs_debug.h | 1 + .../lustre/include/linux/libcfs/libcfs_prim.h | 12 - .../lustre/include/linux/libcfs/libcfs_time.h | 49 - .../lustre/include/linux/libcfs/linux/linux-time.h | 35 +- .../staging/lustre/include/linux/lnet/lib-lnet.h | 2 +- .../staging/lustre/include/linux/lnet/lib-types.h | 2 +- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 7 +- .../staging/lustre/lnet/klnds/socklnd/socklnd.c | 2 +- .../staging/lustre/lnet/klnds/socklnd/socklnd.h | 6 +- .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 8 +- drivers/staging/lustre/lnet/lnet/api-ni.c | 6 +- drivers/staging/lustre/lnet/lnet/config.c | 2 +- drivers/staging/lustre/lnet/lnet/lib-eq.c | 9 +- drivers/staging/lustre/lnet/lnet/lib-move.c | 4 +- drivers/staging/lustre/lnet/lnet/router.c | 10 +- drivers/staging/lustre/lnet/lnet/router_proc.c | 2 +- drivers/staging/lustre/lnet/selftest/brw_test.c | 6 +- drivers/staging/lustre/lnet/selftest/conctl.c | 2 +- drivers/staging/lustre/lnet/selftest/conrpc.c | 17 +- drivers/staging/lustre/lnet/selftest/console.c | 2 +- drivers/staging/lustre/lnet/selftest/console.h | 2 +- drivers/staging/lustre/lnet/selftest/framework.c | 9 +- drivers/staging/lustre/lnet/selftest/ping_test.c | 16 +- drivers/staging/lustre/lnet/selftest/rpc.c | 9 +- drivers/staging/lustre/lnet/selftest/selftest.h | 2 +- drivers/staging/lustre/lnet/selftest/timer.c | 14 +- drivers/staging/lustre/lnet/selftest/timer.h | 2 +- drivers/staging/lustre/lustre/fid/fid_request.c | 132 +- drivers/staging/lustre/lustre/fid/lproc_fid.c | 3 - drivers/staging/lustre/lustre/fld/fld_cache.c | 1 - drivers/staging/lustre/lustre/fld/fld_internal.h | 3 - drivers/staging/lustre/lustre/fld/fld_request.c | 1 - drivers/staging/lustre/lustre/fld/lproc_fld.c | 1 - drivers/staging/lustre/lustre/include/cl_object.h | 36 +- drivers/staging/lustre/lustre/include/dt_object.h | 1496 -------------------- drivers/staging/lustre/lustre/include/lclient.h | 3 +- .../staging/lustre/lustre/include/lprocfs_status.h | 37 +- drivers/staging/lustre/lustre/include/lu_object.h | 27 - .../lustre/lustre/include/lustre/lustre_idl.h | 33 +- .../lustre/lustre/include/lustre/lustre_user.h | 2 - .../staging/lustre/lustre/include/lustre_capa.h | 305 ---- .../staging/lustre/lustre/include/lustre_debug.h | 1 - .../staging/lustre/lustre/include/lustre_disk.h | 2 - drivers/staging/lustre/lustre/include/lustre_dlm.h | 6 +- .../staging/lustre/lustre/include/lustre_eacl.h | 4 - .../staging/lustre/lustre/include/lustre_export.h | 37 +- drivers/staging/lustre/lustre/include/lustre_fid.h | 94 -- drivers/staging/lustre/lustre/include/lustre_fld.h | 4 - .../staging/lustre/lustre/include/lustre_handles.h | 1 - .../staging/lustre/lustre/include/lustre_import.h | 15 +- drivers/staging/lustre/lustre/include/lustre_lib.h | 1 - drivers/staging/lustre/lustre/include/lustre_log.h | 74 +- drivers/staging/lustre/lustre/include/lustre_mds.h | 5 - drivers/staging/lustre/lustre/include/lustre_net.h | 68 +- .../staging/lustre/lustre/include/lustre_param.h | 6 - .../lustre/lustre/include/lustre_req_layout.h | 7 - drivers/staging/lustre/lustre/include/lustre_sec.h | 22 +- drivers/staging/lustre/lustre/include/obd.h | 170 +-- drivers/staging/lustre/lustre/include/obd_class.h | 92 +- drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 11 +- drivers/staging/lustre/lustre/ldlm/ldlm_lib.c | 1 - drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 2 +- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 5 - drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 30 +- drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 33 +- drivers/staging/lustre/lustre/libcfs/debug.c | 4 +- .../lustre/lustre/libcfs/linux/linux-prim.c | 64 - .../lustre/lustre/libcfs/linux/linux-tracefile.c | 10 +- drivers/staging/lustre/lustre/libcfs/module.c | 3 - drivers/staging/lustre/lustre/llite/Makefile | 2 +- drivers/staging/lustre/lustre/llite/file.c | 42 +- drivers/staging/lustre/lustre/llite/llite_capa.c | 661 --------- .../staging/lustre/lustre/llite/llite_internal.h | 29 +- drivers/staging/lustre/lustre/llite/llite_lib.c | 79 +- drivers/staging/lustre/lustre/llite/lproc_llite.c | 24 +- drivers/staging/lustre/lustre/llite/namei.c | 10 +- drivers/staging/lustre/lustre/llite/remote_perm.c | 5 +- drivers/staging/lustre/lustre/llite/rw.c | 8 - drivers/staging/lustre/lustre/llite/statahead.c | 32 +- drivers/staging/lustre/lustre/llite/super25.c | 20 +- drivers/staging/lustre/lustre/llite/vvp_io.c | 4 +- drivers/staging/lustre/lustre/llite/vvp_object.c | 12 +- drivers/staging/lustre/lustre/llite/xattr.c | 10 +- drivers/staging/lustre/lustre/lmv/lmv_obd.c | 53 +- drivers/staging/lustre/lustre/lov/lov_io.c | 2 - drivers/staging/lustre/lustre/lov/lov_obd.c | 24 +- drivers/staging/lustre/lustre/lov/lov_request.c | 2 - drivers/staging/lustre/lustre/mdc/mdc_internal.h | 18 +- drivers/staging/lustre/lustre/mdc/mdc_lib.c | 48 +- drivers/staging/lustre/lustre/mdc/mdc_locks.c | 39 +- drivers/staging/lustre/lustre/mdc/mdc_reint.c | 24 +- drivers/staging/lustre/lustre/mdc/mdc_request.c | 235 +-- drivers/staging/lustre/lustre/obdclass/Makefile | 2 +- drivers/staging/lustre/lustre/obdclass/acl.c | 119 -- drivers/staging/lustre/lustre/obdclass/capa.c | 421 ------ drivers/staging/lustre/lustre/obdclass/cl_io.c | 65 - drivers/staging/lustre/lustre/obdclass/cl_lock.c | 26 - drivers/staging/lustre/lustre/obdclass/cl_object.c | 41 - drivers/staging/lustre/lustre/obdclass/class_obd.c | 3 - drivers/staging/lustre/lustre/obdclass/debug.c | 10 - drivers/staging/lustre/lustre/obdclass/dt_object.c | 1053 -------------- drivers/staging/lustre/lustre/obdclass/genops.c | 466 +----- .../lustre/lustre/obdclass/linux/linux-obdo.c | 137 -- .../lustre/lustre/obdclass/linux/linux-sysctl.c | 4 - drivers/staging/lustre/lustre/obdclass/llog.c | 546 +------ drivers/staging/lustre/lustre/obdclass/llog_cat.c | 574 -------- .../staging/lustre/lustre/obdclass/llog_internal.h | 10 - drivers/staging/lustre/lustre/obdclass/llog_obd.c | 30 - .../lustre/lustre/obdclass/lprocfs_status.c | 366 +---- drivers/staging/lustre/lustre/obdclass/lu_object.c | 241 ---- .../lustre/lustre/obdclass/lustre_handles.c | 19 +- .../staging/lustre/lustre/obdclass/obd_config.c | 385 +---- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 27 - drivers/staging/lustre/lustre/obdclass/obdo.c | 170 --- .../staging/lustre/lustre/obdclass/statfs_pack.c | 14 - .../staging/lustre/lustre/obdecho/echo_client.c | 16 +- drivers/staging/lustre/lustre/osc/lproc_osc.c | 16 +- drivers/staging/lustre/lustre/osc/osc_io.c | 8 +- drivers/staging/lustre/lustre/osc/osc_request.c | 65 +- drivers/staging/lustre/lustre/ptlrpc/client.c | 143 +- drivers/staging/lustre/lustre/ptlrpc/events.c | 8 +- drivers/staging/lustre/lustre/ptlrpc/import.c | 25 +- drivers/staging/lustre/lustre/ptlrpc/layout.c | 126 -- drivers/staging/lustre/lustre/ptlrpc/llog_client.c | 36 - .../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 95 +- drivers/staging/lustre/lustre/ptlrpc/niobuf.c | 13 +- drivers/staging/lustre/lustre/ptlrpc/nrs.c | 123 -- .../staging/lustre/lustre/ptlrpc/pack_generic.c | 203 +-- drivers/staging/lustre/lustre/ptlrpc/pinger.c | 158 +-- .../staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 9 - drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c | 42 - drivers/staging/lustre/lustre/ptlrpc/sec.c | 144 +- drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 352 +---- drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 50 +- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c | 21 +- drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c | 4 +- drivers/staging/lustre/lustre/ptlrpc/service.c | 502 ++----- 138 files changed, 533 insertions(+), 10831 deletions(-) delete mode 100644 drivers/staging/lustre/lustre/include/dt_object.h delete mode 100644 drivers/staging/lustre/lustre/include/lustre_capa.h delete mode 100644 drivers/staging/lustre/lustre/llite/llite_capa.c delete mode 100644 drivers/staging/lustre/lustre/obdclass/capa.c delete mode 100644 drivers/staging/lustre/lustre/obdclass/dt_object.c -- 2.1.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel