mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fs: rcu-walk aware d_revalidate method
Require filesystems be aware of .d_revalidate being called in rcu-walk mode (nd->flags & LOOKUP_RCU). For now do a simple push down, returning -ECHILD from all implementations. Signed-off-by: Nick Piggin <[email protected]>
This commit is contained in:
parent
44a7d7a878
commit
34286d6662
27 changed files with 215 additions and 61 deletions
|
|
@ -43,6 +43,9 @@ static int vfat_revalidate_shortname(struct dentry *dentry)
|
|||
|
||||
static int vfat_revalidate(struct dentry *dentry, struct nameidata *nd)
|
||||
{
|
||||
if (nd->flags & LOOKUP_RCU)
|
||||
return -ECHILD;
|
||||
|
||||
/* This is not negative dentry. Always valid. */
|
||||
if (dentry->d_inode)
|
||||
return 1;
|
||||
|
|
@ -51,6 +54,9 @@ static int vfat_revalidate(struct dentry *dentry, struct nameidata *nd)
|
|||
|
||||
static int vfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd)
|
||||
{
|
||||
if (nd->flags & LOOKUP_RCU)
|
||||
return -ECHILD;
|
||||
|
||||
/*
|
||||
* This is not negative dentry. Always valid.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue