diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-08-23 02:19:57 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 02:45:55 -0400 |
commit | 948c6d4fd894d9c7f9ad764cedbe443aa866def2 (patch) | |
tree | 1fc863026835aa07cd3eba50345a9a8619cb483e /fs/xfs/xfs_dmapi.h | |
parent | eb9df39daf870d6f9e9528f092d506be04ebad2f (diff) |
[XFS] optimize dmapi event tests w/o dmapi config
SGI-PV: 969372
SGI-Modid: xfs-linux-melb:xfs-kern:29444a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dmapi.h')
-rw-r--r-- | fs/xfs/xfs_dmapi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dmapi.h b/fs/xfs/xfs_dmapi.h index 988cf446d9e7..98b4d6325a20 100644 --- a/fs/xfs/xfs_dmapi.h +++ b/fs/xfs/xfs_dmapi.h | |||
@@ -67,11 +67,15 @@ typedef enum { | |||
67 | #define HAVE_DM_RIGHT_T | 67 | #define HAVE_DM_RIGHT_T |
68 | 68 | ||
69 | /* Defines for determining if an event message should be sent. */ | 69 | /* Defines for determining if an event message should be sent. */ |
70 | #ifdef HAVE_DMAPI | ||
70 | #define DM_EVENT_ENABLED(ip, event) ( \ | 71 | #define DM_EVENT_ENABLED(ip, event) ( \ |
71 | unlikely (XFS_MTOVFS((ip)->i_mount)->vfs_flag & VFS_DMI) && \ | 72 | unlikely (XFS_MTOVFS((ip)->i_mount)->vfs_flag & VFS_DMI) && \ |
72 | ( ((ip)->i_d.di_dmevmask & (1 << event)) || \ | 73 | ( ((ip)->i_d.di_dmevmask & (1 << event)) || \ |
73 | ((ip)->i_mount->m_dmevmask & (1 << event)) ) \ | 74 | ((ip)->i_mount->m_dmevmask & (1 << event)) ) \ |
74 | ) | 75 | ) |
76 | #else | ||
77 | #define DM_EVENT_ENABLED(ip, event) (0) | ||
78 | #endif | ||
75 | 79 | ||
76 | #define DM_XFS_VALID_FS_EVENTS ( \ | 80 | #define DM_XFS_VALID_FS_EVENTS ( \ |
77 | (1 << DM_EVENT_PREUNMOUNT) | \ | 81 | (1 << DM_EVENT_PREUNMOUNT) | \ |