base.c (a940daa52167e9db8ecce82213813b735a9d9f23) base.c (200d942170a8e7b94d7cdc871f9a067917bc3f4a)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/proc/base.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 *
7 * proc base directory handling functions
8 *

--- 1888 unchanged lines hidden (view full) ---

1897 inode = new_inode(sb);
1898 if (!inode)
1899 goto out;
1900
1901 /* Common stuff */
1902 ei = PROC_I(inode);
1903 inode->i_mode = mode;
1904 inode->i_ino = get_next_ino();
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/proc/base.c
4 *
5 * Copyright (C) 1991, 1992 Linus Torvalds
6 *
7 * proc base directory handling functions
8 *

--- 1888 unchanged lines hidden (view full) ---

1897 inode = new_inode(sb);
1898 if (!inode)
1899 goto out;
1900
1901 /* Common stuff */
1902 ei = PROC_I(inode);
1903 inode->i_mode = mode;
1904 inode->i_ino = get_next_ino();
1905 inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode);
1905 simple_inode_init_ts(inode);
1906 inode->i_op = &proc_def_inode_operations;
1907
1908 /*
1909 * grab the reference to task.
1910 */
1911 pid = get_task_pid(task, PIDTYPE_PID);
1912 if (!pid)
1913 goto out_unlock;

--- 2017 unchanged lines hidden ---
1906 inode->i_op = &proc_def_inode_operations;
1907
1908 /*
1909 * grab the reference to task.
1910 */
1911 pid = get_task_pid(task, PIDTYPE_PID);
1912 if (!pid)
1913 goto out_unlock;

--- 2017 unchanged lines hidden ---