pipe.c (eb42c75878e4d13941dcbcf2ef1027c257b099a6) | pipe.c (da9592edebceeba1b9301beafe80ec8b9c2db0ce) |
---|---|
1/* 2 * linux/fs/pipe.c 3 * 4 * Copyright (C) 1991, 1992, 1999 Linus Torvalds 5 */ 6 7#include <linux/mm.h> 8#include <linux/file.h> --- 885 unchanged lines hidden (view full) --- 894 /* 895 * Mark the inode dirty from the very beginning, 896 * that way it will never be moved to the dirty 897 * list because "mark_inode_dirty()" will think 898 * that it already _is_ on the dirty list. 899 */ 900 inode->i_state = I_DIRTY; 901 inode->i_mode = S_IFIFO | S_IRUSR | S_IWUSR; | 1/* 2 * linux/fs/pipe.c 3 * 4 * Copyright (C) 1991, 1992, 1999 Linus Torvalds 5 */ 6 7#include <linux/mm.h> 8#include <linux/file.h> --- 885 unchanged lines hidden (view full) --- 894 /* 895 * Mark the inode dirty from the very beginning, 896 * that way it will never be moved to the dirty 897 * list because "mark_inode_dirty()" will think 898 * that it already _is_ on the dirty list. 899 */ 900 inode->i_state = I_DIRTY; 901 inode->i_mode = S_IFIFO | S_IRUSR | S_IWUSR; |
902 inode->i_uid = current->fsuid; 903 inode->i_gid = current->fsgid; | 902 inode->i_uid = current_fsuid(); 903 inode->i_gid = current_fsgid(); |
904 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 905 906 return inode; 907 908fail_iput: 909 iput(inode); 910 911fail_inode: --- 201 unchanged lines hidden --- | 904 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 905 906 return inode; 907 908fail_iput: 909 iput(inode); 910 911fail_inode: --- 201 unchanged lines hidden --- |