Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
xfs_linux.h File Reference
#include <linux/types.h>
#include "xfs_types.h"
#include "kmem.h"
#include "mrlock.h"
#include "time.h"
#include "uuid.h"
#include <linux/semaphore.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/file.h>
#include <linux/swap.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/bitops.h>
#include <linux/major.h>
#include <linux/pagemap.h>
#include <linux/vfs.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/proc_fs.h>
#include <linux/sort.h>
#include <linux/cpu.h>
#include <linux/notifier.h>
#include <linux/delay.h>
#include <linux/log2.h>
#include <linux/spinlock.h>
#include <linux/random.h>
#include <linux/ctype.h>
#include <linux/writeback.h>
#include <linux/capability.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/list_sort.h>
#include <asm/page.h>
#include <asm/div64.h>
#include <asm/param.h>
#include <asm/uaccess.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include "xfs_vnode.h"
#include "xfs_stats.h"
#include "xfs_sysctl.h"
#include "xfs_iops.h"
#include "xfs_aops.h"
#include "xfs_super.h"
#include "xfs_buf.h"
#include "xfs_message.h"

Go to the source code of this file.

Macros

#define XFS_BIG_BLKNOS   0
 
#define XFS_BIG_INUMS   0
 
#define irix_sgid_inherit   xfs_params.sgid_inherit.val
 
#define irix_symlink_mode   xfs_params.symlink_mode.val
 
#define xfs_panic_mask   xfs_params.panic_mask.val
 
#define xfs_error_level   xfs_params.error_level.val
 
#define xfs_syncd_centisecs   xfs_params.syncd_timer.val
 
#define xfs_stats_clear   xfs_params.stats_clear.val
 
#define xfs_inherit_sync   xfs_params.inherit_sync.val
 
#define xfs_inherit_nodump   xfs_params.inherit_nodump.val
 
#define xfs_inherit_noatime   xfs_params.inherit_noatim.val
 
#define xfs_buf_timer_centisecs   xfs_params.xfs_buf_timer.val
 
#define xfs_buf_age_centisecs   xfs_params.xfs_buf_age.val
 
#define xfs_inherit_nosymlinks   xfs_params.inherit_nosym.val
 
#define xfs_rotorstep   xfs_params.rotorstep.val
 
#define xfs_inherit_nodefrag   xfs_params.inherit_nodfrg.val
 
#define xfs_fstrm_centisecs   xfs_params.fstrm_timer.val
 
#define current_cpu()   (raw_smp_processor_id())
 
#define current_pid()   (current->pid)
 
#define current_test_flags(f)   (current->flags & (f))
 
#define current_set_flags_nested(sp, f)   (*(sp) = current->flags, current->flags |= (f))
 
#define current_clear_flags_nested(sp, f)   (*(sp) = current->flags, current->flags &= ~(f))
 
#define current_restore_flags_nested(sp, f)   (current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
 
#define spinlock_destroy(lock)
 
#define NBBY   8 /* number of bits per byte */
 
#define BLKDEV_IOSHIFT   PAGE_CACHE_SHIFT
 
#define BLKDEV_IOSIZE   (1<<BLKDEV_IOSHIFT)
 
#define BLKDEV_BB   BTOBB(BLKDEV_IOSIZE)
 
#define ENOATTR   ENODATA /* Attribute not found */
 
#define EWRONGFS   EINVAL /* Mount with wrong filesystem type */
 
#define EFSCORRUPTED   EUCLEAN /* Filesystem is corrupted */
 
#define SYNCHRONIZE()   barrier()
 
#define __return_address   __builtin_return_address(0)
 
#define XFS_PROJID_DEFAULT   0
 
#define MAXPATHLEN   1024
 
#define MIN(a, b)   (min(a,b))
 
#define MAX(a, b)   (max(a,b))
 
#define howmany(x, y)   (((x)+((y)-1))/(y))
 
#define xfs_sort(a, n, s, fn)   sort(a,n,s,fn,NULL)
 
#define xfs_stack_trace()   dump_stack()
 
#define do_div(a, b)   xfs_do_div(&(a), (b), sizeof(a))
 
#define do_mod(a, b)   xfs_do_mod(&(a), (b), sizeof(a))
 
#define __arch_pack
 
#define ASSERT_ALWAYS(expr)   (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
 
#define ASSERT(expr)   ((void)0)
 
#define STATIC   static noinline
 

Macro Definition Documentation

#define __arch_pack

Definition at line 287 of file xfs_linux.h.

#define __return_address   __builtin_return_address(0)

Definition at line 150 of file xfs_linux.h.

#define ASSERT (   expr)    ((void)0)

Definition at line 294 of file xfs_linux.h.

#define ASSERT_ALWAYS (   expr)    (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))

Definition at line 290 of file xfs_linux.h.

#define BLKDEV_BB   BTOBB(BLKDEV_IOSIZE)

Definition at line 143 of file xfs_linux.h.

