• Matthew Wilcox's avatar
    [PATCH] fs/locks.c: more cleanup · fd3020fe
    Matthew Wilcox authored
    Define the for_each_lock macro and start replacing ugly special for loops
    with it.  Rejig the interface between sys_flock and flock_lock_file to
    always pass a struct file_lock rather than a command.  Eliminate some
    gotos by simplifying the logic.  Remove some redundant initialisation.
    fd3020fe
locks.c 46.4 KB