[Devel] [PATCH RHEL8 COMMIT] fuse: cleanup fuse_wait_on_page_writeback_or_invalidate

Konstantin Khorenko khorenko at virtuozzo.com
Fri Apr 23 11:54:55 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.19
------>
commit b0a671257d059a67c07b95e5c84591b03ce0cb45
Author: Maxim Patlasov <mpatlasov at virtuozzo.com>
Date:   Fri Apr 23 11:54:55 2021 +0300

    fuse: cleanup fuse_wait_on_page_writeback_or_invalidate
    
    fuse_wait_on_page_writeback_or_invalidate always return
    zero and nobody cares. Let's make it void.
    
    Signed-off-by: Maxim Patlasov <mpatlasov at virtuozzo.com>
---
 fs/fuse/file.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 8e1754319b97..c9112c1e15d1 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -577,16 +577,15 @@ static void fuse_wait_on_page_writeback(struct inode *inode, pgoff_t index)
 /*
  * Can be woken up by FUSE_NOTIFY_INVAL_FILES
  */
-static int fuse_wait_on_page_writeback_or_invalidate(struct inode *inode,
-						     struct file *file,
-						     pgoff_t index)
+static void fuse_wait_on_page_writeback_or_invalidate(struct inode *inode,
+						      struct file *file,
+						      pgoff_t index)
 {
 	struct fuse_inode *fi = get_fuse_inode(inode);
 	struct fuse_file *ff = file->private_data;
 
 	wait_event(fi->page_waitq, !fuse_page_is_writeback(inode, index) ||
 		   test_bit(FUSE_S_FAIL_IMMEDIATELY, &ff->ff_state));
-	return 0;
 }
 
 /*


More information about the Devel mailing list