]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ocfs2: POSIX file locks support
authorMark Fasheh <mfasheh@suse.com>
Mon, 21 Jul 2008 21:29:16 +0000 (14:29 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 20:57:57 +0000 (13:57 -0700)
commit53da4939f349d4edd283b043219221ca5b78e4d4
tree3e0f8e1bd5474822431cffd1e449df9b639e1772
parenta447c0932445f92ce6f4c1bd020f62c5097a7842
ocfs2: POSIX file locks support

This is actually pretty easy since fs/dlm already handles the bulk of the
work. The Ocfs2 userspace cluster stack module already uses fs/dlm as the
underlying lock manager, so I only had to add the right calls.

Cluster-aware POSIX locks ("plocks") can be turned off by the same means at
UNIX locks - mount with 'noflocks', or create a local-only Ocfs2 volume.
Internally, the file system uses two sets of file_operations, depending on
whether cluster aware plocks is required. This turns out to be easier than
implementing local-only versions of ->lock.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/file.c
fs/ocfs2/file.h
fs/ocfs2/inode.c
fs/ocfs2/locks.c
fs/ocfs2/locks.h
fs/ocfs2/stack_user.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h