[GFS2] Remove lm.[ch] and distribute content
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 30 Jan 2008 15:34:04 +0000 (15:34 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:40:26 +0000 (10:40 +0100)
commitda755fdb414470d6dce3df12ad188de9131cf96c
tree7081889e6fc13f4ffdf86f5e928a748af7a7adbc
parentab0d756681c9502a2ab9e2e4ab3685bc0567f4ee
[GFS2] Remove lm.[ch] and distribute content

The functions in lm.c were just wrappers which were mostly
only used in one other file. By moving the functions to
the files where they are being used, they can be marked
static and also this will usually result in them being inlined
since they are often only used from one point in the code.

A couple of really trivial functions have been inlined by hand
into the function which called them as it makes the code clearer
to do that.

We also gain from one fewer function call in the glock lock and
unlock paths.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
13 files changed:
fs/gfs2/Makefile
fs/gfs2/glock.c
fs/gfs2/incore.h
fs/gfs2/lm.c [deleted file]
fs/gfs2/lm.h [deleted file]
fs/gfs2/ops_file.c
fs/gfs2/ops_fstype.c
fs/gfs2/ops_super.c
fs/gfs2/recovery.c
fs/gfs2/super.h
fs/gfs2/sys.c
fs/gfs2/util.c
fs/gfs2/util.h