git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce path_put()
[pandora-kernel.git]
/
drivers
/
mtd
/
mtdsuper.c
diff --git
a/drivers/mtd/mtdsuper.c
b/drivers/mtd/mtdsuper.c
index
9b430f2
..
28cc678
100644
(file)
--- a/
drivers/mtd/mtdsuper.c
+++ b/
drivers/mtd/mtdsuper.c
@@
-184,26
+184,26
@@
int get_sb_mtd(struct file_system_type *fs_type, int flags,
ret = path_lookup(dev_name, LOOKUP_FOLLOW, &nd);
DEBUG(1, "MTDSB: path_lookup() returned %d, inode %p\n",
ret = path_lookup(dev_name, LOOKUP_FOLLOW, &nd);
DEBUG(1, "MTDSB: path_lookup() returned %d, inode %p\n",
- ret, nd.
dentry ? nd
.dentry->d_inode : NULL);
+ ret, nd.
path.dentry ? nd.path
.dentry->d_inode : NULL);
if (ret)
return ret;
ret = -EINVAL;
if (ret)
return ret;
ret = -EINVAL;
- if (!S_ISBLK(nd.dentry->d_inode->i_mode))
+ if (!S_ISBLK(nd.
path.
dentry->d_inode->i_mode))
goto out;
goto out;
- if (nd.mnt->mnt_flags & MNT_NODEV) {
+ if (nd.
path.
mnt->mnt_flags & MNT_NODEV) {
ret = -EACCES;
goto out;
}
ret = -EACCES;
goto out;
}
- if (imajor(nd.dentry->d_inode) != MTD_BLOCK_MAJOR)
+ if (imajor(nd.
path.
dentry->d_inode) != MTD_BLOCK_MAJOR)
goto not_an_MTD_device;
goto not_an_MTD_device;
- mtdnr = iminor(nd.dentry->d_inode);
- path_
release(&nd
);
+ mtdnr = iminor(nd.
path.
dentry->d_inode);
+ path_
put(&nd.path
);
return get_sb_mtd_nr(fs_type, flags, dev_name, data, mtdnr, fill_super,
mnt);
return get_sb_mtd_nr(fs_type, flags, dev_name, data, mtdnr, fill_super,
mnt);
@@
-214,7
+214,7
@@
not_an_MTD_device:
"MTD: Attempt to mount non-MTD device \"%s\"\n",
dev_name);
out:
"MTD: Attempt to mount non-MTD device \"%s\"\n",
dev_name);
out:
- path_
release(&nd
);
+ path_
put(&nd.path
);
return ret;
}
return ret;
}