diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2012-09-02 19:14:59 -0300 |
---|---|---|
committer | Paulo Alcantara <pcacjr@zytor.com> | 2012-09-02 19:14:59 -0300 |
commit | 88a9045a71af16a50d5fb220604c18a44fda5d92 (patch) | |
tree | f3f22f440c097749e064a9a95fb70620aea51026 | |
parent | 4db137eaa7ac68966660f6fbf4dc13a2244bf8b2 (diff) | |
download | syslinux-88a9045a71af16a50d5fb220604c18a44fda5d92.tar.gz syslinux-88a9045a71af16a50d5fb220604c18a44fda5d92.tar.xz syslinux-88a9045a71af16a50d5fb220604c18a44fda5d92.zip |
xfs: Remove some trailing whitespaces
This patch removes some trailing whitespaces from previous commit.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r-- | core/fs/xfs/xfs_dir2.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fs/xfs/xfs_dir2.c b/core/fs/xfs/xfs_dir2.c index e6ae92f9..db1a1b14 100644 --- a/core/fs/xfs/xfs_dir2.c +++ b/core/fs/xfs/xfs_dir2.c @@ -514,10 +514,11 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, max = be16_to_cpu(node->hdr.count); probe = span = max/2; - for (btree = &node->btree[probe]; + for (btree = &node->btree[probe]; span > 4; btree = &node->btree[probe]) { span /= 2; hash = be32_to_cpu(btree->hashval); + if (hash < hashwant) probe += span; else if (hash > hashwant) @@ -530,6 +531,7 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, btree--; probe--; } + while ((probe < max) && (be32_to_cpu(btree->hashval) < hashwant)) { btree++; probe++; @@ -547,8 +549,9 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, xfs_error("Cannot find right rec!"); goto out; } + free(node); - node = (xfs_da_intnode_t *)xfs_dir2_get_dirblks(parent->fs, + node = (xfs_da_intnode_t *)xfs_dir2_get_dirblks(parent->fs, fsblkno, 1); } while(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); |