From: Nathan Scott Date: Thu, 7 Mar 2002 04:45:07 +0000 (+0000) Subject: remove dead code, sync with kernel changes. X-Git-Tag: v2.1.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=180e06df572586a5222328743376f37be25fe491;p=thirdparty%2Fxfsprogs-dev.git remove dead code, sync with kernel changes. --- diff --git a/include/xfs_inode.h b/include/xfs_inode.h index 7adfe4c6c..96a470e32 100644 --- a/include/xfs_inode.h +++ b/include/xfs_inode.h @@ -178,22 +178,12 @@ typedef struct xfs_iocore { #define IO_IS_XFS(io) ((io)->io_flags & XFS_IOCORE_ISXFS) -/* - * Clear out the read-ahead state in the in-core inode. - * We actually only need to clear i_next_offset and - * i_last_req_sz to get the effect of making all the - * read ahead state unusable. - */ -#define XFS_INODE_CLEAR_READ_AHEAD(io) - - /* * xfs_iocore prototypes */ extern void xfs_iocore_inode_init(struct xfs_inode *); extern void xfs_iocore_inode_reinit(struct xfs_inode *); -extern void xfs_iocore_reset(xfs_iocore_t *); /* diff --git a/include/xfs_mount.h b/include/xfs_mount.h index 2c859d331..a58832582 100644 --- a/include/xfs_mount.h +++ b/include/xfs_mount.h @@ -82,21 +82,12 @@ struct xfs_dio; struct xfs_bmbt_irec; struct xfs_bmap_free; -#if defined(INTERRUPT_LATENCY_TESTING) -#define SPLDECL(s) -#define AIL_LOCK_T mutex_t -#define AIL_LOCKINIT(x,y) mutex_init(x,MUTEX_DEFAULT, y) -#define AIL_LOCK_DESTROY(x) mutex_destroy(x) -#define AIL_LOCK(mp,s) mutex_lock(&(mp)->m_ail_lock, PZERO) -#define AIL_UNLOCK(mp,s) mutex_unlock(&(mp)->m_ail_lock) -#else /* !INTERRUPT_LATENCY_TESTING */ #define SPLDECL(s) int s #define AIL_LOCK_T lock_t #define AIL_LOCKINIT(x,y) spinlock_init(x,y) #define AIL_LOCK_DESTROY(x) spinlock_destroy(x) #define AIL_LOCK(mp,s) s=mutex_spinlock(&(mp)->m_ail_lock) #define AIL_UNLOCK(mp,s) mutex_spinunlock(&(mp)->m_ail_lock, s) -#endif /* !INTERRUPT_LATENCY_TESTING */ /* Prototypes and functions for I/O core modularization, a vector