nommu.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | nommu.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54) |
---|---|
1/* nommu.c: mmu-less memory info files 2 * 3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 31 unchanged lines hidden (view full) --- 40 struct file *file; 41 dev_t dev = 0; 42 int flags, len; 43 44 flags = region->vm_flags; 45 file = region->vm_file; 46 47 if (file) { | 1/* nommu.c: mmu-less memory info files 2 * 3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 31 unchanged lines hidden (view full) --- 40 struct file *file; 41 dev_t dev = 0; 42 int flags, len; 43 44 flags = region->vm_flags; 45 file = region->vm_file; 46 47 if (file) { |
48 struct inode *inode = region->vm_file->f_path.dentry->d_inode; | 48 struct inode *inode = file_inode(region->vm_file); |
49 dev = inode->i_sb->s_dev; 50 ino = inode->i_ino; 51 } 52 53 seq_printf(m, 54 "%08lx-%08lx %c%c%c%c %08llx %02x:%02x %lu %n", 55 region->vm_start, 56 region->vm_end, --- 80 unchanged lines hidden --- | 49 dev = inode->i_sb->s_dev; 50 ino = inode->i_ino; 51 } 52 53 seq_printf(m, 54 "%08lx-%08lx %c%c%c%c %08llx %02x:%02x %lu %n", 55 region->vm_start, 56 region->vm_end, --- 80 unchanged lines hidden --- |