• Miklos Szeredi's avatar
    fuse: clean up fuse_writepage_in_flight() · 7f305ca1
    Miklos Szeredi authored
    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: default avatarMiklos Szeredi <mszeredi@redhat.com>
    7f305ca1
file.c 77.7 KB