[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    nilfs2: fix missing initialization of i_dir_start_lookup member
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2009-09-30 20:59:22
Message-ID: 200909302059.n8UKxMAI020758 () hera ! kernel ! org
[Download RAW message or body]

Gitweb:     http://git.kernel.org/linus/3cc811bffdf35ebaf1467fbec71a49b57800fc74
Commit:     3cc811bffdf35ebaf1467fbec71a49b57800fc74
Parent:     1f28fcd925b2b3157411bbd08f0024b55b70d8dd
Author:     Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
AuthorDate: Mon Sep 28 13:02:46 2009 +0900
Committer:  Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
CommitDate: Tue Sep 29 20:32:13 2009 +0900

    nilfs2: fix missing initialization of i_dir_start_lookup member
    
    The i_dir_start_lookup field in nilfs_inode_info objects should be
    cleared when the objects are allocated, but the the initialization was
    missing in case of reading from disk.  This adds the initialization.
    
    Since the variable just gives a start page on directory lookups, the
    bug was nonfatal until now.
    
    Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
---
 fs/nilfs2/inode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c
index 2d2c501..5040220 100644
--- a/fs/nilfs2/inode.c
+++ b/fs/nilfs2/inode.c
@@ -400,6 +400,7 @@ int nilfs_read_inode_common(struct inode *inode,
 	ii->i_dir_acl = S_ISREG(inode->i_mode) ?
 		0 : le32_to_cpu(raw_inode->i_dir_acl);
 #endif
+	ii->i_dir_start_lookup = 0;
 	ii->i_cno = 0;
 	inode->i_generation = le32_to_cpu(raw_inode->i_generation);
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic