/* * Size of block device i/o is parameterized here. * Currently the system supports page-sized i/o.
*/ #define BLKDEV_IOSHIFT PAGE_SHIFT #define BLKDEV_IOSIZE (1<<BLKDEV_IOSHIFT) /* number of BB's per block device block */ #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 EFSBADCRC EBADMSG /* Bad CRC detected */
/* * Return the address of a label. Use barrier() so that the optimizer * won't reorder code to refactor the error jumpouts into a single * return, which throws off the reported address.
*/ #define __this_address ({ __label__ __here; __here: barrier(); &&__here; })
/* * XFS wrapper structure for sysfs support. It depends on external data * structures and is embedded in various internal data structures to implement * the XFS sysfs object heirarchy. Define it here for broad access throughout * the codebase.
*/ struct xfs_kobj { struct kobject kobject; struct completion complete;
};
/* If @b is a power of 2, return log2(b). Else return -1. */ staticinline int8_t log2_if_power2(unsignedlong b)
{ return is_power_of_2(b) ? ilog2(b) : -1;
}
/* If @b is a power of 2, return a mask of the lower bits, else return zero. */ staticinlineunsignedlonglong mask64_if_power2(unsignedlong b)
{ return is_power_of_2(b) ? b - 1 : 0;
}
/* * make sure we ignore the inode flag if the filesystem doesn't have a * configured realtime device.
*/ #define XFS_IS_REALTIME_INODE(ip) \
(((ip)->i_diflags & XFS_DIFLAG_REALTIME) && \
(ip)->i_mount->m_rtdev_targp) #define XFS_IS_REALTIME_MOUNT(mp) ((mp)->m_rtdev_targp ? 1 : 0) #else #define XFS_IS_REALTIME_INODE(ip) (0) #define XFS_IS_REALTIME_MOUNT(mp) (0) #endif
/* * Starting in Linux 4.15, the %p (raw pointer value) printk modifier * prints a hashed version of the pointer to avoid leaking kernel * pointers into dmesg. If we're trying to debug the kernel we want the * raw values, so override this behavior as best we can.
*/ #ifdef DEBUG # define PTR_FMT "%px" #else # define PTR_FMT "%p" #endif
/* * Helper for IO routines to grab backing pages from allocated kernel memory.
*/ staticinlinestruct page *
kmem_to_page(void *addr)
{ if (is_vmalloc_addr(addr)) return vmalloc_to_page(addr); return virt_to_page(addr);
}
#endif/* __XFS_LINUX__ */
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.