From b332cc3cd48e38b8beb9c6b5a1002ff4c44caa10 Mon Sep 17 00:00:00 2001 From: Tad Date: Tue, 26 May 2015 20:56:40 -0400 Subject: [PATCH] F2FS Support --- include/linux/fs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index d2cfc25..a5fb99d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -332,6 +332,7 @@ struct inodes_stat_t { #define FIFREEZE _IOWR('X', 119, int) /* Freeze */ #define FITHAW _IOWR('X', 120, int) /* Thaw */ #define FITRIM _IOWR('X', 121, struct fstrim_range) /* Trim */ +#define FS_IOC_SHUTDOWN _IOR('X', 125, __u32) /* Shutdown */ #define FIDTRIM _IOWR('f', 128, struct fstrim_range) /* Deep discard trim */ @@ -382,6 +383,13 @@ struct inodes_stat_t { #define SYNC_FILE_RANGE_WRITE 2 #define SYNC_FILE_RANGE_WAIT_AFTER 4 +/* + * Flags for going down operation used by FS_IOC_GOINGDOWN + */ +#define FS_GOING_DOWN_FULLSYNC 0x0 /* going down with full sync */ +#define FS_GOING_DOWN_METASYNC 0x1 /* going down with metadata */ +#define FS_GOING_DOWN_NOSYNC 0x2 /* going down */ + #ifdef __KERNEL__ #include