From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751058AbdE2KRG (ORCPT ); Mon, 29 May 2017 06:17:06 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:44724 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750863AbdE2KRF (ORCPT ); Mon, 29 May 2017 06:17:05 -0400 Subject: Re: [PATCH] ubifs: Add freeze support To: Amir Goldstein References: <1495755004-17036-1-git-send-email-hyc.lee@gmail.com> <2f3210d7-b0c3-f006-754e-ec4bae26454c@nod.at> <20170529011834.GB10215@sebu> <20170529044059.GA12991@sebu> Cc: Hyunchul Lee , Artem Bityutskiy , Adrian Hunter , linux-kernel , kernel-team@lge.com, linux-mtd@lists.infradead.org, linux-fsdevel From: Richard Weinberger Message-ID: Date: Mon, 29 May 2017 12:17:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amir, Am 29.05.2017 um 12:04 schrieb Amir Goldstein: >> Well, UBIFS is a bit different. >> The UBIFS journal is not an add-on feature, you have to replay it in >> any case. Otherwise you're facing corrupted data. > > Yes, I suppose you are right. > I guess there is no equivalent of mount -oro,{norecovery,noload} for > ubifs. Correct. > I don't know the ubifs journal implementation details. > Can ubifs_run_commit() when writers are frozen contribute to > shorter journal replay time after boot with some workloads? If the journal is empty then mounting will be faster, yes. But I'm still interested in Hyunchul's use-case/problem. Usually you run UBIFS in an embedded environment where you simple never shutdown or reboot in a clean way. The power supply just cut off. On the other hand, if you want an empty journal for a faster mount, just make sure that you umount upon shutdown. Or make the size of the journal smaller at mkfs time. Also see: commit 27ad27993313312a4ad0047d0a944c425cd511a5 Author: Artem Bityutskiy Date: Thu Jan 29 16:34:30 2009 +0200 UBIFS: remove fast unmounting This UBIFS feature has never worked properly, and it was a mistake to add it because we simply have no use-cases. So, lets still accept the fast_unmount mount option, but ignore it. This does not change much, because UBIFS commit in sync_fs anyway, and sync_fs is called while unmounting. Signed-off-by: Artem Bityutskiy Thanks, //richard