Re: What happened to lookup_dentry?

From: Timur Tabi (ttabi@interactivesi.com)
Date: Tue Jun 19 2001 - 11:12:37 EST


** Reply to message from Alexander Viro <viro@math.psu.edu> on Mon, 18 Jun 2001
19:45:11 -0400 (EDT)

> It depends on what kind of use 2.2 code had for it. There are several
> situations in which it used to be called and proper replacements depend
> on the context. Details, please... (alternatively, send an URL of patch
> and I'll see what to do with the thing)

Well, I didn't write the driver that I'm trying to port, so it's a little
difficult. The code in question is:

struct dentry * de = lookup_dentry(zfcdb[i].fullname, NULL, LOOKUP_FOLLOW);
if (IS_ERR(de))
        continue;
if (de != zfcdb[i].dentry)
{
        print("zfc: dentry changed for %s\n", zfcdb[i].fullname);
        zfc_file_init(&zfcdb[i], de);
}

So it appears it's just checking to see if the dentry for a particular file has
changed.

-- 
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:24 EST