Comment 45 for bug 453579

Revision history for this message
Nick Lowe (nick-int-r) wrote : Re: corruption of large files reported with linux 2.6.31-14.46 on ext4

http://bugzilla.kernel.org/attachment.cgi?id=23458

--- inode.c.orig 2009-10-05 18:18:51.000000000 +0200
+++ inode.c 2009-10-18 13:16:45.728112813 +0200
@@ -5164,6 +5164,9 @@
  } else {
   struct ext4_iloc iloc;

+ if (inode->i_sb->s_flags & MS_RDONLY)
+ return 0;
+
   err = ext4_get_inode_loc(inode, &iloc);
   if (err)
    return err;