Re: [PATCH] Allow relatime to update atime once a day
From: Bodo Eggert
Date: Fri Mar 27 2009 - 15:35:20 EST
Matthew Garrett <mjg@xxxxxxxxxx> wrote:
> --- a/fs/inode.c
> +
> + if (!relatime_need_update(mnt, inode, now))
> + goto out;
> +
-> if (timespec_equal(&inode->i_atime, &now))
-> goto out;
timespec_equal is now duplicate, because:
> +static int relatime_need_update(struct vfsmount *mnt, struct inode *inode,
..
> + if (timespec_compare(&inode->i_mtime, &inode->i_atime) >= 0)
> + return 1;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/