From: Andrew Morton Cc: Ryusuke Konishi Signed-off-by: Andrew Morton --- fs/nilfs2/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/nilfs2/inode.c~nilfs2-inode-operations-fix fs/nilfs2/inode.c --- a/fs/nilfs2/inode.c~nilfs2-inode-operations-fix +++ a/fs/nilfs2/inode.c @@ -280,13 +280,13 @@ struct inode *nilfs_new_inode(struct ino atomic_inc(&sbi->s_inodes_count); - inode->i_uid = current->fsuid; + inode->i_uid = current_fsuid(); if (dir->i_mode & S_ISGID) { inode->i_gid = dir->i_gid; if (S_ISDIR(mode)) mode |= S_ISGID; } else - inode->i_gid = current->fsgid; + inode->i_gid = current_fsgid(); inode->i_mode = mode; inode->i_ino = ino; _