#define BLKDEV_IOSHIFT   PAGE_CACHE_SHIFT

Definition at line 140 of file xfs_linux.h.

#define BLKDEV_IOSIZE   (1<<BLKDEV_IOSHIFT)

Definition at line 141 of file xfs_linux.h.

#define current_clear_flags_nested (   sp,
  f 
)    (*(sp) = current->flags, current->flags &= ~(f))

Definition at line 127 of file xfs_linux.h.

#define current_cpu ( )    (raw_smp_processor_id())

Definition at line 122 of file xfs_linux.h.

#define current_pid ( )    (current->pid)

Definition at line 123 of file xfs_linux.h.

#define current_restore_flags_nested (   sp,
  f 
)    (current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))

Definition at line 129 of file xfs_linux.h.

#define current_set_flags_nested (   sp,
  f 
)    (*(sp) = current->flags, current->flags |= (f))

Definition at line 125 of file xfs_linux.h.

#define current_test_flags (   f)    (current->flags & (f))

Definition at line 124 of file xfs_linux.h.

#define do_div (   a,
  b 
)    xfs_do_div(&(a), (b), sizeof(a))

Definition at line 266 of file xfs_linux.h.

#define do_mod (   a,
  b 
)    xfs_do_mod(&(a), (b), sizeof(a))

Definition at line 267 of file xfs_linux.h.

#define EFSCORRUPTED   EUCLEAN /* Filesystem is corrupted */

Definition at line 147 of file xfs_linux.h.

#define ENOATTR   ENODATA /* Attribute not found */

Definition at line 145 of file xfs_linux.h.

#define EWRONGFS   EINVAL /* Mount with wrong filesystem type */

Definition at line 146 of file xfs_linux.h.

#define howmany (   x,
  y 
)    (((x)+((y)-1))/(y))

Definition at line 157 of file xfs_linux.h.

#define irix_sgid_inherit   xfs_params.sgid_inherit.val

Definition at line 106 of file xfs_linux.h.

#define irix_symlink_mode   xfs_params.symlink_mode.val

Definition at line 107 of file xfs_linux.h.

#define MAX (   a,
  b 
)    (max(a,b))

Definition at line 156 of file xfs_linux.h.

#define MAXPATHLEN   1024

Definition at line 153 of file xfs_linux.h.

#define MIN (   a,
  b 
)    (min(a,b))

Definition at line 155 of file xfs_linux.h.

#define NBBY   8 /* number of bits per byte */

Definition at line 134 of file xfs_linux.h.

#define spinlock_destroy (   lock)

Definition at line 132 of file xfs_linux.h.

#define STATIC   static noinline

Definition at line 297 of file xfs_linux.h.

#define SYNCHRONIZE ( )    barrier()

Definition at line 149 of file xfs_linux.h.

#define XFS_BIG_BLKNOS   0

Definition at line 31 of file xfs_linux.h.

#define XFS_BIG_INUMS   0

Definition at line 32 of file xfs_linux.h.

#define xfs_buf_age_centisecs   xfs_params.xfs_buf_age.val

Definition at line 116 of file xfs_linux.h.

#define xfs_buf_timer_centisecs   xfs_params.xfs_buf_timer.val

Definition at line 115 of file xfs_linux.h.

#define xfs_error_level   xfs_params.error_level.val

Definition at line 109 of file xfs_linux.h.

#define xfs_fstrm_centisecs   xfs_params.fstrm_timer.val

Definition at line 120 of file xfs_linux.h.

#define xfs_inherit_noatime   xfs_params.inherit_noatim.val

Definition at line 114 of file xfs_linux.h.

#define xfs_inherit_nodefrag   xfs_params.inherit_nodfrg.val

Definition at line 119 of file xfs_linux.h.

#define xfs_inherit_nodump   xfs_params.inherit_nodump.val

Definition at line 113 of file xfs_linux.h.

#define xfs_inherit_nosymlinks   xfs_params.inherit_nosym.val

Definition at line 117 of file xfs_linux.h.

#define xfs_inherit_sync   xfs_params.inherit_sync.val

Definition at line 112 of file xfs_linux.h.

#define xfs_panic_mask   xfs_params.panic_mask.val

Definition at line 108 of file xfs_linux.h.

#define XFS_PROJID_DEFAULT   0

Definition at line 152 of file xfs_linux.h.

#define xfs_rotorstep   xfs_params.rotorstep.val

Definition at line 118 of file xfs_linux.h.

#define xfs_sort (   a,
  n,
  s,
  fn 
)    sort(a,n,s,fn,NULL)

Definition at line 162 of file xfs_linux.h.

#define xfs_stack_trace ( )    dump_stack()

Definition at line 163 of file xfs_linux.h.

#define xfs_stats_clear   xfs_params.stats_clear.val

Definition at line 111 of file xfs_linux.h.

#define xfs_syncd_centisecs   xfs_params.syncd_timer.val

Definition at line 110 of file xfs_linux.h.