Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6720846ybi; Mon, 22 Jul 2019 00:21:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6vWN1lQUksSfJUddjcOEKPGi/aUQiT13MkkDLAEdvDCVMD2eePe5G0JKcsebOC8Wqm4qm X-Received: by 2002:a63:db45:: with SMTP id x5mr57753923pgi.293.1563780094275; Mon, 22 Jul 2019 00:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563780094; cv=none; d=google.com; s=arc-20160816; b=QSn0YPJeADlAwL848qHlVrMh/WYYlGsLIGHOFEZ3//e9d7hMCt8J22sUzrvT9wncV5 /deHwOUoJbySoVzU6BsQMlBug/k/PB3pmNGgqgMV6QX+eWFOiAHlXlq3M2fSGY4sOv5X DCNkFIBYMd5lqU3YNPsdclVIKV4nb1U/QtwPj9Jb7R5REeTZ8rKSaDUJ+lKgSE176NlE vWgNsXG4FNuOQNQLWzwo7xUsuT1yJNzJhaxM1oVqoYumZ4Qaq2pzC6g7KlkLCVHY05A/ W6tEqY/CiKn4Ccx4kpIrcstgA+LmKKM46nx1gue+efw9oE70P4L21hXq0fhmIaYu5Ih3 Ikzw== 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:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=8bNFqMg+pUYRMr4ITR0H2d745ngcB2VFRu+QDdR2j34=; b=AVewY5Uc/c2/4tyPwc/GhhLTrX65tmBhS0Q4IZfCeOpBDS0JPVtv+dHZgr90OBlmFy 3jf1yxb1wGyoo0Gl20VdVGUfc3u5eTuU3RH0Z7ejxlSfdvH8dsmpz47Avn5nIzxVHr3s FS+oeRcQ528LaPUY/AubroOXvucJefWpGgk1jG2xJTYpK9HJ+lyUGNZ1p1vzA6qHS7bh AX6VAfvm5+3evWubb6ShUP4a5+Wv0Xz3MO/bLwosE4AuEOa8Zkm2KFegn9XOL6Tcv7ip rkhoksmfvNBIqMEplAItHLVEV/cinbbNDApp5+12zDWB9Bs8owlkJor1dWtZUw6olz2t LapA== 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 u46si9249192pgn.578.2019.07.22.00.21.17; Mon, 22 Jul 2019 00:21:34 -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 S1727628AbfGVHSw (ORCPT + 99 others); Mon, 22 Jul 2019 03:18:52 -0400 Received: from relay.sw.ru ([185.231.240.75]:59268 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfGVHSw (ORCPT ); Mon, 22 Jul 2019 03:18:52 -0400 Received: from [172.16.24.21] by relay.sw.ru with esmtp (Exim 4.92) (envelope-from ) id 1hpSav-0000Fm-TZ; Mon, 22 Jul 2019 10:18:50 +0300 Subject: Re: [PATCH] fuse: cleanup fuse_wait_on_page_writeback To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Miklos Szeredi References: <64e2db3a-cf58-0158-e097-1a504a8bb496@virtuozzo.com> From: Vasily Averin Message-ID: Date: Mon, 22 Jul 2019 10:18:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <64e2db3a-cf58-0158-e097-1a504a8bb496@virtuozzo.com> 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 I forget to add this patch was used in OpenVZ kernels last few years. On 7/22/19 10:17 AM, Vasily Averin wrote: > 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; > } > > /* >