aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-01-23 17:07:38 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-22 23:31:31 -0500
commit496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch)
tree8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /fs/9p/vfs_file.c
parent57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff)
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_file.c')
-rw-r--r--fs/9p/vfs_file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index c2483e97beee..3356e3ed5115 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -133,7 +133,7 @@ out_error:
133static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) 133static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
134{ 134{
135 int res = 0; 135 int res = 0;
136 struct inode *inode = filp->f_path.dentry->d_inode; 136 struct inode *inode = file_inode(filp);
137 137
138 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl); 138 p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
139 139
@@ -302,7 +302,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
302 302
303static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) 303static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
304{ 304{
305 struct inode *inode = filp->f_path.dentry->d_inode; 305 struct inode *inode = file_inode(filp);
306 int ret = -ENOLCK; 306 int ret = -ENOLCK;
307 307
308 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n", 308 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n",
@@ -338,7 +338,7 @@ out_err:
338static int v9fs_file_flock_dotl(struct file *filp, int cmd, 338static int v9fs_file_flock_dotl(struct file *filp, int cmd,
339 struct file_lock *fl) 339 struct file_lock *fl)
340{ 340{
341 struct inode *inode = filp->f_path.dentry->d_inode; 341 struct inode *inode = file_inode(filp);
342 int ret = -ENOLCK; 342 int ret = -ENOLCK;
343 343
344 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n", 344 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %s\n",
@@ -529,7 +529,7 @@ v9fs_file_write(struct file *filp, const char __user * data,
529 if (!count) 529 if (!count)
530 goto out; 530 goto out;
531 531
532 retval = v9fs_file_write_internal(filp->f_path.dentry->d_inode, 532 retval = v9fs_file_write_internal(file_inode(filp),
533 filp->private_data, 533 filp->private_data,
534 data, count, &origin, 1); 534 data, count, &origin, 1);
535 /* update offset on successful write */ 535 /* update offset on successful write */
@@ -604,7 +604,7 @@ v9fs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
604 struct v9fs_inode *v9inode; 604 struct v9fs_inode *v9inode;
605 struct page *page = vmf->page; 605 struct page *page = vmf->page;
606 struct file *filp = vma->vm_file; 606 struct file *filp = vma->vm_file;
607 struct inode *inode = filp->f_path.dentry->d_inode; 607 struct inode *inode = file_inode(filp);
608 608
609 609
610 p9_debug(P9_DEBUG_VFS, "page %p fid %lx\n", 610 p9_debug(P9_DEBUG_VFS, "page %p fid %lx\n",