VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: David Howells <dhowells@redhat.com> 2008-02-07 00:15:29 -0800 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2008-02-07 08:42:27 -0800 commit: 210f855963ba5edc4c7150754a79709a7c8a0d3c parent: 69840b0d065a031a2e5b3fcc3f30560229e312da
Commit Summary:
iget: stop AFFS from using iget() and read_inode()
Diffstat:
1 file changed, 4 insertions, 2 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index f4de4b98004f..805573005de6 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -170,9 +170,11 @@ affs_remove_link(struct dentry *dentry)
 		if (!link_bh)
 			goto done;
 
-		dir = iget(sb, be32_to_cpu(AFFS_TAIL(sb, link_bh)->parent));
-		if (!dir)
+		dir = affs_iget(sb, be32_to_cpu(AFFS_TAIL(sb, link_bh)->parent));
+		if (IS_ERR(dir)) {
+			retval = PTR_ERR(dir);
 			goto done;
+		}
 
 		affs_lock_dir(dir);
 		affs_fix_dcache(dentry, link_ino);