From patchwork Sat Aug 13 22:48:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9279237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 482F760231 for ; Sun, 14 Aug 2016 11:40:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38DD2289C0 for ; Sun, 14 Aug 2016 11:40:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CDE528A21; Sun, 14 Aug 2016 11:40:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDC94289C0 for ; Sun, 14 Aug 2016 11:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934309AbcHNLj6 (ORCPT ); Sun, 14 Aug 2016 07:39:58 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34891 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934360AbcHNLjw (ORCPT ); Sun, 14 Aug 2016 07:39:52 -0400 Received: by mail-pa0-f65.google.com with SMTP id cf3so2075502pad.2; Sun, 14 Aug 2016 04:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yu0OCoDUx7WYogH87CcIt091knfVp8hPjKewY8EWAKA=; b=fmroX6aFXFZgscmCfrXE87nhcoNfBwP1U9NFBm65CetV26nJsL7YTYk+Qi5Rdfm5rn 2DKVW/MC4uwJe0M5HyXVDi7wc2h1UGwFPKMM60C8BGzpneI9SM6TmTAPstXMQTj00TJL 21VpQEY0olF6rL423CRxuG8AA5YR8NnoqA0x93/rHZRroYZTEaWwP4imEiV44q5ZoOm+ yLYi3pJw2K0F0bj0FB8ZR7gSOYWnD1cq4ib3oQXrxVgwlzFjKc9zzZFe2GSEKtmHS5gB pDqa5xS/P4CN47Ku0N3+/4Aj1xU3wPQrDUtO39B5da5p415IUfDfTxoZr4u4Fr+NQPr5 S1Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yu0OCoDUx7WYogH87CcIt091knfVp8hPjKewY8EWAKA=; b=DMyAmrPd8vg8ulwlVAVemUVDiiTOSQWgP5lo+D5roOdieKDvRK2CxkgRmVRJnz+MM7 CgPE9i1rBTkQu4IT0B0cI51wh5mfxPcfX7/9+ZWqP1ARaSbPvIN3wDfWDL8gsjFpXBqF Cq7RRRQ9+8Zr3EfyzadTcmGadcGseB5mKKRdpJ3AWg50lso4YrHP6WEql6MlioiPnPeq jx7yUHeeSjDhDNctRaEJ0/RyB3isAd5effbJkv6JDyB/aswgVP3jjNQ5vAcDCoyyTkkt UKPywZVgi/VTnlPbsPZgdtWQiZlgO/VJ1h6cZyBYsbTLUeMaOo22Bh/TNtWpibt1HDK9 UqzQ== X-Gm-Message-State: AEkoouva9iDLOCTCF7WSsWgnmSlo5T2MvbTjybZVbFUbEwXiu+ZSxytTnNLw/WQC4cTq3g== X-Received: by 10.67.16.42 with SMTP id ft10mr19292735pad.133.1471128584409; Sat, 13 Aug 2016 15:49:44 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net (c-73-252-251-201.hsd1.ca.comcast.net. [73.252.251.201]) by smtp.gmail.com with ESMTPSA id 81sm22528007pfm.90.2016.08.13.15.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 15:49:43 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, tglx@linutronix.de, torvalds@linux-foundation.org, tytso@mit.edu, viro@zeniv.linux.org.uk, y2038@lists.linaro.org, John Stultz Subject: [PATCH v4 25/26] time: Delete current_fs_time() function Date: Sat, 13 Aug 2016 15:48:37 -0700 Message-Id: <1471128518-24075-26-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471128518-24075-1-git-send-email-deepa.kernel@gmail.com> References: <1471128518-24075-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All uses of the current_fs_time() function have been replaced by other time interfaces. And, its use cases can be fulfilled by current_time() or ktime_get_* variants. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd Bergmann Cc: John Stultz Cc: Thomas Gleixner Acked-by: John Stultz --- include/linux/fs.h | 1 - kernel/time/time.c | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 9f81be2d..09ffa0a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1469,7 +1469,6 @@ static inline void i_gid_write(struct inode *inode, gid_t gid) inode->i_gid = make_kgid(inode->i_sb->s_user_ns, gid); } -extern struct timespec current_fs_time(struct super_block *sb); extern struct timespec current_time(struct inode *inode); /* diff --git a/kernel/time/time.c b/kernel/time/time.c index 667b933..1ef0b4d 100644 --- a/kernel/time/time.c +++ b/kernel/time/time.c @@ -230,20 +230,6 @@ SYSCALL_DEFINE1(adjtimex, struct timex __user *, txc_p) return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret; } -/** - * current_fs_time - Return FS time - * @sb: Superblock. - * - * Return the current time truncated to the time granularity supported by - * the fs. - */ -struct timespec current_fs_time(struct super_block *sb) -{ - struct timespec now = current_kernel_time(); - return timespec_trunc(now, sb->s_time_gran); -} -EXPORT_SYMBOL(current_fs_time); - /* * Convert jiffies to milliseconds and back. *