fuse: clean up fuse_writepage_in_flight()
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 16 Jan 2019 09:27:59 +0000 (10:27 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 13 Feb 2019 12:15:12 +0000 (13:15 +0100)
commit7f305ca1928d8b7db69f428b10988a3aa3e81053
tree1bf72aa67967f9282c4e51b0babb1c3383475f93
parent2fe93bd43264242e4568763d1b183b1cc58066ff
fuse: clean up fuse_writepage_in_flight()

Restructure the function to better separate the locked and the unlocked
parts.  Use the "old_req" local variable to mean only the queued request,
and not any auxiliary requests added onto its misc.write.next list.  These
changes are in preparation for the following patch.

Also turn BUG_ON instances into WARN_ON and add a header comment explaining
what the function does.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c