PERFORCE change 165051 for review
Aditya Sarawgi
truncs at FreeBSD.org
Wed Jun 24 15:12:05 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165051
Change 165051 by truncs at aditya on 2009/06/24 15:11:12
To maintain consistency with UFS.
Affected files ...
.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#11 edit
Differences ...
==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#11 (text+ko) ====
@@ -753,7 +753,7 @@
fs->e2fs.e2fs_ficount--;
fs->e2fs_gd[cg].ext2bgd_nifree--;
fs->e2fs_fmod = 1;
- if (S_ISDIR(mode)) {
+ if ((mode & IFMT) == IFDIR) {
fs->e2fs_gd[cg].ext2bgd_ndirs++;
}
mark_buffer_dirty(bp);
More information about the p4-projects
mailing list