From patchwork Wed Nov 8 00:43:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shakeel Butt X-Patchwork-Id: 10047411 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 C4823603FF for ; Wed, 8 Nov 2017 00:44:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B87652A18C for ; Wed, 8 Nov 2017 00:44:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD3BC2A1AF; Wed, 8 Nov 2017 00:44:16 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM 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 70B742A18C for ; Wed, 8 Nov 2017 00:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758875AbdKHAoC (ORCPT ); Tue, 7 Nov 2017 19:44:02 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:52480 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbdKHAoB (ORCPT ); Tue, 7 Nov 2017 19:44:01 -0500 Received: by mail-it0-f68.google.com with SMTP id j140so4543245itj.1 for ; Tue, 07 Nov 2017 16:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=87c1HPfN7dLnBeTWEHcN8E96l5/Znmqkr7JudyIyOzU=; b=eRbq6EaAup6w/E83vuoizbfFWk4xAe6ROroRE8HkQZ1sA7sUL96P/VttgyiHq4eq4R 9LVrjZfLeA4/TU/wxNnL107mGab3tyt2z+PkBGU8SqiDTUKGkEgGglI/QAqaUmkVjblH 1m55zOVcEwtZCLihSwL9VG8nUbWxCX9z7YBOqMAf3gouW7P7y00vBtzvqA/3nnXTqXwc EIRrf4Xagt1iFBUh4ThWt5fA0LOu8mMzVQmKOjbR+8zsTIrW76WmaJ9ofPSS2cRVkjfd STbyNLR/slrJ9x0Y1jq/46EWUbwi2ouVW1jg8lVvmrqMhJ4ynANDsChUE6R11/fd0V7t 4tqQ== 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; bh=87c1HPfN7dLnBeTWEHcN8E96l5/Znmqkr7JudyIyOzU=; b=RAupR2zPmlSM8nLEGhaCBHXe53o/pepBtF3j0pGix14ECUD/IamUTP8eWpx119t8RU FP/SL0M7ef4mXJEr3qAdT2IHLO5SuRqtMIcXzEDDWBFdnbktQ/XfOob0r4m/BLerwNwk fjeSI/nvuA8ofAwJMP7LSwBGvxyarNzfF0lEsQkJil/H59emDbdzWqiCnXiSkT4IVgEd pYzcxoydRRE3gJijc20M37TisfNgSRpefJhAW+/JjJ7IgLWOs99BJOnQiefhmKYP0TRr NoKN0ysVv27r5WGYVbBHzxl1ZxMmbP6fNLcKrSXM7Su52hbA6Z82unbJiY2rJLeuQnll bqOg== X-Gm-Message-State: AJaThX7DSgyL/EWk8JWfynZIdr3jbyt7e7zSPkICKkeszoathZM/lyZX u6sone54aC9ylsu1vBBuqr61gg== X-Google-Smtp-Source: ABhQp+Qs9vCG+ahecB1nWbA+W2DnAzvW9gal1Hk9/bXPJkq1rWWeRF//HYNsOIXtJ1et6V2YaNCdBw== X-Received: by 10.36.69.209 with SMTP id c78mr1433064itd.119.1510101840501; Tue, 07 Nov 2017 16:44:00 -0800 (PST) Received: from shakeelb.mtv.corp.google.com ([100.123.228.219]) by smtp.gmail.com with ESMTPSA id c80sm1420543itd.31.2017.11.07.16.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Nov 2017 16:43:59 -0800 (PST) From: Shakeel Butt To: Alexander Viro , Greg Thelen , Jan Kara , Michal Hocko , Johannes Weiner Cc: Andrew Morton , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Shakeel Butt Subject: [PATCH] vfs: remove might_sleep() from clear_inode() Date: Tue, 7 Nov 2017 16:43:54 -0800 Message-Id: <20171108004354.40308-1-shakeelb@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog 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 Commit 7994e6f72543 ("vfs: Move waiting for inode writeback from end_writeback() to evict_inode()") removed inode_sync_wait() from end_writeback() and commit dbd5768f87ff ("vfs: Rename end_writeback() to clear_inode()") renamed end_writeback() to clear_inode(). After these patches there is no sleeping operation in clear_inode(). So, remove might_sleep() from it. Signed-off-by: Shakeel Butt --- fs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index d1e35b53bb23..528f3159b928 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -497,7 +497,6 @@ EXPORT_SYMBOL(__remove_inode_hash); void clear_inode(struct inode *inode) { - might_sleep(); /* * We have to cycle tree_lock here because reclaim can be still in the * process of removing the last page (in __delete_from_page_cache())