mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -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
|
|
@ -58,7 +58,7 @@ static long jfs_map_ext2(unsigned long flags, int from)
|
|||
|
||||
long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
struct inode *inode = filp->f_dentry->d_inode;
|
||||
struct inode *inode = file_inode(filp);
|
||||
struct jfs_inode_info *jfs_inode = JFS_IP(inode);
|
||||
unsigned int flags;
|
||||
|
||||
|
|
|
|||
|
|
@ -3004,7 +3004,7 @@ static inline struct jfs_dirent *next_jfs_dirent(struct jfs_dirent *dirent)
|
|||
*/
|
||||
int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
{
|
||||
struct inode *ip = filp->f_path.dentry->d_inode;
|
||||
struct inode *ip = file_inode(filp);
|
||||
struct nls_table *codepage = JFS_SBI(ip->i_sb)->nls_tab;
|
||||
int rc = 0;
|
||||
loff_t dtpos; /* legacy OS/2 style position */
|
||||
|
|
|
|||
Loading…
Reference in a new issue