generic.c (2f221d6f7b881d95de1f356a3097d755ab1e47d4) | generic.c (0d56a4518d5eaf595a24ab2202e171330bb2ed72) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * proc/fs/generic.c --- generic routines for the proc-fs 4 * 5 * This file contains generic proc-fs routines for handling 6 * directories and files. 7 * 8 * Copyright (C) 1991, 1992 Linus Torvalds. --- 131 unchanged lines hidden (view full) --- 140 struct proc_dir_entry *de = PDE(inode); 141 if (de) { 142 nlink_t nlink = READ_ONCE(de->nlink); 143 if (nlink > 0) { 144 set_nlink(inode, nlink); 145 } 146 } 147 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * proc/fs/generic.c --- generic routines for the proc-fs 4 * 5 * This file contains generic proc-fs routines for handling 6 * directories and files. 7 * 8 * Copyright (C) 1991, 1992 Linus Torvalds. --- 131 unchanged lines hidden (view full) --- 140 struct proc_dir_entry *de = PDE(inode); 141 if (de) { 142 nlink_t nlink = READ_ONCE(de->nlink); 143 if (nlink > 0) { 144 set_nlink(inode, nlink); 145 } 146 } 147 |
148 generic_fillattr(inode, stat); | 148 generic_fillattr(&init_user_ns, inode, stat); |
149 return 0; 150} 151 152static const struct inode_operations proc_file_inode_operations = { 153 .setattr = proc_notify_change, 154}; 155 156/* --- 671 unchanged lines hidden --- | 149 return 0; 150} 151 152static const struct inode_operations proc_file_inode_operations = { 153 .setattr = proc_notify_change, 154}; 155 156/* --- 671 unchanged lines hidden --- |