Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6719355ybi; Mon, 22 Jul 2019 00:19:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMqOV3af+yncRB2tqhCTwg40qqYvjOEUQVa3s4W+tfHUJSNJXh3W6OwtIGYvZQ3VtZGftJ X-Received: by 2002:a63:550e:: with SMTP id j14mr63718925pgb.302.1563779988035; Mon, 22 Jul 2019 00:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563779988; cv=none; d=google.com; s=arc-20160816; b=wlfxbaBWvhthb+LJ8ByWRvSONZEIuc+dnjfvKT+odurj1OG1eCd2CTOcPyE/ZNZRF5 SGQHToU8FRYkRqdm8S+Cf4ukLKWl153iNc0Lfk+qDWiGFiWF7P1hMXjaIj47hqf5OD7E K4JhWw8qiN/iCJ9dxc8o3rFCy0yPpRN0edalhz/hVxiJHcyH52PXd8a/uH5X+7HRHkEm +hyTabqyGU7F07p0jH68ZvhB6XQNJg8BZuAZJHDGtylmd2UjQI55V6T3pM1tt9ImEEqW St2B0r4uDtPQFBjT5gLResWCH8eSIWBCGceaQ+F1QWhIYwOKtrebgfDUezmhv4RIphGD Vhmw== 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 :content-language:mime-version:user-agent:date:message-id:to:subject :from; bh=aQwqzfGIZRmAmrejUy1uqQ8VEW8JERlOow+ce/lOpK8=; b=OudMUJOn/exp1dNwfGw79K+kjGtULG7huhMQvHZT7mqEoaUe/t9khCEWpP7WRxwVR8 2HukOus83BsEjHsKzU0joDC4DOedQA8I1qI2oRtidEBxTufe+QpaMv0aW/6av+e+4Tzf XP4BTyloVls3gRPglk1CWAEfaL+tDd6zm8anh5fyl01wYpdmo048ADLUrn85UwPgBWMK 8F7zzknY5B2HAf4zQ3pfRPWuaZtcIqUaYy3W/EUZx1gTiqXUWKKBJIf45eSLKw+lxqNb VBF+iIV8dl5UswSuyvSH2ZKNP8fut2nggDR8xFz/X1FJGp7+aAB+TwWAT4CeWmTQ1sBQ TE6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si10565543pfr.130.2019.07.22.00.19.32; Mon, 22 Jul 2019 00:19:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbfGVHRX (ORCPT + 99 others); Mon, 22 Jul 2019 03:17:23 -0400 Received: from relay.sw.ru ([185.231.240.75]:59240 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfGVHRW (ORCPT ); Mon, 22 Jul 2019 03:17:22 -0400 Received: from [172.16.24.21] by relay.sw.ru with esmtp (Exim 4.92) (envelope-from ) id 1hpSZT-0000FE-Aq; Mon, 22 Jul 2019 10:17:19 +0300 From: Vasily Averin Subject: [PATCH] fuse: cleanup fuse_wait_on_page_writeback To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Miklos Szeredi Message-ID: <64e2db3a-cf58-0158-e097-1a504a8bb496@virtuozzo.com> Date: Mon, 22 Jul 2019 10:17:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxim Patlasov fuse_wait_on_page_writeback() always returns zero and nobody cares. Let's make it void. Signed-off-by: Maxim Patlasov Signed-off-by: Vasily Averin --- fs/fuse/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 5ae2828beb00..e076c2cf65b0 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -383,12 +383,11 @@ static inline bool fuse_page_is_writeback(struct inode *inode, pgoff_t index) * Since fuse doesn't rely on the VM writeback tracking, this has to * use some other means. */ -static int fuse_wait_on_page_writeback(struct inode *inode, pgoff_t index) +static void fuse_wait_on_page_writeback(struct inode *inode, pgoff_t index) { struct fuse_inode *fi = get_fuse_inode(inode); wait_event(fi->page_waitq, !fuse_page_is_writeback(inode, index)); - return 0; } /* -- 2.17.1