aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2017-04-20 13:29:17 +0530
committerAmit Pundir <amit.pundir@linaro.org>2017-07-17 10:35:21 +0530
commit8a50967bab2197b76df7e7993583e701c191ba58 (patch)
tree24cefada3e7723fbb5245d5ec0818f0220a8279d
parent6eaf2f479b811869c3ce9b411789b8351920deed (diff)
downloadlinaro-android-8a50967bab2197b76df7e7993583e701c191ba58.tar.gz
ANDROID: sdcardfs: Fix sdcardfs_getattr()
The getattr inode operation is refactored upstream, a528d35e8bfc ("statx: Add a system call to make enhanced file info available"), to take two additional arguments: a u32 request_mask and an unsigned int flags that indicate the synchronisation mode. Fix sdcardfs_getattr() accordingly. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--fs/sdcardfs/inode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/sdcardfs/inode.c b/fs/sdcardfs/inode.c
index d48da4126dac..79b71de5792b 100644
--- a/fs/sdcardfs/inode.c
+++ b/fs/sdcardfs/inode.c
@@ -849,12 +849,14 @@ static int sdcardfs_fillattr(struct vfsmount *mnt,
return 0;
}
-static int sdcardfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
- struct kstat *stat)
+static int sdcardfs_getattr(const struct path *path, struct kstat *stat,
+ u32 request_mask, unsigned int query_flags)
{
struct kstat lower_stat;
struct path lower_path;
struct dentry *parent;
+ struct vfsmount *mnt = path->mnt;
+ struct dentry *dentry = path->dentry;
int err;
parent = dget_parent(dentry);
@@ -865,7 +867,7 @@ static int sdcardfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
dput(parent);
sdcardfs_get_lower_path(dentry, &lower_path);
- err = vfs_getattr(&lower_path, &lower_stat);
+ err = vfs_getattr(&lower_path, &lower_stat, request_mask, query_flags);
if (err)
goto out;
sdcardfs_copy_and_fix_attrs(d_inode(dentry),