From patchwork Mon Jun 20 00:27:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9186379 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 BEFE4601C0 for ; Mon, 20 Jun 2016 00:47:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34640205AD for ; Mon, 20 Jun 2016 00:47:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27A6E2094D; Mon, 20 Jun 2016 00:47:54 +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 21222200F5 for ; Mon, 20 Jun 2016 00:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751755AbcFTArv (ORCPT ); Sun, 19 Jun 2016 20:47:51 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36633 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbcFTArv (ORCPT ); Sun, 19 Jun 2016 20:47:51 -0400 Received: by mail-pf0-f194.google.com with SMTP id i123so7265160pfg.3 for ; Sun, 19 Jun 2016 17:45:54 -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=LbL6RbvoJjG4RHs5VO2/9BPTwu1BX7xs7fC8TV6CtjU=; b=F+bAedQNFZaK9UPAL34fTmCVCEWuuqUqsSD2FSjH1CkeTMLPqS/a2pmTwbRK0R2uRm jOOaL0qzMvB1pmJbFIwSkw9RB5NCmA978lsui08AeQGmhpe1N5ripG6tlRiBhSY8hnob Y0KMY4a+3RNPoxq7IcIDFxXsMt+PNFCH7LtxgLBvp24AtMy/GLoXTJhLj+ZUe4gB6VQa M3FYVzic2tiSTsTYfgChgJDXwBuJICLCH+70Sv3C1IZ1K2h8wors4+18QkwHRT9Qtfv9 smSlGnO06HuieEDJIDfg2f3SkEVF3mme0TAE44s6k2oETjwXZTXMSQ0rF1xZvso24HDs 3R8A== 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=LbL6RbvoJjG4RHs5VO2/9BPTwu1BX7xs7fC8TV6CtjU=; b=YGtcan926Ma9cf0veBoriQW5TegBgokPCExz7wUC312MhC+fcct/52q2Tu1ug/3PxR zzQX+8y0QzkKags+kxslqfp118aPYmGt3M6/J3v4q2X4dEl8pBf/eMLS51uHtOorQ6O6 6/PmO+9zrsspKhnwQvQZtX1ZLlDG9CBJBzXuuJs1P8hfQaOufzC0vdwp2V4331qmvetJ +zHK9kgqRLbBTIwmokJ+V4Hq4GYPeR7/t+ubfpjYsZtxSDngkxjBquFPV87bo4qlpUei 778U16XPvdHW6JiDYrqFXduFeDCUfXr0sL3lE6J2sVEOOFUrJoOaOvGvUDdcKonX4sPA L9RA== X-Gm-Message-State: ALyK8tK80LIEQPtx2S1KbR5pJ0ttRT2OgKBOUQJPlyvp1Vu/fakDIiQizd6kfVF/3hsaEA== X-Received: by 10.98.85.5 with SMTP id j5mr13396621pfb.81.1466382531810; Sun, 19 Jun 2016 17:28:51 -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 s12sm34984980pfj.57.2016.06.19.17.28.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Jun 2016 17:28:51 -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 v2 24/24] time: Delete current_fs_time() function Date: Sun, 19 Jun 2016 17:27:23 -0700 Message-Id: <1466382443-11063-25-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466382443-11063-1-git-send-email-deepa.kernel@gmail.com> References: <1466382443-11063-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 Cc: John Stultz Cc: Thomas Gleixner --- 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 21a8afe..3f0d5b5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1460,7 +1460,6 @@ struct super_block { struct list_head s_inodes; /* all inodes */ }; -extern struct timespec current_fs_time(struct super_block *sb); extern struct timespec current_time(struct inode *inode); static inline struct timespec current_fs_time_sec(struct super_block *sb) 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. *