diff options
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index df19d34a033b..90d1882b306f 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h | |||
@@ -261,7 +261,10 @@ struct ecryptfs_inode_info { | |||
261 | * vfsmount too. */ | 261 | * vfsmount too. */ |
262 | struct ecryptfs_dentry_info { | 262 | struct ecryptfs_dentry_info { |
263 | struct path lower_path; | 263 | struct path lower_path; |
264 | struct ecryptfs_crypt_stat *crypt_stat; | 264 | union { |
265 | struct ecryptfs_crypt_stat *crypt_stat; | ||
266 | struct rcu_head rcu; | ||
267 | }; | ||
265 | }; | 268 | }; |
266 | 269 | ||
267 | /** | 270 | /** |
@@ -512,13 +515,6 @@ ecryptfs_dentry_to_lower(struct dentry *dentry) | |||
512 | return ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.dentry; | 515 | return ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.dentry; |
513 | } | 516 | } |
514 | 517 | ||
515 | static inline void | ||
516 | ecryptfs_set_dentry_lower(struct dentry *dentry, struct dentry *lower_dentry) | ||
517 | { | ||
518 | ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.dentry = | ||
519 | lower_dentry; | ||
520 | } | ||
521 | |||
522 | static inline struct vfsmount * | 518 | static inline struct vfsmount * |
523 | ecryptfs_dentry_to_lower_mnt(struct dentry *dentry) | 519 | ecryptfs_dentry_to_lower_mnt(struct dentry *dentry) |
524 | { | 520 | { |
@@ -531,13 +527,6 @@ ecryptfs_dentry_to_lower_path(struct dentry *dentry) | |||
531 | return &((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path; | 527 | return &((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path; |
532 | } | 528 | } |
533 | 529 | ||
534 | static inline void | ||
535 | ecryptfs_set_dentry_lower_mnt(struct dentry *dentry, struct vfsmount *lower_mnt) | ||
536 | { | ||
537 | ((struct ecryptfs_dentry_info *)dentry->d_fsdata)->lower_path.mnt = | ||
538 | lower_mnt; | ||
539 | } | ||
540 | |||
541 | #define ecryptfs_printk(type, fmt, arg...) \ | 530 | #define ecryptfs_printk(type, fmt, arg...) \ |
542 | __ecryptfs_printk(type "%s: " fmt, __func__, ## arg); | 531 | __ecryptfs_printk(type "%s: " fmt, __func__, ## arg); |
543 | __printf(1, 2) | 532 | __printf(1, 2) |