search for: hashwant

Displaying 5 results from an estimated 5 matches for "hashwant".

2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
..._hdr_t *hdr; + xfs_dir2_leaf_entry_t *ents; + uint16_t count; xfs_bmbt_irec_t irec; block_t leaf_blk, dir_blk; xfs_dir2_leaf_entry_t *lep; @@ -358,37 +380,47 @@ struct inode *xfs_dir2_leaf_find_entry(const char *dname, struct inode *parent, uint32_t hash = 0; uint32_t hashwant; uint32_t newdb, curdb = -1; - xfs_dir2_data_entry_t *dep; + xfs_dir2_data_entry_t *dep = NULL; struct inode *ip; xfs_dir2_data_hdr_t *data_hdr; uint8_t *start_name; uint8_t *end_name; xfs_intino_t ino; xfs_dinode_t *ncore; - const uint8_t *buf = NULL; +...
2016 Jan 18
1
[PATCH] xfs: Add support for v3 directories
...t) >> - 1; >> - low <= high; ) { >> + lep = ents; >> + low = 0; >> + high = count - 1; >> + while (low <= high) { >> mid = (low + high) >> 1; >> - >> if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) >> break; >> if (hash < hashwant) > > Paulo, the initialization to zero of hash and mid silences the > compiler's warning about potentially unitialized variables since some > versions aren't intelligent enough to realize you've checked f...
2016 Jan 18
0
[PATCH] xfs: Add support for v3 directories
...= 0, high = be16_to_cpu(leaf->hdr.count) - 1; > - low <= high; ) { > + lep = ents; > + low = 0; > + high = count - 1; > + while (low <= high) { > mid = (low + high) >> 1; > - > if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) > break; > if (hash < hashwant) Paulo, the initialization to zero of hash and mid silences the compiler's warning about potentially unitialized variables since some versions aren't intelligent enough to realize you've checked for the case of (count == 0)...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...r2_leaf_find_entry(const char *dname, struct inode *parent, + xfs_dinode_t *core) +{ + xfs_dir2_leaf_t *leaf; + xfs_bmbt_irec_t irec; + block_t leaf_blk, dir_blk; + xfs_dir2_leaf_entry_t *lep; + int low; + int high; + int mid = 0; + uint32_t hash = 0; + uint32_t hashwant; + uint32_t newdb, curdb = -1; + xfs_dir2_data_entry_t *dep; + struct inode *ip; + xfs_dir2_data_hdr_t *data_hdr; + uint8_t *start_name; + uint8_t *end_name; + char *name; + xfs_intino_t ino; + xfs_dinode_t *ncore; + uint8_t *buf = NULL; + + bmbt_irec_get(&irec,...
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
xfs_is_valid_magicnum is not actually a generic function that checks for magic numbers, instead it checks only for superblock's one. Signed-off-by: Paulo Alcantara <pcacjr at zytor.com> --- core/fs/xfs/xfs.c | 13 +++++-------- core/fs/xfs/xfs.h | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index