]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ecryptfs/inode.c
statx: Add a system call to make enhanced file info available
[mirror_ubuntu-artful-kernel.git] / fs / ecryptfs / inode.c
index e7413f82d27bf392be10998aa9c8b2ef598a354e..efc2db42d17513d089f16cfaaab38c81a4ed216c 100644 (file)
@@ -959,9 +959,10 @@ out:
        return rc;
 }
 
-static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry,
-                                struct kstat *stat)
+static int ecryptfs_getattr_link(const struct path *path, struct kstat *stat,
+                                u32 request_mask, unsigned int flags)
 {
+       struct dentry *dentry = path->dentry;
        struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
        int rc = 0;
 
@@ -983,13 +984,15 @@ static int ecryptfs_getattr_link(struct vfsmount *mnt, struct dentry *dentry,
        return rc;
 }
 
-static int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
-                           struct kstat *stat)
+static int ecryptfs_getattr(const struct path *path, struct kstat *stat,
+                           u32 request_mask, unsigned int flags)
 {
+       struct dentry *dentry = path->dentry;
        struct kstat lower_stat;
        int rc;
 
-       rc = vfs_getattr(ecryptfs_dentry_to_lower_path(dentry), &lower_stat);
+       rc = vfs_getattr(ecryptfs_dentry_to_lower_path(dentry), &lower_stat,
+                        request_mask, flags);
        if (!rc) {
                fsstack_copy_attr_all(d_inode(dentry),
                                      ecryptfs_inode_to_lower(d_inode(dentry)));