proc_sysctl.c (a940daa52167e9db8ecce82213813b735a9d9f23) | proc_sysctl.c (200d942170a8e7b94d7cdc871f9a067917bc3f4a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * /proc/sys support 4 */ 5#include <linux/init.h> 6#include <linux/sysctl.h> 7#include <linux/poll.h> 8#include <linux/proc_fs.h> --- 451 unchanged lines hidden (view full) --- 460 return ERR_PTR(-ENOENT); 461 } 462 ei->sysctl = head; 463 ei->sysctl_entry = table; 464 hlist_add_head_rcu(&ei->sibling_inodes, &head->inodes); 465 head->count++; 466 spin_unlock(&sysctl_lock); 467 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * /proc/sys support 4 */ 5#include <linux/init.h> 6#include <linux/sysctl.h> 7#include <linux/poll.h> 8#include <linux/proc_fs.h> --- 451 unchanged lines hidden (view full) --- 460 return ERR_PTR(-ENOENT); 461 } 462 ei->sysctl = head; 463 ei->sysctl_entry = table; 464 hlist_add_head_rcu(&ei->sibling_inodes, &head->inodes); 465 head->count++; 466 spin_unlock(&sysctl_lock); 467 |
468 inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); | 468 simple_inode_init_ts(inode); |
469 inode->i_mode = table->mode; 470 if (!S_ISDIR(table->mode)) { 471 inode->i_mode |= S_IFREG; 472 inode->i_op = &proc_sys_inode_operations; 473 inode->i_fop = &proc_sys_file_operations; 474 } else { 475 inode->i_mode |= S_IFDIR; 476 inode->i_op = &proc_sys_dir_operations; --- 1231 unchanged lines hidden --- | 469 inode->i_mode = table->mode; 470 if (!S_ISDIR(table->mode)) { 471 inode->i_mode |= S_IFREG; 472 inode->i_op = &proc_sys_inode_operations; 473 inode->i_fop = &proc_sys_file_operations; 474 } else { 475 inode->i_mode |= S_IFDIR; 476 inode->i_op = &proc_sys_dir_operations; --- 1231 unchanged lines hidden --- |