mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ece2ccb668
commit
d8c9584ea2
14 changed files with 27 additions and 25 deletions
|
|
@ -25,8 +25,8 @@ static long do_sys_name_to_handle(struct path *path,
|
|||
* We need t make sure wether the file system
|
||||
* support decoding of the file handle
|
||||
*/
|
||||
if (!path->mnt->mnt_sb->s_export_op ||
|
||||
!path->mnt->mnt_sb->s_export_op->fh_to_dentry)
|
||||
if (!path->dentry->d_sb->s_export_op ||
|
||||
!path->dentry->d_sb->s_export_op->fh_to_dentry)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue