From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Sterba Subject: Re: [PATCH 04/21] fs: Replace CURRENT_TIME with current_fs_time() for inode timestamps Date: Thu, 9 Jun 2016 09:55:39 +0200 Message-ID: <20160609075539.GF3905@suse.cz> References: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> <1465448705-25055-5-git-send-email-deepa.kernel@gmail.com> Reply-To: dsterba@suse.cz Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1465448705-25055-5-git-send-email-deepa.kernel@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Deepa Dinamani Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Naoya Horiguchi , Colin Cross , Arnd Bergmann , pvfs2-developers@beowulf-underground.org, Kees Cook , Matt Fleming , "David S. Miller" , Boaz Harrosh , Anton Vorontsov , Joel Becker , Chris Mason , Josef Bacik , "J. Bruce Fields" , Eric Van Hensbergen , Firo Yang , Hal Rosenstock , Konstantin Khlebnikov , Prasad Joshi , Hugh Dickins , "Serge E. Hallyn" , Nadia Yvette Chambers , Peter Hurley On Wed, Jun 08, 2016 at 10:04:48PM -0700, Deepa Dinamani wrote: > CURRENT_TIME macro is not appropriate for filesystems as it > doesn't use the right granularity for filesystem timestamps. > Use current_fs_time() instead. > > CURRENT_TIME is also not y2038 safe. > > This is also in preparation for the patch that transitions > vfs timestamps to use 64 bit time and hence make them > y2038 safe. As part of the effort current_fs_time() will be > extended to do range checks. Hence, it is necessary for all > file system timestamps to use current_fs_time(). Also, > current_fs_time() will be transitioned along with vfs to be > y2038 safe. > > Signed-off-by: Deepa Dinamani > Cc: David Sterba for the btrfs bits Reviewed-by: David Sterba -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org