From patchwork Sat Apr 8 00:57:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9670765 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 BBE42602B3 for ; Sat, 8 Apr 2017 01:00:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADAEB285FE for ; Sat, 8 Apr 2017 01:00:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1F3028633; Sat, 8 Apr 2017 01:00:37 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 4A13428619 for ; Sat, 8 Apr 2017 01:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932288AbdDHBAD (ORCPT ); Fri, 7 Apr 2017 21:00:03 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33050 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934197AbdDHA7E (ORCPT ); Fri, 7 Apr 2017 20:59:04 -0400 Received: by mail-pg0-f67.google.com with SMTP id 79so18686561pgf.0; Fri, 07 Apr 2017 17:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NlmRMvb/ik89w2v20DEzJLa2jTb4qqeZ/uWPhkh3W7w=; b=dBuWbFU+rMf9tW2iVi/bUomMSm5vHvFrwdsV878PH8Nj4BPaMkTJoWS+0rO6Fn6Zc3 UTAxRtsjxR9drGPZT3L+SYnFM4RJKBf0NCk8qbzsd5B2EUe6Rz+TxwhiGAc5pP0sRDD5 SAXjkXo25CzHumlwtBll0tdwxNLkwp8Aexl0ke2M9QKYW0Yii7T6FInfLBh5RBIZRpYy S8V5z06KKFrneyIkFGPjCKQPdwjOj74cZfEvAplkTH9zjJ3M5liiUwnE7J4zhlQThluO oH2WZn77BAAFD8NHdQO7qI9DcVotKhAUaVzPPQMwvKpDFOteqiGMcxhJg+GKY2WuqK8v zoBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NlmRMvb/ik89w2v20DEzJLa2jTb4qqeZ/uWPhkh3W7w=; b=gLDsilf+rXUNuSPzansjeUVXPrvrEcK3z94qgr4Tc9yHy/02TecrvBnZPuPLhsPmBB lZdhnCOT+pBvqXNRGH8ICrgeQJ7cSysBmbSy5CyQY7Hcmb2SVaVK+baoyYmxGC3dQNhb YDTR8QjWhvEemXdpyCq2FGde9GAo4RIf7Hee2p1LrOY0MQgDvaRYg/ein768w8KW26N6 jBSnRsld78JOgQbPC0ujaHOswa6amsH4VkPIhQSnpMXsfgLVd3gLR8I3G3KW9ph+lbwt C4GzM6dgsTN18mRJh09wWj4XU3wNAxDYjjrTkFxH5wXFXAj5nok3B7EmhOnlxZUqfKUZ LVHQ== X-Gm-Message-State: AFeK/H1tk0K9MXs8Pmh77+WMmxtawriF3bw/J4mY5wm/7qWbr2R1qds8z3NIzhH9VlyhnA== X-Received: by 10.99.175.7 with SMTP id w7mr44283942pge.170.1491613133438; Fri, 07 Apr 2017 17:58:53 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net ([2601:647:5000:6620:95ed:e0d8:7705:f3cc]) by smtp.gmail.com with ESMTPSA id b8sm11638130pfk.39.2017.04.07.17.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Apr 2017 17:58:52 -0700 (PDT) From: Deepa Dinamani To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: tglx@linutronix.de, viro@zeniv.linux.org.uk, gregkh@linuxfoundation.org, andreas.dilger@intel.com, arnd@arndb.de, bfields@fieldses.org, clm@fb.com, davem@davemloft.net, dsterba@suse.com, dushistov@mail.ru, eparis@redhat.com, jaegeuk@kernel.org, jbacik@fb.com, jlayton@poochiereds.net, john.stultz@linaro.org, jsimmons@infradead.org, mingo@redhat.com, oleg.drokin@intel.com, paul@paul-moore.com, rostedt@goodmis.org, yuchao0@huawei.com, ceph-devel@vger.kernel.org, devel@driverdev.osuosl.org, linux-audit@redhat.com, linux-btrfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-security-module@vger.kernel.org, lustre-devel@lists.lustre.org, netdev@vger.kernel.org, samba-technical@lists.samba.org, y2038@lists.linaro.org Subject: [PATCH 12/12] time: Delete current_fs_time() function Date: Fri, 7 Apr 2017 17:57:10 -0700 Message-Id: <1491613030-11599-13-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491613030-11599-1-git-send-email-deepa.kernel@gmail.com> References: <1491613030-11599-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@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 --- 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 f1d7347..cce6c57 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1430,7 +1430,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 25bdd25..cf69cca 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. *