Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 103cfcf5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ryusuke Konishi
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent 3561d43f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -349,8 +349,8 @@ static int nilfs_ioctl_move_blocks(struct super_block *sb,
		ino = vdesc->vd_ino;
		cno = vdesc->vd_cno;
		inode = nilfs_iget_for_gc(sb, ino, cno);
		if (unlikely(inode == NULL)) {
			ret = -ENOMEM;
		if (IS_ERR(inode)) {
			ret = PTR_ERR(inode);
			goto failed;
		}
		do {