Re: [PATCH] DOCUMENTATION: Correct inline docs to match parm name.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Bolle
Date: Tuesday, November 30, 2010 - 6:19 am

On Tue, 2010-11-30 at 06:31 -0500, Robert P. J. Day wrote:

Doesn't this one needs to be changed too?


By the way, the code currently reads:

int d_validate(struct dentry *dentry, struct dentry *parent)
{
[...]
        rcu_read_lock();
        hlist_for_each_entry_rcu(d, node, head, d_hash) {
                if (d == dentry) {
                        dget(dentry);
                        return 1;
                }
        }
        rcu_read_unlock();
        return 0;
}

I know nothing about rcu_read_lock(), but why is there no
rcu_read_unlock() before the "return 1" case?


Paul Bolle

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] DOCUMENTATION: Correct inline docs to match pa ..., Paul Bolle, (Tue Nov 30, 6:19 am)