diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-16 04:45:11 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-25 07:34:48 +0400 |
commit | 2edbfbf1c1ab0aeb58ce8abfb69b6f6b63542848 (patch) | |
tree | dc37f9a9aac1cd63c578841b29a039fbe86f48bf /fs/ecryptfs/ecryptfs_kernel.h | |
parent | 3a93e17cf68b01fa29c7a2e861ce508dcd3401ca (diff) | |
download | linux-2edbfbf1c1ab0aeb58ce8abfb69b6f6b63542848.tar.xz |
ecryptfs: don't leave RCU pathwalk immediately
If the underlying dentry doesn't have ->d_revalidate(), there's no need to
force dropping out of RCU mode. All we need for that is to make freeing
ecryptfs_dentry_info RCU-delayed.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index df19d34a033b..e7ad2b3f24a7 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h @@ -261,7 +261,10 @@ struct ecryptfs_inode_info { * vfsmount too. */ struct ecryptfs_dentry_info { struct path lower_path; - struct ecryptfs_crypt_stat *crypt_stat; + union { + struct ecryptfs_crypt_stat *crypt_stat; + struct rcu_head rcu; + }; }; /** |