]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/reiserfs/file.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph...
[karo-tx-linux.git] / fs / reiserfs / file.c
index 50302d6f889533b5e139d6083d43e475ca0155c5..6165bd4784f6ab1f08cf3076759ebe4eebc9616a 100644 (file)
@@ -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;