nilfs2: nilfs_iget_for_gc() returns ERR_PTR
nilfs_iget_for_gc() returns an ERR_PTR() on failure and doesn't return NULL. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
parent
3561d43fd2
commit
103cfcf522
1 changed files with 2 additions and 2 deletions
|
@ -349,8 +349,8 @@ static int nilfs_ioctl_move_blocks(struct super_block *sb,
|
||||||
ino = vdesc->vd_ino;
|
ino = vdesc->vd_ino;
|
||||||
cno = vdesc->vd_cno;
|
cno = vdesc->vd_cno;
|
||||||
inode = nilfs_iget_for_gc(sb, ino, cno);
|
inode = nilfs_iget_for_gc(sb, ino, cno);
|
||||||
if (unlikely(inode == NULL)) {
|
if (IS_ERR(inode)) {
|
||||||
ret = -ENOMEM;
|
ret = PTR_ERR(inode);
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Reference in a new issue