kernel-ark/fs/xfs
Ingo Molnar 39c715b717 [PATCH] smp_processor_id() cleanup
This patch implements a number of smp_processor_id() cleanup ideas that
Arjan van de Ven and I came up with.

The previous __smp_processor_id/_smp_processor_id/smp_processor_id API
spaghetti was hard to follow both on the implementational and on the
usage side.

Some of the complexity arose from picking wrong names, some of the
complexity comes from the fact that not all architectures defined
__smp_processor_id.

In the new code, there are two externally visible symbols:

 - smp_processor_id(): debug variant.

 - raw_smp_processor_id(): nondebug variant. Replaces all existing
   uses of _smp_processor_id() and __smp_processor_id(). Defined
   by every SMP architecture in include/asm-*/smp.h.

There is one new internal symbol, dependent on DEBUG_PREEMPT:

 - debug_smp_processor_id(): internal debug variant, mapped to
                             smp_processor_id().

Also, i moved debug_smp_processor_id() from lib/kernel_lock.c into a new
lib/smp_processor_id.c file.  All related comments got updated and/or
clarified.

I have build/boot tested the following 8 .config combinations on x86:

 {SMP,UP} x {PREEMPT,!PREEMPT} x {DEBUG_PREEMPT,!DEBUG_PREEMPT}

I have also build/boot tested x64 on UP/PREEMPT/DEBUG_PREEMPT.  (Other
architectures are untested, but should work just fine.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 18:46:13 -07:00
..
linux-2.6 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
quota
support
Kconfig
Makefile [XFS] Enable XFS_VNODE_TRACE 2005-05-05 13:26:18 -07:00
xfs_acl.c
xfs_acl.h
xfs_ag.h
xfs_alloc_btree.c
xfs_alloc_btree.h
xfs_alloc.c
xfs_alloc.h
xfs_arch.h
xfs_attr_leaf.c
xfs_attr_leaf.h
xfs_attr_sf.h
xfs_attr.c
xfs_attr.h
xfs_behavior.c
xfs_behavior.h
xfs_bit.c
xfs_bit.h
xfs_bmap_btree.c
xfs_bmap_btree.h
xfs_bmap.c
xfs_bmap.h
xfs_btree.c
xfs_btree.h
xfs_buf_item.c
xfs_buf_item.h
xfs_cap.h
xfs_clnt.h
xfs_da_btree.c
xfs_da_btree.h
xfs_dfrag.c [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_dfrag.h
xfs_dinode.h
xfs_dir2_block.c
xfs_dir2_block.h
xfs_dir2_data.c
xfs_dir2_data.h
xfs_dir2_leaf.c
xfs_dir2_leaf.h
xfs_dir2_node.c
xfs_dir2_node.h
xfs_dir2_sf.c
xfs_dir2_sf.h
xfs_dir2_trace.c
xfs_dir2_trace.h
xfs_dir2.c
xfs_dir2.h
xfs_dir_leaf.c
xfs_dir_leaf.h
xfs_dir_sf.h
xfs_dir.c
xfs_dir.h
xfs_dmapi.h
xfs_dmops.c
xfs_error.c
xfs_error.h
xfs_extfree_item.c
xfs_extfree_item.h
xfs_fs.h
xfs_fsops.c
xfs_fsops.h
xfs_ialloc_btree.c
xfs_ialloc_btree.h
xfs_ialloc.c
xfs_ialloc.h
xfs_iget.c [XFS] Move the XFS inode to the front of its hash list on a cache hit 2005-05-05 13:23:27 -07:00
xfs_imap.h
xfs_inode_item.c
xfs_inode_item.h
xfs_inode.c [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_inode.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_inum.h
xfs_iocore.c
xfs_iomap.c [XFS] Fix a bug in xfs_iomap for extent handling of write cases 2005-05-06 06:42:22 -07:00
xfs_iomap.h [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_itable.c
xfs_itable.h
xfs_log_priv.h
xfs_log_recover.c
xfs_log_recover.h
xfs_log.c
xfs_log.h
xfs_mac.h
xfs_macros.c
xfs_macros.h
xfs_mount.c [XFS] Block mount attempts for filesystems with version 1 directories. 2005-05-05 13:24:13 -07:00
xfs_mount.h [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_qmops.c
xfs_quota.h
xfs_refcache.h
xfs_rename.c
xfs_rtalloc.c
xfs_rtalloc.h
xfs_rw.c
xfs_rw.h
xfs_sb.h
xfs_trans_ail.c
xfs_trans_buf.c
xfs_trans_extfree.c
xfs_trans_inode.c
xfs_trans_item.c
xfs_trans_priv.h
xfs_trans_space.h
xfs_trans.c
xfs_trans.h
xfs_types.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_utils.c [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_utils.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_vfsops.c [XFS] Allow initial XFS delayed allocation size to be increased beyond 64KB. 2005-05-05 13:28:29 -07:00
xfs_vnodeops.c [XFS] Add ATTR_NOLOCK for xfs_setattr to indicate that XFS_IOLOCK is held 2005-05-05 13:27:19 -07:00
xfs.h