|
@@ -116,11 +116,9 @@ static int ext4_file_open(struct inode * inode, struct file * filp)
|
|
* devices or filesystem images.
|
|
* devices or filesystem images.
|
|
*/
|
|
*/
|
|
memset(buf, 0, sizeof(buf));
|
|
memset(buf, 0, sizeof(buf));
|
|
- path.mnt = mnt->mnt_parent;
|
|
|
|
- path.dentry = mnt->mnt_mountpoint;
|
|
|
|
- path_get(&path);
|
|
|
|
|
|
+ path.mnt = mnt;
|
|
|
|
+ path.dentry = mnt->mnt_root;
|
|
cp = d_path(&path, buf, sizeof(buf));
|
|
cp = d_path(&path, buf, sizeof(buf));
|
|
- path_put(&path);
|
|
|
|
if (!IS_ERR(cp)) {
|
|
if (!IS_ERR(cp)) {
|
|
memcpy(sbi->s_es->s_last_mounted, cp,
|
|
memcpy(sbi->s_es->s_last_mounted, cp,
|
|
sizeof(sbi->s_es->s_last_mounted));
|
|
sizeof(sbi->s_es->s_last_mounted));
|