]> Pileus Git - ~andy/linux/blobdiff - fs/ext4/file.c
[PATCH] ext[34]: EA block reference count racing fix
[~andy/linux] / fs / ext4 / file.c
index 0b622c0624b71ad288d1b56257ca59d942f70f86..3c6c1fd2be902524eb1901776aa8a0b45db4a167 100644 (file)
@@ -52,7 +52,7 @@ ext4_file_write(struct kiocb *iocb, const struct iovec *iov,
                unsigned long nr_segs, loff_t pos)
 {
        struct file *file = iocb->ki_filp;
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file->f_path.dentry->d_inode;
        ssize_t ret;
        int err;
 
@@ -125,7 +125,7 @@ const struct file_operations ext4_file_operations = {
        .splice_write   = generic_file_splice_write,
 };
 
-struct inode_operations ext4_file_inode_operations = {
+const struct inode_operations ext4_file_inode_operations = {
        .truncate       = ext4_truncate,
        .setattr        = ext4_setattr,
 #ifdef CONFIG_EXT4DEV_FS_XATTR