]> err.no Git - linux-2.6/blobdiff - drivers/block/acsi_slm.c
Pull trivial into release branch
[linux-2.6] / drivers / block / acsi_slm.c
index 8e41c87b026e79282ac48c9c37d42a565ff916d1..e04be94d195c5ecca5a8faf9cb0ca6fc24d9b09c 100644 (file)
@@ -363,7 +363,7 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count,
                                                 loff_t *ppos )
 
 {
-       struct inode *node = file->f_dentry->d_inode;
+       struct inode *node = file->f_path.dentry->d_inode;
        unsigned long page;
        int length;
        int end;
@@ -618,7 +618,7 @@ static ssize_t slm_write( struct file *file, const char *buf, size_t count,
                                                  loff_t *ppos )
 
 {
-       struct inode *node = file->f_dentry->d_inode;
+       struct inode *node = file->f_path.dentry->d_inode;
        int             device = iminor(node);
        int             n, filled, w, h;