LU-2675 build: remove WinNT "support" Remove the WinNT "support" code. It's not maintained or used. Signed-off-by: John L. Hammond <john.hammond@intel.com> Change-Id: I361bfce148a040db60d68d3c34a399415f2dd628 Reviewed-on: http://review.whamcloud.com/11385 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-3963 libcfs: cleanup list operations Cleanup list operations (libcfs/include/libcfs/list.h) All typed list operations for the libcfs core are converted to the kernel APIs. Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: Ibcb92e5133312e8db4fdf2f9fa1b68a8c68a2e74 Reviewed-on: http://review.whamcloud.com/4780 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Peng Tao <bergwolf@gmail.com>
LU-1346 libcfs: cleanup libcfs atomic primitives Only libcfs/ directory are converted yet. Other directories are left for later patches. Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: Ic379ac493ca4ead1ee6aa8aeb52b4017ee65c93c Reviewed-on: http://review.whamcloud.com/6959 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1346 libcfs: cleanup libcfs primitive (linux-prim.h) Affected primitives: cfs_mb, cfs_in_interrupt, cfs_might_sleep, cfs_group_info_t, cfs_get_group_info, cfs_put_group_info, cfs_set_current_groups, cfs_groups_free, cfs_groups_alloc, cfs_get_random_bytes_prim Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: James Simmons <uja.ornl@gmail.com> Change-Id: I52293cad577f2027cabf1b124dbb1b7354fef3a5 Reviewed-on: http://review.whamcloud.com/6957 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Keith Mannthey <keith.mannthey@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-1346 libcfs: replace cfs_ memory wrappers Replace memory relevant wrappers with kernel API. Affected primitives: CFS_PAGE_SIZE, CFS_PAGE_SHIFT, cfs_num_physpages, cfs_copy_from_user, cfs_copy_to_user, cfs_page_address, cfs_kmap/cfs_kunmap, cfs_get_page, cfs_page_count, cfs_page_index, cfs_page_pin, cfs_page_unpin, cfs_memory_pressure_get/set/clr, CFS_NUM_CACHEPAGES, CFS_ALLOC_XXX flags, cfs_alloc/free, cfs_alloc/free_large, cfs_alloc/free_page, CFS_DECL_MMSPACE, CFS_MMSPACE_OPEN, CFS_MMSPACE_CLOSE, CFS_SLAB_XXX flags, cfs_shrinker_t, cfs_set/remove_shrinker, CFS_DEFAULT_SEEKS, cfs_mem_cache_t, cfs_mem_cache_alloc/free/create/destroy, cfs_mem_is_in_cache manual changes: 1. cfs_alloc_flags_to_gfp() is removed 2. remove kmalloc/kfree etc. from linux-mem.c and linux-mem.h 3. remove page_address/kmap/kunmap etc. from linux-mem.h 4. remove page_cache_get/page_cache_release from echo_internal.h. They are defined already in user-mem.h 5. change kmem_cache_create/destroy prototype to kernel's and modify all callers to match them 6. define _SPL_KMEM_H and related macros to avoid using spl's sys/kmem.h that redefines slab allocator 7. change kmem_virt to is_vmalloc_addr as provided by kernel, so that we don't use any spl's sys/kmem.h functions 8. clean up include files a little bit in osd-zfs 9. various coding style cleanup NUMA allocators(cfs_cpt_xxx) are not changed in this patch. gnilnd is not converted, as requested by James Simmons. Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Change-Id: Iadfbb0d5a0e31c78dd6c811e5ffdb468fa7e6f44 Reviewed-on: http://review.whamcloud.com/2831 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2446 build: Update Whamcloud copyright messages for Intel Update the copyright messages for master branch for Intel. This is the result of the updatecw.sh script. Signed-off-by: Keith Mannthey <keith.mannthey@intel.com> Change-Id: Id8dc454e7a5b6dffef64aa6efefeaaaea966d780 Reviewed-on: http://review.whamcloud.com/4812 Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com>
LU-1346 libcfs: replace libcfs wrappers with kernel API The libcfs kernel portability library had wrappers for many low-level kernel functions (locking, bit operations, etc) that were simple wrappers around Linux kernel functions. This provides no value for Linux clients and clients for other kernels are not under development. Remove the cfs_ prefix from these simple wrapper functions. For other kernels, they will need to use the Linux kernel API for portability. Affected primitives: spinlock_t, spin_lock_init, spin_lock, spin_unlock, spin_lock_bh, spin_lock_bh_init, spin_unlock_bh, spin_trylock, spin_is_locked, spin_lock_irq, spin_unlock_irq, read_lock_irqsave, write_lock_irqsave, read_lock_irqrestore, write_lock_irqrestore, spin_lock_irqsave, spin_unlock_irqrestore, SPIN_LOCK_UNLOCKED rw_semaphore, init_rwsem, down_read, down_read_trylock, up_read, down_write, down_write_trylock, up_write, fini_rwsem, DECLARE_RWSEM semaphore, rw_semaphore, init_completion_module, call_wait_handler, wait_handler_t, mt_completion_t, mt_init_completion, mt_wait_for_completion, mt_complete, mt_fini_completion, mt_atomic_t, mt_atomic_read, mt_atomic_set, mt_atomic_dec_and_test, mt_atomic_inc, mt_atomic_dec, mt_atomic_add, mt_atomic_sub rw_lock_t, rwlock_init, read_lock, read_unlock, read_unlock_irqrestore, write_lock, write_unlock, write_lock_bh, write_unlock_bh, RW_LOCK_UNLOCKED completion_t, DECLARE_COMPLETION, INIT_COMPLETION, complete, COMPLETION_INITIALIZER, init_completion, wait_for_completion, wait_for_completion_interruptible, complete_and_exit, fini_completion semaphore_t, DEFINE_SEMAPHORE, sema_init, up, down, down_interruptible, down_trylock mutex_t, DEFINE_MUTEX, mutex_init, mutex_lock, mutex_unlock, mutex_lock_interruptible, mutex_trylock, mutex_is_locked, mutex_destroy lock_kernel, unlock_kernel lock_class_key, lock_class_key_t, lockdep_set_class, lockdep_off, lockdep_on, mutext_lock_nexted, spin_lock_nexted, down_read_nested, down_write_nested test_bit, set_bit, clear_bit, test_and_set_bit, test_and_clear_bit, find_first_bit, find_first_zero_bit, find_next_bit, find_next_zero_bit, ffz, ffs, fls Change-Id: I36db204c703ed414504eaa9ba22e97ad7eb6cc2c Signed-off-by: Liu Xuezhao <xuezhao.liu@emc.com> Signed-off-by: Oleg Drokin <green@whamcloud.com> Reviewed-on: http://review.whamcloud.com/2829 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com>
LU-1347 build: remove the vim/emacs modelines Delete all of the vim/emacs modelines. Add copyright information for a few files. Signed-off-by: Liang Zhen <liang@whamcloud.com> Change-Id: Ic22ce8d8cc7786ffdb19937eb9f93a2d49aa2581 Reviewed-on: http://review.whamcloud.com/2658 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
b=16842 Libcfs common code changes i=rread i=alex libcfs: get rid of cfs_alloc/free_pages and cfs_get_blockedsigs, fix __l_wait_event
Mass conversion of all copyright messages to Oracle.
b=17167 libcfs: ensure all libcfs exported symbols to have cfs_ prefix i=Andreas Dilger
b=17087 i=matt i=liang Minor fix for winnt build problems introduced by landing patch making ksocklnd more os-neutral
b=16150 i=adilger i=robert i=liang winnt libcfs cleanup
b=16098 Add URL for GPLv2 license in copyright headers
b=16098 change CFS license headers to Sun headers
Branch HEAD b=15969 i=isaac i=adilger Move libcfs to a module.