From patchwork Sat Jun 25 21:37:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9198755 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 54F6C6075F for ; Sat, 25 Jun 2016 21:40:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B4D828527 for ; Sat, 25 Jun 2016 21:40:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F6522852B; Sat, 25 Jun 2016 21:40: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 C3A4228527 for ; Sat, 25 Jun 2016 21:40:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751655AbcFYVkM (ORCPT ); Sat, 25 Jun 2016 17:40:12 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35629 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbcFYVis (ORCPT ); Sat, 25 Jun 2016 17:38:48 -0400 Received: by mail-pa0-f68.google.com with SMTP id hf6so11940848pac.2; Sat, 25 Jun 2016 14:38:48 -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=w14kpHc6xJGUqxMBc9JkyoSud7JXLJJ5eFdncMxlw5k=; b=Uf8QxrHr87itu8+p23fKBVm25F2zHUo1NAxt3sXngBuMcgPuQuK79HALc+M6IXWgPE MvD44LrhBTLY3QOXkw42oDZjOAda+RZyPDR+TNr45JCxDuEl1WwunWHXlK316fKBGwPw +aah2lgm/W/44S/rQSk0Csmnc+sz6yYh3jDOYDhscqC00I6hsJN9jMdifzsoxfEqSRrs 6Js1hXsC7GtqI6vTdEUyEKWczoHpMgyFnabHtj4rsf7psahzM4hD7pTPpgaJ/0wheGwA tGkijnANYDG5y9mJsMGVnZOHYd1R0Ve7tRYStaJnN/YwuRq70lVve+KoEIGatGiyIHUX w4+w== 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=w14kpHc6xJGUqxMBc9JkyoSud7JXLJJ5eFdncMxlw5k=; b=ENB7FIe8vgN62tQuxH1Jif8g1qjVNweZm8nkT+rpcQL/kbEV8o9wIfIsaIOBCOLK/p EfFuz5ZCsgJDacoU+OiHEFhH9/SGLq/pTlpMTiKLxUMgfhZrmdqHbvVhErPQ+oc6OddC tXE0qpBY7IyOeC3iKhEynbd5K1N6o6EumO+1l4/M6YL3YLLmGL2P0vKr+wsY2xuO7eh8 o4kIrG9FavuKu3o30FV4R/fQNj3p2rTvXt0rXe6SUgH/CKQewozYl95K/aCmm7WNDmSq Av+UEk5RWnmuj7nXpfR1CdbPBsCFg7V5RDJVL/yV8HftTe/IgtiWtwi8UVKUGI+lXS3A l3Vw== X-Gm-Message-State: ALyK8tKF3DJw/BKdrSxAXwmSb7kkY/SGHmLoHk9U4j0mGeyO3HZXzEWGqAMzUajMvXIYWA== X-Received: by 10.66.73.232 with SMTP id o8mr19811650pav.43.1466890727998; Sat, 25 Jun 2016 14:38:47 -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 m8sm1861308pfi.27.2016.06.25.14.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jun 2016 14:38:47 -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 v3 23/24] time: Delete current_fs_time() function Date: Sat, 25 Jun 2016 14:37:47 -0700 Message-Id: <1466890668-23400-24-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466890668-23400-1-git-send-email-deepa.kernel@gmail.com> References: <1466890668-23400-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 d0d9b38..5befa38 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1475,7 +1475,6 @@ struct super_block { struct list_head s_inodes_wb; /* writeback 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. *