vfs: Update fs.h to use inline functions when no file locking set
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 20 Jan 2009 10:29:45 +0000 (10:29 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Mar 2009 18:43:58 +0000 (14:43 -0400)
commitc2aca5e529a2499d454c41e01f59f1d5fe4a1364
tree80515a22164ab4722ccac3026e65dfa186b0707e
parent10f303ae1e5e77a9f7cb053e6329906afb132c67
vfs: Update fs.h to use inline functions when no file locking set

This avoids various issues which might give rise to compiler warnings
about missing functions and/or unused variable with the previous
macros. This also fixes a bug where one of the macros was returning
0, but it should have been void.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs.h