patch-2.1.89 linux/arch/sparc/mm/srmmu.c
Next file: linux/arch/sparc64/config.in
Previous file: linux/arch/ppc/kernel/residual.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Feb 27 11:01:52 1998
- Orig file:
v2.1.88/linux/arch/sparc/mm/srmmu.c
- Orig date:
Fri Jan 16 20:38:45 1998
diff -u --recursive --new-file v2.1.88/linux/arch/sparc/mm/srmmu.c linux/arch/sparc/mm/srmmu.c
@@ -2101,8 +2101,8 @@
{
if((vma->vm_flags & (VM_WRITE|VM_SHARED)) == (VM_WRITE|VM_SHARED)) {
struct vm_area_struct *vmaring;
- struct dentry *dentry;
- struct inode *inode = NULL;
+ struct file *file;
+ struct inode *inode;
unsigned long flags, offset, vaddr, start;
int alias_found = 0;
pgd_t *pgdp;
@@ -2111,11 +2111,10 @@
save_and_cli(flags);
- dentry = vma->vm_dentry;
- if(dentry)
- inode = dentry->d_inode;
- if (!inode)
+ file = vma->vm_file;
+ if (!file)
goto done;
+ inode = file->f_dentry->d_inode;
offset = (address & PAGE_MASK) - vma->vm_start;
vmaring = inode->i_mmap;
do {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov