generic.c (64a07bd82ed526d813b64b0957543eef55bdf9c0) | generic.c (99ac48f54a91d02140c497edc31dc57d4bc5c85d) |
---|---|
1/* 2 * proc/fs/generic.c --- generic routines for the proc-fs 3 * 4 * This file contains generic proc-fs routines for handling 5 * directories and files. 6 * 7 * Copyright (C) 1991, 1992 Linus Torvalds. 8 * Copyright (C) 1997 Theodore Ts'o --- 546 unchanged lines hidden (view full) --- 555 /* 556 * Actually it's a partial revoke(). 557 */ 558 file_list_lock(); 559 list_for_each(p, &sb->s_files) { 560 struct file * filp = list_entry(p, struct file, f_u.fu_list); 561 struct dentry * dentry = filp->f_dentry; 562 struct inode * inode; | 1/* 2 * proc/fs/generic.c --- generic routines for the proc-fs 3 * 4 * This file contains generic proc-fs routines for handling 5 * directories and files. 6 * 7 * Copyright (C) 1991, 1992 Linus Torvalds. 8 * Copyright (C) 1997 Theodore Ts'o --- 546 unchanged lines hidden (view full) --- 555 /* 556 * Actually it's a partial revoke(). 557 */ 558 file_list_lock(); 559 list_for_each(p, &sb->s_files) { 560 struct file * filp = list_entry(p, struct file, f_u.fu_list); 561 struct dentry * dentry = filp->f_dentry; 562 struct inode * inode; |
563 struct file_operations *fops; | 563 const struct file_operations *fops; |
564 565 if (dentry->d_op != &proc_dentry_operations) 566 continue; 567 inode = dentry->d_inode; 568 if (PDE(inode) != de) 569 continue; 570 fops = filp->f_op; 571 filp->f_op = NULL; --- 174 unchanged lines hidden --- | 564 565 if (dentry->d_op != &proc_dentry_operations) 566 continue; 567 inode = dentry->d_inode; 568 if (PDE(inode) != de) 569 continue; 570 fops = filp->f_op; 571 filp->f_op = NULL; --- 174 unchanged lines hidden --- |