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

Commit aa3e5e6f authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

Revert "ANDROID: sdcardfs: Fix sdcardfs_getattr()"



This reverts commit 8a50967b.
Revert for the sake of simplifying the merge process.

Change-Id: I7bd85710d6eafd830989c9689e4b3b52b926a9be
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent bce0faa9
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -848,14 +848,12 @@ static int sdcardfs_fillattr(struct vfsmount *mnt,
	return 0;
}

static int sdcardfs_getattr(const struct path *path, struct kstat *stat,
			    u32 request_mask, unsigned int query_flags)
static int sdcardfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
		 struct kstat *stat)
{
	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);
@@ -866,7 +864,7 @@ static int sdcardfs_getattr(const struct path *path, struct kstat *stat,
	dput(parent);

	sdcardfs_get_lower_path(dentry, &lower_path);
	err = vfs_getattr(&lower_path, &lower_stat, request_mask, query_flags);
	err = vfs_getattr(&lower_path, &lower_stat);
	if (err)
		goto out;
	sdcardfs_copy_and_fix_attrs(d_inode(dentry),