mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
new helper: file_inode(file)
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
57eccb830f
commit
496ad9aa8e
306 changed files with 696 additions and 717 deletions
|
|
@ -23,7 +23,7 @@ static struct fuse_conn *fuse_ctl_file_conn_get(struct file *file)
|
|||
{
|
||||
struct fuse_conn *fc;
|
||||
mutex_lock(&fuse_mutex);
|
||||
fc = file->f_path.dentry->d_inode->i_private;
|
||||
fc = file_inode(file)->i_private;
|
||||
if (fc)
|
||||
fc = fuse_conn_get(fc);
|
||||
mutex_unlock(&fuse_mutex);
|
||||
|
|
|
|||
|
|
@ -1160,7 +1160,7 @@ static int fuse_readdir(struct file *file, void *dstbuf, filldir_t filldir)
|
|||
int err;
|
||||
size_t nbytes;
|
||||
struct page *page;
|
||||
struct inode *inode = file->f_path.dentry->d_inode;
|
||||
struct inode *inode = file_inode(file);
|
||||
struct fuse_conn *fc = get_fuse_conn(inode);
|
||||
struct fuse_req *req;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue