https://github.com/torvalds/linux
Revision 51ee4b84f5c86935b438d6636f34b523edb415a8 authored by Christoph Hellwig on 31 October 2010, 12:35:10 UTC, committed by Linus Torvalds on 31 October 2010, 13:35:15 UTC
The caller allocated it, the caller should free it.

The only issue so far is that we could change the flp pointer even on an
error return if the fl_change callback failed.  But we can simply move
the flp assignment after the fl_change invocation, as the callers don't
care about the flp return value if the setlease call failed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 96f9359
History
Tip revision: 51ee4b84f5c86935b438d6636f34b523edb415a8 authored by Christoph Hellwig on 31 October 2010, 12:35:10 UTC
locks: let the caller free file_lock on ->setlease failure
Tip revision: 51ee4b8
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 177.8 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top