fuse: fix flock breakage
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 12 Sep 2011 07:31:49 +0000 (09:31 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 18:47:10 +0000 (11:47 -0700)
commit24114504c4d585ec4aae7a2b2acb81bf741f8c8a
tree52b9668b53f7d12342984be55b96e5784383a4ae
parent87adf1c66cacbc4acd0e696c896755a5091a9d3d
fuse: fix flock breakage

Commit 37fb3a30b4 ("fuse: fix flock") added in 3.1-rc4 caused flock() to
fail with ENOSYS with the kernel ABI version 7.16 or earlier.

Fix by falling back to testing FUSE_POSIX_LOCKS for ABI versions 7.16
and earlier.

Reported-by: Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Martin Ziegler <ziegler@email.mathematik.uni-freiburg.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/inode.c