Re: [PATCH 1/5] Use existing macros for distinguishing mandatory locks

2007-09-14 Thread Andrew Morton
On Wed, 12 Sep 2007 15:17:58 +0400 Pavel Emelyanov <[EMAIL PROTECTED]> wrote: > The combination of S_ISGID bit set and S_IXGRP bit unset is > used to mark the inode as "mandatory lockable" and there's a > macro for this check called MANDATORY_LOCK(inode). However, > fs/locks.c and some filesyst

[PATCH 1/5] Use existing macros for distinguishing mandatory locks

2007-09-12 Thread Pavel Emelyanov
The combination of S_ISGID bit set and S_IXGRP bit unset is used to mark the inode as "mandatory lockable" and there's a macro for this check called MANDATORY_LOCK(inode). However, fs/locks.c and some filesystems still perform the explicit i_mode checking. Switch the fs/locks.c to macro makin