Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1091383ybt; Sat, 20 Jun 2020 00:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe9Q3RCyqrU34dx7hXL9pzYcsLG6B1WlhCErDoEYrPUQUsYoVYXnJ1CyXZydN/z+mcwxHE X-Received: by 2002:a17:906:c452:: with SMTP id ck18mr7355051ejb.116.1592637706798; Sat, 20 Jun 2020 00:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592637706; cv=none; d=google.com; s=arc-20160816; b=zXn3sLN5fmPOjOqtkklKG0i+DtJDWmuJxSLyPq0/IxhS3BAXu2eC5KXYdXdDiEg4aP OPWPAWFDtFmIRoFS/HYz6jujzNDR5fP2fBW502Nd1FX5m/8wXqktqnQbFJ/lANi5Yzwe 16v/v8u2uLBYx6Sn4dyDzCxO/0TxnksYkAcFTgMiqVmxTpj3ub+QXQudIfX9IODV1UvC 3uDjPMjn68hjboQI/yE9/b8/D/3pVywYS+wc4b3DKXn2qbWnQzPRF0wduiC1+cHPtztf C1aAJoUPgt+a4YVZeevzWIBEAxp+goLf5Lgs0GPbR2yyFzKQQRCDB89xWWeiSRQqP1ak 0e7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=koI155aGDcIf4Rh+gSo69u1fzRFomV+Z7ORwaw0YDLc=; b=iiLcu7Z/OxNGBNQ5E/kgLD8VNBf5OCtfqYHvEb395Jj4YEhaUH9NAD3/2OlizRg/ga C1oq7IixEW+AGtY8OUyPJO7nAzwsesHZilE1nfUhyLI7Z2o2eOit0ZSG2vhTRPWFd/ND iYdi6tQSNEi7gUXJHz14CHs6IddtlS97XRFf6vYmmdU9xP/6E3hn1tOr7Ed8vqhqBKoY l7OvV0alJzuWlpmsuA9i3KuzTz83PmkWwcp9gEFcJFGNq4gf2uqzXjOTyxFH89s8dMTu l23h2UhtQtC8oFkikCXy7q+u3mphZllgWGQLm1TSnGA8h+P42uNI1XOiXIpzMpFquFUj AjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DOpBH2+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si5915055edv.356.2020.06.20.00.21.24; Sat, 20 Jun 2020 00:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DOpBH2+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbgFTHQ4 (ORCPT + 99 others); Sat, 20 Jun 2020 03:16:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbgFTHQx (ORCPT ); Sat, 20 Jun 2020 03:16:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4CDC06174E; Sat, 20 Jun 2020 00:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=koI155aGDcIf4Rh+gSo69u1fzRFomV+Z7ORwaw0YDLc=; b=DOpBH2+vY8kxUf+lcCx4xeLpTf H2LNChA9+4uA6Durrl69QKQjZfQN7Zw6zi89cWcXO3WRKNfV2pPavBSBKUt6/ol9i/Ztli+XlOfq+ RTePmOqqImazUlm3SsqSvbaszxmhDB1zp6W2x1yQt2/Hz4I2R9DaiDLfriajFF/7hJ1Nu6hqRlGOn bGppq3IF80wvOQ43afOuT76OtBWCumq0VfeLvN3YvVVw9C6oiOB0OQfScuo9BmDYL8N6cuwOxZ6rX V3lzRFy0AyqUHVGGR0lC4fq6XNqRr4H2X+xaY/4Dfrn+MTJ3h57hNNCfL4mPCWEB+iFOwICBaBqJT c0Q1/mIw==; Received: from 195-192-102-148.dyn.cablelink.at ([195.192.102.148] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmXk9-0003qp-M1; Sat, 20 Jun 2020 07:16:50 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Al Viro , Greg Kroah-Hartman , Jiri Slaby , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/10] tty/sysrq: emergency_thaw_all does not depend on CONFIG_BLOCK Date: Sat, 20 Jun 2020 09:16:35 +0200 Message-Id: <20200620071644.463185-2-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200620071644.463185-1-hch@lst.de> References: <20200620071644.463185-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We can also thaw non-block file systems. Remove the CONFIG_BLOCK in sysrq.c after making the prototype available unconditionally. Signed-off-by: Christoph Hellwig --- drivers/tty/sysrq.c | 2 -- include/linux/fs.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 7c95afa905a083..a8e39b2cdd5526 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -403,7 +403,6 @@ static const struct sysrq_key_op sysrq_moom_op = { .enable_mask = SYSRQ_ENABLE_SIGNAL, }; -#ifdef CONFIG_BLOCK static void sysrq_handle_thaw(int key) { emergency_thaw_all(); @@ -414,7 +413,6 @@ static const struct sysrq_key_op sysrq_thaw_op = { .action_msg = "Emergency Thaw of all frozen filesystems", .enable_mask = SYSRQ_ENABLE_SIGNAL, }; -#endif static void sysrq_handle_kill(int key) { diff --git a/include/linux/fs.h b/include/linux/fs.h index 3f881a892ea746..7f40dbafbf6d49 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2593,7 +2593,6 @@ extern void invalidate_bdev(struct block_device *); extern void iterate_bdevs(void (*)(struct block_device *, void *), void *); extern int sync_blockdev(struct block_device *bdev); extern struct super_block *freeze_bdev(struct block_device *); -extern void emergency_thaw_all(void); extern void emergency_thaw_bdev(struct super_block *sb); extern int thaw_bdev(struct block_device *bdev, struct super_block *sb); extern int fsync_bdev(struct block_device *); @@ -2633,6 +2632,7 @@ static inline bool sb_is_blkdev_sb(struct super_block *sb) return false; } #endif +void emergency_thaw_all(void); extern int sync_filesystem(struct super_block *); extern const struct file_operations def_blk_fops; extern const struct file_operations def_chr_fops; -- 2.26.2