fs: move pgoff_t definition to include/linux/types.h
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
00dd903055
commit
838ca724e7
|
@ -58,8 +58,6 @@ extern unsigned int ubifs_msg_flags;
|
|||
extern unsigned int ubifs_chk_flags;
|
||||
extern unsigned int ubifs_tst_flags;
|
||||
|
||||
#define pgoff_t unsigned long
|
||||
|
||||
/*
|
||||
* We "simulate" the Linux page struct much simpler here
|
||||
*/
|
||||
|
|
|
@ -157,6 +157,11 @@ typedef __u32 __bitwise __wsum;
|
|||
#define __aligned_be64 __be64 __attribute__((aligned(8)))
|
||||
#define __aligned_le64 __le64 __attribute__((aligned(8)))
|
||||
|
||||
/*
|
||||
* The type of an index into the pagecache.
|
||||
*/
|
||||
#define pgoff_t unsigned long
|
||||
|
||||
/* A dma_addr_t can hold any valid DMA or bus address for the platform */
|
||||
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
|
||||
typedef u64 dma_addr_t;
|
||||
|
|
Loading…
Reference in New Issue