Received: with ECARTIS (v1.0.0; list xfs); Sat, 22 Mar 2008 17:50:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m2N0ohcx008059 for ; Sat, 22 Mar 2008 17:50:44 -0700 X-ASG-Debug-ID: 1206233476-013b02af0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from wa-out-1112.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4E25A6D666D for ; Sat, 22 Mar 2008 17:51:17 -0700 (PDT) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by cuda.sgi.com with ESMTP id uwfyczAkwzDEXJoC for ; Sat, 22 Mar 2008 17:51:17 -0700 (PDT) Received: by wa-out-1112.google.com with SMTP id k22so2594038waf.18 for ; Sat, 22 Mar 2008 17:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; bh=LxWq7A+l3FAFeVbFRdmv2K+Vgs5nXxSna44bwums18o=; b=CHsB85CM7fKDS0wwGbzn6YQQiYNKq7kfLglFUGx3YBSwd0cDJRazqM8amXjFMUDVLixqOI5llq50XRVfmM/YAMcaF+zk/B0aVVlPLII9CYTc1l0BDicWxRHrVs6AVwrErw380RS6oKX8L8KqytrmDkrKog+T4HfnPEchIGiCofk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; b=R3AkZ7EWaiwG251h6UCnxhatcV3v3RzScQVgz8lJf/GznFBZ0Rb88CX54p/AhhZpGMeEgpEmmSoAhCyScf0kCZtL1Jl77r3yi4Er1ONpc72oZq7ivf0YgP8MpQ3gN7YTbrZkvOIn9OES3eF0IbNFPiJWh012IQ1anb/bd/vYQ7c= Received: by 10.114.170.1 with SMTP id s1mr8543592wae.133.1206233476714; Sat, 22 Mar 2008 17:51:16 -0700 (PDT) Received: from ?192.168.1.2? ( [118.0.185.164]) by mx.google.com with ESMTPS id m27sm10443113pof.10.2008.03.22.17.51.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Mar 2008 17:51:16 -0700 (PDT) Message-ID: <47E5A982.8010002@gmail.com> Date: Sun, 23 Mar 2008 08:51:14 +0800 From: Kevin Xu User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: xfscn@googlegroups.com CC: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH]fix fbno in xfs_dir2_node_addname_int Subject: [PATCH]fix fbno in xfs_dir2_node_addname_int Content-Type: multipart/mixed; boundary="------------090401090106060102070105" X-Barracuda-Connect: wa-out-1112.google.com[209.85.146.177] X-Barracuda-Start-Time: 1206233477 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.45618 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/6021/Wed Feb 27 15:55:48 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14985 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: cgxu.gg@gmail.com Precedence: bulk X-list: xfs This is a multi-part message in MIME format. --------------090401090106060102070105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit if we didn't find a freespace block for our new entry in the current freeindex block, return to the first freeindex block and continue to check. --------------090401090106060102070105 Content-Type: text/x-patch; name="usig-xfs-fix-080322.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="usig-xfs-fix-080322.patch" --- linux-2.6-xfs/fs/xfs/xfs_dir2_node.c 2008-03-22 22:41:12.118699220 +0800 +++ linux-xfs-usig/fs/xfs/xfs_dir2_node.c 2008-03-22 22:48:07.694781678 +0800 @@ -1502,8 +1502,10 @@ xfs_dir2_node_addname_int( */ xfs_da_brelse(tp, fbp); fbp = NULL; - if (fblk && fblk->bp) + if (fblk && fblk->bp) { fblk->bp = NULL; + fbno = -1; + } } } } --------------090401090106060102070105--