From: Al Viro Date: Wed, 27 Oct 2010 03:19:36 +0000 (+0100) Subject: fix braino in fs: do not assign default i_ino in new_inode X-Git-Tag: MMI-PSA29.97-13-9~21938 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12ba8d1e9262ce81a695795410bd9ee5c9407ba1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git fix braino in fs: do not assign default i_ino in new_inode usbfs_get_inode() is something completely different... Bogosity introduced by commit 85fe4025c616 ("fs: do not assign default i_ino in new_inode"). Signed-off-by: Al Viro Cc: Christoph Hellwig Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index e093fd8d04d3..f276e9594f00 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c @@ -980,7 +980,7 @@ ffs_sb_make_inode(struct super_block *sb, void *data, if (likely(inode)) { struct timespec current_time = CURRENT_TIME; - inode->i_ino = usbfs_get_inode(); + inode->i_ino = get_next_ino(); inode->i_mode = perms->mode; inode->i_uid = perms->uid; inode->i_gid = perms->gid;