aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/inode.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2014-01-28 14:39:05 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2014-01-28 14:39:05 +0000
commitad3d96a730c806f3d88d9cd50a417669374a39c3 (patch)
treedc7641e092394dd37ea82bf305957bf7758234a9 /sys/fs/ext2fs/inode.h
parentc2ea176dac56517cb41d102fc89e7a7a337c372d (diff)
downloadsrc-ad3d96a730c806f3d88d9cd50a417669374a39c3.tar.gz
src-ad3d96a730c806f3d88d9cd50a417669374a39c3.zip
ext2fs: Use i_flag instead of i_flags for Ext4 inode flags.
The ext4 inode flags do not have equivalents for chflags (1) and hold information that is private to the implementation. The i_flag field in the inode is a better place to hold the Ext4 inode flags as it saves us from masking flags while setting or getting attributes. It should also make things cleaner if we implement write support for Ext4. Suggested by: bde Tested by: Mike Ma MFC after: 3 days
Notes
Notes: svn path=/head/; revision=261235
Diffstat (limited to 'sys/fs/ext2fs/inode.h')
-rw-r--r--sys/fs/ext2fs/inode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/inode.h b/sys/fs/ext2fs/inode.h
index af244adecd2d..21c7944d2efb 100644
--- a/sys/fs/ext2fs/inode.h
+++ b/sys/fs/ext2fs/inode.h
@@ -157,8 +157,8 @@ struct inode {
* These are translation flags for some attributes that Ext4
* passes as inode flags but that we cannot pass directly.
*/
-#define E4_INDEX 0x01000000
-#define E4_EXTENTS 0x02000000
+#define IN_E4INDEX 0x010000
+#define IN_E4EXTENTS 0x020000
#define i_devvp i_ump->um_devvp