aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2_subr.c
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/ext2_subr.c
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/ext2_subr.c')
-rw-r--r--sys/fs/ext2fs/ext2_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/ext2fs/ext2_subr.c b/sys/fs/ext2fs/ext2_subr.c
index 585a975cc082..6b9041d6e4a8 100644
--- a/sys/fs/ext2fs/ext2_subr.c
+++ b/sys/fs/ext2fs/ext2_subr.c
@@ -82,10 +82,10 @@ ext2_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp)
*bpp = NULL;
/*
- * E4_EXTENTS requires special treatment as we can otherwise fall
+ * IN_E4EXTENTS requires special treatment as we can otherwise fall
* back to the normal path.
*/
- if (!(ip->i_flags & E4_EXTENTS))
+ if (!(ip->i_flag & IN_E4EXTENTS))
goto normal;
memset(&path, 0, sizeof(path));
@@ -110,7 +110,7 @@ ext2_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp)
if (res)
*res = (char *)bp->b_data + blkoff(fs, offset);
/*
- * If E4_EXTENTS is enabled we would get a wrong offset so
+ * If IN_E4EXTENTS is enabled we would get a wrong offset so
* reset b_offset here.
*/
bp->b_offset = lbn * bsize;