Date: Fri, 26 Jun 2009 21:14:05 GMT From: Aditya Sarawgi <truncs@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 165291 for review Message-ID: <200906262114.n5QLE5EO083174@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=165291 Change 165291 by truncs@aditya on 2009/06/26 21:13:33 It should return a cylinder group that is u_long and not ino_t. Affected files ... .. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#16 edit Differences ... ==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#16 (text+ko) ==== @@ -51,7 +51,7 @@ #include <gnu/fs/ext2fs/ext2_extern.h> static daddr_t ext2_alloccg(struct inode *, int, daddr_t, int); -static ino_t ext2_dirpref(struct m_ext2fs *); +static u_long ext2_dirpref(struct m_ext2fs *); static void ext2_fserr(struct m_ext2fs *, u_int, char *); static ino_t ext2_hashalloc(struct inode *, int, long, int, daddr_t (*)(struct inode *, int, daddr_t, @@ -547,11 +547,11 @@ * among those cylinder groups with above the average number of * free inodes, the one with the smallest number of directories. */ -static ino_t +static u_long ext2_dirpref(struct m_ext2fs *fs) { - int maxspace, avgifree; - ino_t cg, mincg; + int cg, maxspace, mincg, avgifree; + avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg; maxspace = 0; mincg = -1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906262114.n5QLE5EO083174>