lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 27 Mar 2009 20:34:55 +0100
From:	Bodo Eggert <7eggert@....de>
To:	Matthew Garrett <mjg@...hat.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Frans Pop <elendil@...net.nl>, mingo@...e.hu, tytso@....edu,
	jack@...e.cz, alan@...rguk.ukuu.org.uk, arjan@...radead.org,
	a.p.zijlstra@...llo.nl, npiggin@...e.de, jens.axboe@...cle.com,
	drees76@...il.com, jesper@...gh.cc, linux-kernel@...r.kernel.org,
	oleg@...hat.com, roland@...hat.com, willy@...ux.intel.com,
	vaurora@...hat.com
Subject: Re: [PATCH] Allow relatime to update atime once a day

Matthew Garrett <mjg@...hat.com> 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