vfs: Make d_invalidate return void

Now that d_invalidate can no longer fail, stop returning a useless
return code.  For the few callers that checked the return code update
remove the handling of d_invalidate failure.

Reviewed-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Tento commit je obsažen v:
Eric W. Biederman
2014-02-13 09:46:25 -08:00
odevzdal Al Viro
rodič 1ffe46d11c
revize 5542aa2fa7
7 změnil soubory, kde provedl 13 přidání a 32 odebrání

Zobrazit soubor

@@ -1286,9 +1286,7 @@ static int fuse_direntplus_link(struct file *file,
d_drop(dentry);
} else if (get_node_id(inode) != o->nodeid ||
((o->attr.mode ^ inode->i_mode) & S_IFMT)) {
err = d_invalidate(dentry);
if (err)
goto out;
d_invalidate(dentry);
} else if (is_bad_inode(inode)) {
err = -EIO;
goto out;