From owner-p4-projects@FreeBSD.ORG Fri Oct 9 21:01:50 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7430610656C3; Fri, 9 Oct 2009 21:01:50 +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 370B610656C1 for ; Fri, 9 Oct 2009 21:01:50 +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 25D268FC20 for ; Fri, 9 Oct 2009 21:01:50 +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 n99L1oDN012357 for ; Fri, 9 Oct 2009 21:01:50 GMT (envelope-from truncs@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n99L1oEV012355 for perforce@freebsd.org; Fri, 9 Oct 2009 21:01:50 GMT (envelope-from truncs@FreeBSD.org) Date: Fri, 9 Oct 2009 21:01:50 GMT Message-Id: <200910092101.n99L1oEV012355@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 169351 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, 09 Oct 2009 21:01:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=169351 Change 169351 by truncs@aditya on 2009/10/09 21:01:41 Use roundup2 instead of roundup. Reference: http://svn.freebsd.org/viewvc/base?view=revision&revision=11264 Affected files ... .. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#5 edit Differences ... ==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_lookup.c#5 (text+ko) ==== @@ -370,7 +370,7 @@ nchstats.ncs_2passes++; } prevoff = dp->i_offset; - endsearch = roundup(dp->i_size, DIRBLKSIZ); + endsearch = roundup2(dp->i_size, DIRBLKSIZ); enduseful = 0; searchloop: @@ -504,7 +504,7 @@ * dp->i_offset + dp->i_count. */ if (slotstatus == NONE) { - dp->i_offset = roundup(dp->i_size, DIRBLKSIZ); + dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); dp->i_count = 0; enduseful = dp->i_offset; } else { @@ -513,7 +513,7 @@ if (enduseful < slotoffset + slotsize) enduseful = slotoffset + slotsize; } - dp->i_endoff = roundup(enduseful, DIRBLKSIZ); + dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); dp->i_flag |= IN_CHANGE | IN_UPDATE; /* * We return with the directory locked, so that @@ -798,7 +798,7 @@ /* XXX should grow with balloc() */ panic("ext2_direnter: frag size"); else if (!error) { - dp->i_size = roundup(dp->i_size, DIRBLKSIZ); + dp->i_size = roundup2(dp->i_size, DIRBLKSIZ); dp->i_flag |= IN_CHANGE; } return (error);