* Theodore Tso <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 05, 2007 at 09:28:38PM +0200, Ingo Molnar wrote:
> >
> > added the relatime_interval sysctl that allows the changing of the
> > atime update frequency. (default: 1 day / 86400 seconds)
>
> What if you specify the interval as a per-mount o
On Sun, Aug 05, 2007 at 09:28:38PM +0200, Ingo Molnar wrote:
>
> added the relatime_interval sysctl that allows the changing of the atime
> update frequency. (default: 1 day / 86400 seconds)
What if you specify the interval as a per-mount option? i.e.,
mount -o relatime=86400 /dev/sda
On Sun, 2007-08-05 at 21:04 +0100, Alan Cox wrote:
> O> you might want to add
> >
> > /*
> > * if the inode is dirty already, do the atime update since
> > * we'll be doing the disk IO anyway to clean the inode.
> > */
> > if (inode->i_state & I_DIRTY)
> > retur
O> you might want to add
>
> /*
>* if the inode is dirty already, do the atime update since
>* we'll be doing the disk IO anyway to clean the inode.
>*/
> if (inode->i_state & I_DIRTY)
> return 1;
This makes the actual result somewhat less predic
> +static int relatime_need_update(struct inode *inode, struct timespec now)
> +{
> + /*
> + * Is mtime younger than atime? If yes, update atime:
> + */
> + if (timespec_compare(&inode->i_mtime, &inode->i_atime) >= 0)
> + return 1;
> + /*
> + * Is ctime young
new version:
added the relatime_interval sysctl that allows the changing of the atime
update frequency. (default: 1 day / 86400 seconds)
Ingo
-->
Subject: [patch] [patch] implement smarter atime updates support
From: Ingo Molnar <[EMAIL PROTECTED]>
ent boot option and
all the switches (be that config, boot or sysctl) are now called
"default_relatime". Also, got rid of that #ifdef ugliness in namespace.c
via a cleaner Kconfig solution (suggested by Peter Zijlstra).
Ingo
-------->
Subject: [patch]
7 matches
Mail list logo