new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -268,7 +268,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t
|
||||
* new current position before returning. */
|
||||
)
|
||||
{
|
||||
struct inode *inode = file->f_path.dentry->d_inode; // Inode of the file that we are writing to.
|
||||
struct inode *inode = file_inode(file); // Inode of the file that we are writing to.
|
||||
/* To simplify coding at this time, we store
|
||||
locked pages in array for now */
|
||||
struct reiserfs_transaction_handle th;
|
||||
|
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
struct inode *inode = filp->f_path.dentry->d_inode;
|
||||
struct inode *inode = file_inode(filp);
|
||||
unsigned int flags;
|
||||
int err = 0;
|
||||
|
||||
|
@@ -281,7 +281,7 @@ static int show_oidmap(struct seq_file *m, struct super_block *sb)
|
||||
}
|
||||
#if defined( REISERFS_USE_OIDMAPF )
|
||||
if (sb_info->oidmap.use_file && (sb_info->oidmap.mapf != NULL)) {
|
||||
loff_t size = sb_info->oidmap.mapf->f_path.dentry->d_inode->i_size;
|
||||
loff_t size = file_inode(sb_info->oidmap.mapf)->i_size;
|
||||
total_used += size / sizeof(reiserfs_oidinterval_d_t);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user