Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753701Ab1E0Rw0 (ORCPT ); Fri, 27 May 2011 13:52:26 -0400 Received: from mail.lang.hm ([64.81.33.126]:38918 "EHLO bifrost.lang.hm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456Ab1E0RwY (ORCPT ); Fri, 27 May 2011 13:52:24 -0400 Date: Fri, 27 May 2011 10:51:08 -0700 (PDT) From: david@lang.hm X-X-Sender: dlang@asgard.lang.hm To: Theodore Tso cc: "D. Jansen" , Oliver Neukum , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Dave Chinner , njs@pobox.com, bart@samwel.tk Subject: Re: [rfc] Ignore Fsync Calls in Laptop_Mode In-Reply-To: Message-ID: References: <201105231012.06928.oneukum@suse.de> <20110525000003.GJ32466@dastard> <201105250850.12179.oneukum@suse.de> <410B37BE-E380-40D0-82AA-48B56F389E16@mit.edu> <20110526133155.GH9520@thunk.org> <20110526162138.GN9520@thunk.org> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 18 On Fri, 27 May 2011, Theodore Tso wrote: > If you are willing to rewrite the *entire* database to a completely new file each > time you want to write out some data, and only delete the old database > once the new database has been written out, then you're fine. If the file is too > big you can delay the time period between a complete writeout of the > database. But then if you drop your laptop and the battery slips out, you'll > lose more data. Life is full of tradeoffs. actually, even in this case don't you need a barrier or fsync to make sure the new file is completely written before the old file goes away? David Lang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/