]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vfs: add lock owner argument to flush operation
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 23 Jun 2006 09:05:12 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:02 +0000 (07:43 -0700)
commit4469110d443d5f7a16f8e4e87f92226b73a8dc33
tree3ac0d0d3120cbca4ee9734494e2c9a4e0775ac4f
parent25e6071964c57fee57cf1767881d5c103b8a8e03
[PATCH] vfs: add lock owner argument to flush operation

Pass the POSIX lock owner ID to the flush operation.

This is useful for filesystems which don't want to store any locking state
in inode->i_flock but want to handle locking/unlocking POSIX locks
internally.  FUSE is one such filesystem but I think it possible that some
network filesystems would need this also.

Also add a flag to indicate that a POSIX locking request was generated by
close(), so filesystems using the above feature won't send an extra locking
request in this case.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14 files changed:
arch/ia64/kernel/perfmon.c
drivers/input/evdev.c
drivers/scsi/osst.c
drivers/scsi/st.c
fs/cifs/cifsfs.h
fs/cifs/file.c
fs/coda/file.c
fs/fuse/file.c
fs/locks.c
fs/nfs/file.c
fs/open.c
include/linux/coda_linux.h
include/linux/fs.h
ipc/mqueue.c