[PATCH] ext3 xattr: Don't write to the in-inode xattr space of reserved inodes
[linux-2.6.git] / fs / ext3 / inode.c
index 0b2db4f618cbec499832a0969b14f827a839245c..9989fdcf4d5aba4c00e07bd7826e9ccb639624f3 100644 (file)
@@ -2663,7 +2663,7 @@ static int ext3_do_update_inode(handle_t *handle,
        } else for (block = 0; block < EXT3_N_BLOCKS; block++)
                raw_inode->i_block[block] = ei->i_data[block];
 
-       if (EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE)
+       if (ei->i_extra_isize)
                raw_inode->i_extra_isize = cpu_to_le16(ei->i_extra_isize);
 
        BUFFER_TRACE(bh, "call ext3_journal_dirty_metadata");