mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
switch vfs_getattr() to struct path
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e72837e3e7
commit
3dadecce20
14 changed files with 40 additions and 35 deletions
|
|
@ -302,7 +302,8 @@ static int handle_remove(const char *nodename, struct device *dev)
|
|||
|
||||
if (dentry->d_inode) {
|
||||
struct kstat stat;
|
||||
err = vfs_getattr(parent.mnt, dentry, &stat);
|
||||
struct path p = {.mnt = parent.mnt, .dentry = dentry};
|
||||
err = vfs_getattr(&p, &stat);
|
||||
if (!err && dev_mynode(dev, dentry->d_inode, &stat)) {
|
||||
struct iattr newattrs;
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ MODULE_PARM_DESC(path, "customized firmware image search path with a higher prio
|
|||
static noinline_for_stack long fw_file_size(struct file *file)
|
||||
{
|
||||
struct kstat st;
|
||||
if (vfs_getattr(file->f_path.mnt, file->f_path.dentry, &st))
|
||||
if (vfs_getattr(&file->f_path, &st))
|
||||
return -1;
|
||||
if (!S_ISREG(st.mode))
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue