diff options
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index e7413f82d27b..efc2db42d175 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -959,9 +959,10 @@ out: | |||
959 | return rc; | 959 | return rc; |
960 | } | 960 | } |
961 | 961 | ||
962 | static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry, | 962 | static int ecryptfs_getattr_link(const struct path *path, struct kstat *stat, |
963 | struct kstat *stat) | 963 | u32 request_mask, unsigned int flags) |
964 | { | 964 | { |
965 | struct dentry *dentry = path->dentry; | ||
965 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat; | 966 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat; |
966 | int rc = 0; | 967 | int rc = 0; |
967 | 968 | ||
@@ -983,13 +984,15 @@ static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry, | |||
983 | return rc; | 984 | return rc; |
984 | } | 985 | } |
985 | 986 | ||
986 | static int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | 987 | static int ecryptfs_getattr(const struct path *path, struct kstat *stat, |
987 | struct kstat *stat) | 988 | u32 request_mask, unsigned int flags) |
988 | { | 989 | { |
990 | struct dentry *dentry = path->dentry; | ||
989 | struct kstat lower_stat; | 991 | struct kstat lower_stat; |
990 | int rc; | 992 | int rc; |
991 | 993 | ||
992 | rc = vfs_getattr(ecryptfs_dentry_to_lower_path(dentry), &lower_stat); | 994 | rc = vfs_getattr(ecryptfs_dentry_to_lower_path(dentry), &lower_stat, |
995 | request_mask, flags); | ||
993 | if (!rc) { | 996 | if (!rc) { |
994 | fsstack_copy_attr_all(d_inode(dentry), | 997 | fsstack_copy_attr_all(d_inode(dentry), |
995 | ecryptfs_inode_to_lower(d_inode(dentry))); | 998 | ecryptfs_inode_to_lower(d_inode(dentry))); |