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

Commit 1088a640 authored by Al Viro's avatar Al Viro
Browse files

dput(): turn into explicit while() loop



No need to mess with gotos when the code yielded by straight while()
isn't any worse...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9c5f1d30
Loading
Loading
Loading
Loading
+13 −18
Original line number Diff line number Diff line
@@ -828,10 +828,7 @@ static inline bool fast_dput(struct dentry *dentry)
 */
void dput(struct dentry *dentry)
{
	if (unlikely(!dentry))
		return;

repeat:
	while (dentry) {
		might_sleep();

		rcu_read_lock();
@@ -849,8 +846,6 @@ void dput(struct dentry *dentry)
		}

		dentry = dentry_kill(dentry);
	if (dentry) {
		goto repeat;
	}
}
EXPORT_SYMBOL(dput);