9
0
Fork 0

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:
Yegor Yefremov 2016-01-27 12:53:05 +01:00 committed by Sascha Hauer
parent 00dd903055
commit 838ca724e7
2 changed files with 5 additions and 2 deletions

View File

@ -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
*/

View File

@ -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;