GFS2: clean up explicit check for mandatory locks
authorPavel Emelyanov <xemul@openvz.org>
Mon, 1 Oct 2007 21:41:13 +0000 (14:41 -0700)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 9 Oct 2007 22:32:46 +0000 (18:32 -0400)
commit7afaac6202782ec28f2039503bdaef666834d60c
treed848662aa677f5fe47fa7c93c2ac9925b3e888ae
parenta16877ca9cec211708a161057a7cbfbf2cbc3a53
GFS2: clean up explicit check for mandatory locks

The __mandatory_lock(inode) function makes the same check, but makes the code
more readable.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/gfs2/ops_file.c