Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

convert gadgetfs

same as functionfs

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 57db9d42 b65e3b11

+11 -8
+11 -8
drivers/usb/gadget/legacy/inode.c
··· 1989 1989 struct dentry *dentry; 1990 1990 struct inode *inode; 1991 1991 1992 - dentry = d_alloc_name(sb->s_root, name); 1993 - if (!dentry) 1994 - return -ENOMEM; 1995 - 1996 1992 inode = gadgetfs_make_inode (sb, data, fops, 1997 1993 S_IFREG | (default_perm & S_IRWXUGO)); 1998 - if (!inode) { 1999 - dput(dentry); 1994 + if (!inode) 2000 1995 return -ENOMEM; 1996 + 1997 + dentry = simple_start_creating(sb->s_root, name); 1998 + if (IS_ERR(dentry)) { 1999 + iput(inode); 2000 + return PTR_ERR(dentry); 2001 2001 } 2002 - d_add (dentry, inode); 2002 + 2003 + d_make_persistent(dentry, inode); 2004 + 2005 + simple_done_creating(dentry); 2003 2006 return 0; 2004 2007 } 2005 2008 ··· 2099 2096 gadgetfs_kill_sb (struct super_block *sb) 2100 2097 { 2101 2098 mutex_lock(&sb_mutex); 2102 - kill_litter_super (sb); 2099 + kill_anon_super (sb); 2103 2100 if (the_device) { 2104 2101 put_dev (the_device); 2105 2102 the_device = NULL;