From d09b754398c741f4e1c099369224c61363ce7927 Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 24 Aug 2006 19:30:36 +0000 Subject: [PATCH] llite: avoid unintialized variables --- lustre/llite/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index 30f5a1a..983db99 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -354,11 +354,11 @@ static struct page *ll_get_dir_page(struct inode *dir, __u32 hash, int exact, ll_check_page(dir, page); if (PageError(page)) goto fail; +hash_collision: dp = page_address(page); start = le32_to_cpu(dp->ldp_hash_start); end = le32_to_cpu(dp->ldp_hash_end); -hash_collision: if (end == start) { LASSERT(start == hash); CWARN("Page-wide hash collision: %#lx\n", (unsigned long)end); @@ -624,7 +624,7 @@ static int ll_dir_ioctl(struct inode *inode, struct file *file, OBD_ALLOC_PTR(op_data); if (op_data == NULL) RETURN(-ENOMEM); - + ll_prepare_md_op_data(op_data, inode, NULL, NULL, 0, 0); @@ -682,7 +682,7 @@ static int ll_dir_ioctl(struct inode *inode, struct file *file, rc = md_getattr_name(sbi->ll_md_exp, ll_inode2fid(inode), filename, strlen(filename) + 1, - OBD_MD_FLEASIZE | OBD_MD_FLDIREA, + OBD_MD_FLEASIZE | OBD_MD_FLDIREA, lmmsize, &request); if (rc < 0) { CDEBUG(D_INFO, "md_getattr_name failed " -- 1.8.3.1