nilfs2: fix missing initialization of i_dir_start_lookup member
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 28 Sep 2009 04:02:46 +0000 (13:02 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 29 Sep 2009 11:32:13 +0000 (20:32 +0900)
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

index 2d2c501deb54e8e88fac474267eac501d9964581..5040220c3732866ad2f9bd7b4c79a81ee8c5883f 100644 (file)
@@ -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);