From owner-p4-projects@FreeBSD.ORG Fri Sep 25 09:44:02 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AFCC21065679; Fri, 25 Sep 2009 09:44:02 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 744A91065676 for ; Fri, 25 Sep 2009 09:44:02 +0000 (UTC) (envelope-from truncs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 641198FC1D for ; Fri, 25 Sep 2009 09:44:02 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8P9i22P091002 for ; Fri, 25 Sep 2009 09:44:02 GMT (envelope-from truncs@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8P9i2bM091000 for perforce@freebsd.org; Fri, 25 Sep 2009 09:44:02 GMT (envelope-from truncs@FreeBSD.org) Date: Fri, 25 Sep 2009 09:44:02 GMT Message-Id: <200909250944.n8P9i2bM091000@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to truncs@FreeBSD.org using -f From: Aditya Sarawgi To: Perforce Change Reviews Cc: Subject: PERFORCE change 168877 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 09:44:02 -0000 http://perforce.freebsd.org/chv.cgi?CH=168877 Change 168877 by truncs@aditya on 2009/09/25 09:43:05 Make the comment more verbose. Explain about AFPDIR and AVGDIRSIZE. Affected files ... .. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/fs.h#3 edit Differences ... ==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/fs.h#3 (text+ko) ==== @@ -57,10 +57,15 @@ /* * The path name on which the file system is mounted is maintained * in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in - * the super block for this name. + * the super block for this name. AVFPDIR is the expected number of + * files per directory. AVGDIRSIZE is obtained by multiplying AVFPDIR + * and AVFILESIZ which is assumed to be 16384. Both AVFPDIR and AVFFIZSIZ + * are taken from UFS and they are used in implementation of Orlov Block + * Allocator. */ -#define MAXMNTLEN 512 - +#define MAXMNTLEN 512 +#define AFPDIR 64 +#define AVGDIRSIZE 1048576 /* * Macros for access to superblock array structures */