From: Goffredo Baroncelli <kreijack@libero.it>
To: dsterba@suse.cz, "Tomáš Pružina" <pruzinat@gmail.com>,
linux-btrfs@vger.kernel.org
Subject: Re: Fwd: [suggestion] Add verbose notification about inode-cache rebuild to kernel log
Date: Fri, 09 May 2014 20:12:54 +0200 [thread overview]
Message-ID: <536D1AA6.7050407@libero.it> (raw)
In-Reply-To: <20140509145118.GD5988@twin.jikos.cz>
On 05/09/2014 04:51 PM, David Sterba wrote:
> On Thu, May 08, 2014 at 04:22:13PM +0200, Tomáš Pružina wrote:
>> I ran into some troubles with inode-cache rebuilding on root fs after
>> filesystem was mounted without inode_cache, which stalls boot of my
>> box by several minutes.
>>
>> I boot from commandline like:
>> root=/dev/sda4 rootfstype=btrfs
>> rootflags=inode_cache,space_cache,autodefrag rw ...
>>
>> However when I manually remount root fs without inode_cache (for
>> example via kexec), it triggers cache rebuild at next mount which
>> takes several tens of minutes and mimick 'freeze' on boot.
>>
>> Would it be possible to put some printk saying that this is happening
>> so users don't get confused about it??
>
> Adding the printk is probably a good thing, but I'd rather reconsider
> using inode_cache at all. IMO it's supposed to fix problems with inode
> numbers that we don't have.
IIRC, the problem is for the 32 bit system, were the API wants the inode number to be 32 bit..
In the past the inode_cache was introduced because the inode often reached 2^32 [1]
Because most modern hardware is 64 bit (with the exception of ARM ?), could be make sense to allow btrfs to work without inode_cache only on 64bit, loosing the possibility to be used on 32 bit system.
Instead when the inode_cache is used, btrfs still be compatible with both 32bit and 64bit systems.
How often a filesystem is moved between a 64bit and 32bit systems ?
[1] http://article.gmane.org/gmane.comp.file-systems.btrfs/9573
--
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
next prev parent reply other threads:[~2014-05-09 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CACHxQ2tAU15z_pUEGBuGqYFR9n_fH9BeyA8=jYryRrb3H=zCYA@mail.gmail.com>
2014-05-08 14:22 ` Fwd: [suggestion] Add verbose notification about inode-cache rebuild to kernel log Tomáš Pružina
2014-05-09 14:51 ` David Sterba
2014-05-09 18:12 ` Goffredo Baroncelli [this message]
2014-05-12 14:39 ` David Sterba
2014-05-12 18:18 ` Goffredo Baroncelli
2014-05-13 4:55 ` Duncan
2014-05-13 14:22 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536D1AA6.7050407@libero.it \
--to=kreijack@libero.it \
--cc=dsterba@suse.cz \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=pruzinat@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.