summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAndries E. Brouwer <andries.brouwer@cwi.nl>2002-11-20 23:48:53 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-11-20 23:48:53 -0800
commit47de5842a7dc89aab8b96c721c5d8dd6cc3ab393 (patch)
tree69d4f9edd2ab45846becb2d9eca5c6f974baf083 /fs/proc/array.c
parentd7111bbcf8593a774c1f0dfe31b8403870a0f5a6 (diff)
[PATCH] kill i_dev
The i_dev field is deleted and the few uses are replaced by i_sb->s_dev. There is a single side effect: a stat on a socket now sees a nonzero st_dev. There is nothing against that - FreeBSD has a nonzero value as well - but there is at least one utility (fuser) that will need an update.
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 862f02e13bec..450dd174d3ea 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -484,8 +484,9 @@ static int proc_pid_maps_get_line (char *buf, struct vm_area_struct *map)
dev = 0;
ino = 0;
if (map->vm_file != NULL) {
- dev = map->vm_file->f_dentry->d_inode->i_dev;
- ino = map->vm_file->f_dentry->d_inode->i_ino;
+ struct inode *inode = map->vm_file->f_dentry->d_inode;
+ dev = inode->i_sb->s_dev;
+ ino = inode->i_ino;
line = d_path(map->vm_file->f_dentry,
map->vm_file->f_vfsmnt,
buf, PAGE_SIZE);