Use helpers to obtain task pid in printks
authorPavel Emelyanov <xemul@openvz.org>
Fri, 19 Oct 2007 06:40:40 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:43 +0000 (11:53 -0700)
commitba25f9dcc4ea6e30839fcab5a5516f2176d5bfed
tree3123c03b25dd5c0cd24b6ab4fc16731217838157
parent9a2e70572e94e21e7ec4186702d045415422bda0
Use helpers to obtain task pid in printks

The task_struct->pid member is going to be deprecated, so start
using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in
the kernel.

The first thing to start with is the pid, printed to dmesg - in
this case we may safely use task_pid_nr(). Besides, printks produce
more (much more) than a half of all the explicit pid usage.

[akpm@linux-foundation.org: git-drm went and changed lots of stuff]
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
47 files changed:
block/ll_rw_blk.c
drivers/block/nbd.c
drivers/cdrom/cdrom.c
drivers/char/drm/drm_bufs.c
drivers/char/drm/drm_drv.c
drivers/char/drm/drm_fops.c
drivers/char/drm/drm_lock.c
drivers/char/drm/drm_os_linux.h
drivers/char/drm/i810_dma.c
drivers/char/drm/i830_dma.c
drivers/char/sx.c
drivers/char/tty_io.c
drivers/hid/hidraw.c
drivers/md/md.c
drivers/media/video/zoran_driver.c
drivers/mtd/ubi/wl.c
drivers/net/wireless/hostap/hostap_ioctl.c
drivers/scsi/libsas/sas_discover.c
drivers/usb/core/devio.c
drivers/usb/gadget/file_storage.c
fs/cifs/connect.c
fs/dlm/user.c
fs/fs-writeback.c
fs/jffs2/debug.h
fs/nfsd/vfs.c
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/cluster/masklog.h
fs/ocfs2/dlm/dlmrecovery.c
include/linux/reiserfs_fs.h
include/net/9p/9p.h
kernel/cpu.c
kernel/exit.c
kernel/lockdep.c
kernel/rtmutex-debug.c
kernel/rtmutex.c
kernel/sched.c
kernel/signal.c
kernel/softlockup.c
kernel/workqueue.c
lib/spinlock_debug.c
mm/oom_kill.c
net/core/pktgen.c
net/core/sock.c
net/ipv4/ipvs/ip_vs_sync.c
net/ipv4/tcp.c
net/llc/af_llc.c
net/sunrpc/sched.c