gfs2: make gfs2_glock.gl_owner_pid be a struct pid *
authorPavel Emelyanov <xemul@openvz.org>
Thu, 7 Feb 2008 08:13:21 +0000 (00:13 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:06 +0000 (08:42 -0800)
commiteccba068915feece2868c502787037e244db3376
treeeac7790a497c1a33c167605a81ba62b22057b99c
parent4cbc76eadf56399cd11fb736b33c53aec9caab8c
gfs2: make gfs2_glock.gl_owner_pid be a struct pid *

The gl_owner_pid field is used to get the lock owning task by its pid, so make
it in a proper manner, i.e.  by using the struct pid pointer and pid_task()
function.

The pid_task() becomes exported for the gfs2 module.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/gfs2/glock.c
fs/gfs2/incore.h
kernel/pid.c