Re: [PATCH] btrfs: Drop inode if inode root is NULL

2013-06-06 Thread Miao Xie
On thu, 06 Jun 2013 18:56:34 +0900, na...@elisp.net wrote: > There is a path where btrfs_drop_inode() is called with its inode's root > is NULL: In btrfs_new_inode(), when btrfs_set_inode_index() fails, > iput() is called. We should handle this case before taking look at the > root->root_item.

[PATCH] btrfs: Drop inode if inode root is NULL

2013-06-06 Thread naota
There is a path where btrfs_drop_inode() is called with its inode's root is NULL: In btrfs_new_inode(), when btrfs_set_inode_index() fails, iput() is called. We should handle this case before taking look at the root->root_item. Signed-off-by: Naohiro Aota --- fs/btrfs/inode.c | 3 +++ 1 file cha