提交 1be38679 编写于 作者: S Steven Whitehouse

[GFS2] Fix bz 229831, lookup returns wrong inode

The following patch fixes Red Hat bz 229831. Without this patch its
possible for the wrong inode to be returned in certain cases. It is a
pretty unusual event, so that its taken some time to track down. Thanks
and due to Josef Whiter who did a lot of the testing required to thrack
this down and fix it.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 cad5b939
...@@ -43,7 +43,8 @@ static int iget_test(struct inode *inode, void *opaque) ...@@ -43,7 +43,8 @@ static int iget_test(struct inode *inode, void *opaque)
struct gfs2_inode *ip = GFS2_I(inode); struct gfs2_inode *ip = GFS2_I(inode);
struct gfs2_inum_host *inum = opaque; struct gfs2_inum_host *inum = opaque;
if (ip->i_num.no_addr == inum->no_addr) if (ip->i_num.no_addr == inum->no_addr &&
inode->i_private != NULL)
return 1; return 1;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册