| To: | xfscn@xxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH]fix fbno in xfs_dir2_node_addname_int |
| From: | Kevin Xu <cgxu.gg@xxxxxxxxx> |
| Date: | Sun, 23 Mar 2008 08:51:14 +0800 |
| Cc: | xfs@xxxxxxxxxxx |
| 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= |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 2.0.0.12 (Windows/20080213) |
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.
--- 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;
+ }
}
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Update of XFSPROG XFSDUMP on linux kernel 2.4.22, Hannes Dorbath |
|---|---|
| Next by Date: | [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int, Kevin Xu |
| Previous by Thread: | [PATCH] Remove sysv3 legacy functions, Nigel Kukard |
| Next by Thread: | Re: [PATCH]fix fbno in xfs_dir2_node_addname_int, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |