mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] VFS: change struct file to use struct path
This patch changes struct file to use struct path instead of having
independent pointers to struct dentry and struct vfsmount, and converts all
users of f_{dentry,vfsmnt} in fs/ to use f_path.{dentry,mnt}.
Additionally, it adds two #define's to make the transition easier for users of
the f_dentry and f_vfsmnt.
Signed-off-by: Josef "Jeff" Sipek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b65d34fd46
commit
0f7fc9e4d0
32 changed files with 141 additions and 139 deletions
|
|
@ -204,7 +204,7 @@ asmlinkage long sys_dup(unsigned int fildes)
|
|||
|
||||
static int setfl(int fd, struct file * filp, unsigned long arg)
|
||||
{
|
||||
struct inode * inode = filp->f_dentry->d_inode;
|
||||
struct inode * inode = filp->f_path.dentry->d_inode;
|
||||
int error = 0;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue