From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 1/1] hfsplus: skip unnecessary volume header sync Date: Thu, 17 Jul 2014 13:59:29 -0700 Message-ID: <20140717135929.1a9fa7279cbb4e7a57761213@linux-foundation.org> References: <1405614762.25052.8.camel@ultrabook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: , , Vyacheslav Dubeyko , Fabian Frederick To: Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:35993 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbaGQU7a (ORCPT ); Thu, 17 Jul 2014 16:59:30 -0400 In-Reply-To: <1405614762.25052.8.camel@ultrabook> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 17 Jul 2014 19:32:42 +0300 Sougata Santra wrote: > hfsplus_sync_fs always updates volume header information to disk with every > sync. This causes problem for systems trying to monitor disk activity to > switch them to low power state. Please fully describe these "problems"? I'm guessing that the fs will write the volume header even if it didn't change, so a sync operation against a completely clean fs still performs a physical write. But I'd prefer not to have to guess! > Also hfsplus_sync_fs is explicitly called > from mount/unmount, which is unnecessary. During mount/unmount we only want > to set/clear volume dirty sate.