Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
xfs_inum.h File Reference

Go to the source code of this file.

Macros

#define XFS_INO_MASK(k)   (__uint32_t)((1ULL << (k)) - 1)
 
#define XFS_INO_OFFSET_BITS(mp)   (mp)->m_sb.sb_inopblog
 
#define XFS_INO_AGBNO_BITS(mp)   (mp)->m_sb.sb_agblklog
 
#define XFS_INO_AGINO_BITS(mp)   (mp)->m_agino_log
 
#define XFS_INO_AGNO_BITS(mp)   (mp)->m_agno_log
 
#define XFS_INO_BITS(mp)   XFS_INO_AGNO_BITS(mp) + XFS_INO_AGINO_BITS(mp)
 
#define XFS_INO_TO_AGNO(mp, i)   ((xfs_agnumber_t)((i) >> XFS_INO_AGINO_BITS(mp)))
 
#define XFS_INO_TO_AGINO(mp, i)   ((xfs_agino_t)(i) & XFS_INO_MASK(XFS_INO_AGINO_BITS(mp)))
 
#define XFS_INO_TO_AGBNO(mp, i)
 
#define XFS_INO_TO_OFFSET(mp, i)   ((int)(i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
 
#define XFS_INO_TO_FSB(mp, i)   XFS_AGB_TO_FSB(mp, XFS_INO_TO_AGNO(mp,i), XFS_INO_TO_AGBNO(mp,i))
 
#define XFS_AGINO_TO_INO(mp, a, i)   (((xfs_ino_t)(a) << XFS_INO_AGINO_BITS(mp)) | (i))
 
#define XFS_AGINO_TO_AGBNO(mp, i)   ((i) >> XFS_INO_OFFSET_BITS(mp))
 
#define XFS_AGINO_TO_OFFSET(mp, i)   ((i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
 
#define XFS_OFFBNO_TO_AGINO(mp, b, o)   ((xfs_agino_t)(((b) << XFS_INO_OFFSET_BITS(mp)) | (o)))
 
#define XFS_MAXINUMBER   ((xfs_ino_t)((1ULL << 32) - 1ULL))
 
#define XFS_MAXINUMBER_32   ((xfs_ino_t)((1ULL << 32) - 1ULL))
 

Macro Definition Documentation

#define XFS_AGINO_TO_AGBNO (   mp,
  i 
)    ((i) >> XFS_INO_OFFSET_BITS(mp))

Definition at line 51 of file xfs_inum.h.

#define XFS_AGINO_TO_INO (   mp,
  a,
  i 
)    (((xfs_ino_t)(a) << XFS_INO_AGINO_BITS(mp)) | (i))

Definition at line 49 of file xfs_inum.h.

#define XFS_AGINO_TO_OFFSET (   mp,
  i 
)    ((i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))

Definition at line 52 of file xfs_inum.h.

#define XFS_INO_AGBNO_BITS (   mp)    (mp)->m_sb.sb_agblklog

Definition at line 33 of file xfs_inum.h.

#define XFS_INO_AGINO_BITS (   mp)    (mp)->m_agino_log

Definition at line 34 of file xfs_inum.h.

#define XFS_INO_AGNO_BITS (   mp)    (mp)->m_agno_log

Definition at line 35 of file xfs_inum.h.

#define XFS_INO_BITS (   mp)    XFS_INO_AGNO_BITS(mp) + XFS_INO_AGINO_BITS(mp)

Definition at line 36 of file xfs_inum.h.

#define XFS_INO_MASK (   k)    (__uint32_t)((1ULL << (k)) - 1)

Definition at line 31 of file xfs_inum.h.

#define XFS_INO_OFFSET_BITS (   mp)    (mp)->m_sb.sb_inopblog

Definition at line 32 of file xfs_inum.h.

#define XFS_INO_TO_AGBNO (   mp,
  i 
)
Value:

Definition at line 42 of file xfs_inum.h.

#define XFS_INO_TO_AGINO (   mp,
  i 
)    ((xfs_agino_t)(i) & XFS_INO_MASK(XFS_INO_AGINO_BITS(mp)))

Definition at line 40 of file xfs_inum.h.

#define XFS_INO_TO_AGNO (   mp,
  i 
)    ((xfs_agnumber_t)((i) >> XFS_INO_AGINO_BITS(mp)))

Definition at line 38 of file xfs_inum.h.

#define XFS_INO_TO_FSB (   mp,
  i 
)    XFS_AGB_TO_FSB(mp, XFS_INO_TO_AGNO(mp,i), XFS_INO_TO_AGBNO(mp,i))

Definition at line 47 of file xfs_inum.h.

#define XFS_INO_TO_OFFSET (   mp,
  i 
)    ((int)(i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))

Definition at line 45 of file xfs_inum.h.

#define XFS_MAXINUMBER   ((xfs_ino_t)((1ULL << 32) - 1ULL))

Definition at line 60 of file xfs_inum.h.

#define XFS_MAXINUMBER_32   ((xfs_ino_t)((1ULL << 32) - 1ULL))

Definition at line 62 of file xfs_inum.h.

#define XFS_OFFBNO_TO_AGINO (   mp,
  b,
 
)    ((xfs_agino_t)(((b) << XFS_INO_OFFSET_BITS(mp)) | (o)))

Definition at line 54 of file xfs_inum.h.