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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue