From: Joel Fernandes Subject: ext3 writing of data before metadata in ordered mode Date: Sun, 25 Oct 2009 14:33:59 -0700 Message-ID: <9ff7a3bc0910251433k2c719989n981e3652162cafdf@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: linux-fsdevel@vger.kernel.org, kernelnewbies Return-path: Received: from mail-px0-f179.google.com ([209.85.216.179]:57703 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754143AbZJYVdy (ORCPT ); Sun, 25 Oct 2009 17:33:54 -0400 Received: by pxi9 with SMTP id 9so815114pxi.4 for ; Sun, 25 Oct 2009 14:33:59 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: In data=ordered mode the ext3_ordered_commit_write function marks the buffers as dirty, how then does the JBD ensure that the data is written before the metadata? Once the data buffers are marked as dirty, JBD doesn't have control anymore over when the data is written is actually written to disk right? Because the actually writing of the data is handled by the page wtriteback mechanism (pdflush) right? I might be missing something here, thanks for your time and patience. -Joel