diff options
author | pfg <pfg@FreeBSD.org> | 2016-01-24 02:41:49 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-01-24 02:41:49 +0000 |
commit | 3fde4bfd1ca23d19074a824fd55dc03c9acd1690 (patch) | |
tree | 7cad46f036cdcaa742d8cdc188ed0f13495e331e /sys/fs/ext2fs/ext2_htree.c | |
parent | d2a41899f8d761cd1c468704f6cb8c55d9a0be02 (diff) | |
download | FreeBSD-src-3fde4bfd1ca23d19074a824fd55dc03c9acd1690.zip FreeBSD-src-3fde4bfd1ca23d19074a824fd55dc03c9acd1690.tar.gz |
Rename some directory index constants.
Directory index was introduced in ext3. We don't always use the
prefix to denote the ext2 variant they belong to but when we
do we should try to be accurate.
Diffstat (limited to 'sys/fs/ext2fs/ext2_htree.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_htree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c index ac506bd..a109224 100644 --- a/sys/fs/ext2fs/ext2_htree.c +++ b/sys/fs/ext2fs/ext2_htree.c @@ -90,7 +90,7 @@ int ext2_htree_has_idx(struct inode *ip) { if (EXT2_HAS_COMPAT_FEATURE(ip->i_e2fs, EXT2F_COMPAT_DIRHASHINDEX) && - ip->i_flag & IN_E4INDEX) + ip->i_flag & IN_E3INDEX) return (1); else return (0); @@ -653,7 +653,7 @@ ext2_htree_create_index(struct vnode *vp, struct componentname *cnp, ((char *)ep + ep->e2d_reclen); ep->e2d_reclen = buf1 + blksize - (char *)ep; - dp->i_flag |= IN_E4INDEX; + dp->i_flag |= IN_E3INDEX; /* * Initialize index root. |