Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a50967b authored by Amit Pundir's avatar Amit Pundir
Browse files

ANDROID: sdcardfs: Fix sdcardfs_getattr()



The getattr inode operation is refactored upstream,
a528d35e ("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: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 6eaf2f47
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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),