• Jeff Layton's avatar
    locks: remove LOCK_MAND flock lock support · 90f7d7a0
    Jeff Layton authored
    As best I can tell, the logic for these has been broken for a long time
    (at least before the move to git), such that they never conflict with
    anything. Also, nothing checks for these flags and prevented opens or
    read/write behavior on the files. They don't seem to do anything.
    
    Given that, we can rip these symbols out of the kernel, and just make
    flock(2) return 0 when LOCK_MAND is set in order to preserve existing
    behavior.
    
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
    90f7d7a0
fcntl.h 5.45 KB