Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755436AbZC0TfV (ORCPT ); Fri, 27 Mar 2009 15:35:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752958AbZC0TfF (ORCPT ); Fri, 27 Mar 2009 15:35:05 -0400 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:43845 "EHLO mail-in-04.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752033AbZC0TfC (ORCPT ); Fri, 27 Mar 2009 15:35:02 -0400 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-12.arcor-online.net DAF341B37AB From: Bodo Eggert <7eggert@gmx.de> Subject: Re: [PATCH] Allow relatime to update atime once a day To: Matthew Garrett , Linus Torvalds , Andrew Morton , Frans Pop , mingo@elte.hu, tytso@mit.edu, jack@suse.cz, alan@lxorguk.ukuu.org.uk, arjan@infradead.org, a.p.zijlstra@chello.nl, npiggin@suse.de, jens.axboe@oracle.com, drees76@gmail.com, jesper@krogh.cc, linux-kernel@vger.kernel.org, oleg@redhat.com, roland@redhat.com, willy@linux.intel.com, vaurora@redhat.com Reply-To: 7eggert@gmx.de Date: Fri, 27 Mar 2009 20:34:55 +0100 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 18 Matthew Garrett 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/