diff options
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 9e268c97eeca..06ee5a582917 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -684,7 +684,6 @@ struct ext4_inode_info { | |||
684 | #define EXT4_MOUNT_ERRORS_PANIC 0x00040 /* Panic on errors */ | 684 | #define EXT4_MOUNT_ERRORS_PANIC 0x00040 /* Panic on errors */ |
685 | #define EXT4_MOUNT_MINIX_DF 0x00080 /* Mimics the Minix statfs */ | 685 | #define EXT4_MOUNT_MINIX_DF 0x00080 /* Mimics the Minix statfs */ |
686 | #define EXT4_MOUNT_NOLOAD 0x00100 /* Don't use existing journal*/ | 686 | #define EXT4_MOUNT_NOLOAD 0x00100 /* Don't use existing journal*/ |
687 | #define EXT4_MOUNT_ABORT 0x00200 /* Fatal error detected */ | ||
688 | #define EXT4_MOUNT_DATA_FLAGS 0x00C00 /* Mode for data writes: */ | 687 | #define EXT4_MOUNT_DATA_FLAGS 0x00C00 /* Mode for data writes: */ |
689 | #define EXT4_MOUNT_JOURNAL_DATA 0x00400 /* Write data to journal */ | 688 | #define EXT4_MOUNT_JOURNAL_DATA 0x00400 /* Write data to journal */ |
690 | #define EXT4_MOUNT_ORDERED_DATA 0x00800 /* Flush data before commit */ | 689 | #define EXT4_MOUNT_ORDERED_DATA 0x00800 /* Flush data before commit */ |
@@ -706,17 +705,10 @@ struct ext4_inode_info { | |||
706 | #define EXT4_MOUNT_DATA_ERR_ABORT 0x10000000 /* Abort on file data write */ | 705 | #define EXT4_MOUNT_DATA_ERR_ABORT 0x10000000 /* Abort on file data write */ |
707 | #define EXT4_MOUNT_BLOCK_VALIDITY 0x20000000 /* Block validity checking */ | 706 | #define EXT4_MOUNT_BLOCK_VALIDITY 0x20000000 /* Block validity checking */ |
708 | 707 | ||
709 | /* Compatibility, for having both ext2_fs.h and ext4_fs.h included at once */ | ||
710 | #ifndef _LINUX_EXT2_FS_H | ||
711 | #define clear_opt(o, opt) o &= ~EXT4_MOUNT_##opt | 708 | #define clear_opt(o, opt) o &= ~EXT4_MOUNT_##opt |
712 | #define set_opt(o, opt) o |= EXT4_MOUNT_##opt | 709 | #define set_opt(o, opt) o |= EXT4_MOUNT_##opt |
713 | #define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & \ | 710 | #define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & \ |
714 | EXT4_MOUNT_##opt) | 711 | EXT4_MOUNT_##opt) |
715 | #else | ||
716 | #define EXT2_MOUNT_NOLOAD EXT4_MOUNT_NOLOAD | ||
717 | #define EXT2_MOUNT_ABORT EXT4_MOUNT_ABORT | ||
718 | #define EXT2_MOUNT_DATA_FLAGS EXT4_MOUNT_DATA_FLAGS | ||
719 | #endif | ||
720 | 712 | ||
721 | #define ext4_set_bit ext2_set_bit | 713 | #define ext4_set_bit ext2_set_bit |
722 | #define ext4_set_bit_atomic ext2_set_bit_atomic | 714 | #define ext4_set_bit_atomic ext2_set_bit_atomic |
@@ -836,9 +828,10 @@ struct ext4_super_block { | |||
836 | #ifdef __KERNEL__ | 828 | #ifdef __KERNEL__ |
837 | 829 | ||
838 | /* | 830 | /* |
839 | * Mount flags | 831 | * run-time mount flags |
840 | */ | 832 | */ |
841 | #define EXT4_MF_MNTDIR_SAMPLED 0x0001 | 833 | #define EXT4_MF_MNTDIR_SAMPLED 0x0001 |
834 | #define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ | ||
842 | 835 | ||
843 | /* | 836 | /* |
844 | * fourth extended-fs super-block data in memory | 837 | * fourth extended-fs super-block data in memory |