new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -25,7 +25,7 @@ static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence)
|
||||
loff_t new_off = off + (whence == 1 ? filp->f_pos : 0);
|
||||
loff_t pos;
|
||||
struct quad_buffer_head qbh;
|
||||
struct inode *i = filp->f_path.dentry->d_inode;
|
||||
struct inode *i = file_inode(filp);
|
||||
struct hpfs_inode_info *hpfs_inode = hpfs_i(i);
|
||||
struct super_block *s = i->i_sb;
|
||||
|
||||
@@ -57,7 +57,7 @@ fail:
|
||||
|
||||
static int hpfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
{
|
||||
struct inode *inode = filp->f_path.dentry->d_inode;
|
||||
struct inode *inode = file_inode(filp);
|
||||
struct hpfs_inode_info *hpfs_inode = hpfs_i(inode);
|
||||
struct quad_buffer_head qbh;
|
||||
struct hpfs_dirent *de;
|
||||
|
Reference in New Issue
Block a user