From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753593AbcGSSAC (ORCPT ); Tue, 19 Jul 2016 14:00:02 -0400 Received: from mail.kernel.org ([198.145.29.136]:60652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753401AbcGSSAA (ORCPT ); Tue, 19 Jul 2016 14:00:00 -0400 Date: Tue, 19 Jul 2016 10:59:51 -0700 From: Shaohua Li To: Arnd Bergmann Cc: y2038@lists.linaro.org, NeilBrown , Guoqing Jiang , Goldwyn Rodrigues , Jens Axboe , Hannes Reinecke , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] md: use seconds granularity for error logging Message-ID: <20160719175951.GA46288@kernel.org> References: <20160617153347.380722-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160617153347.380722-1-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 17, 2016 at 05:33:10PM +0200, Arnd Bergmann wrote: > The md code stores the exact time of the last error in the > last_read_error variable using a timespec structure. It only > ever uses the seconds portion of that though, so we can > use a scalar for it. > > There won't be an overflow in 2038 here, because it already > used monotonic time and 32-bit is enough for that, but I've > decided to use time64_t for consistency in the conversion. > > Signed-off-by: Arnd Bergmann Applied, thanks!