Skip to content

Commit

Permalink
fix braino in fs: do not assign default i_ino in new_inode
Browse files Browse the repository at this point in the history
usbfs_get_inode() is something completely different...

Bogosity introduced by commit 85fe402 ("fs: do not assign default
i_ino in new_inode").

Signed-off-by: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Al Viro authored and torvalds committed Oct 27, 2010
1 parent c48c43e commit 12ba8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12ba8d1

Please sign in to comment.