[PATCH] fs/locks.c: more cleanup
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.
Showing
Please register or sign in to comment