diff options
author | Naohiro Aota <naota@elisp.net> | 2013-06-06 11:56:34 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-06-08 21:07:53 +0200 |
commit | 6379ef9fb2482a92b5fe09f927d6ce1f989c0c6d (patch) | |
tree | f4bd8f1479d092f47d93570c4a8e50503d86a05a /fs/btrfs/relocation.c | |
parent | Btrfs: don't delete fs_roots until after we cleanup the transaction (diff) | |
download | linux-6379ef9fb2482a92b5fe09f927d6ce1f989c0c6d.tar.xz linux-6379ef9fb2482a92b5fe09f927d6ce1f989c0c6d.zip |
btrfs: Drop inode if inode root is NULL
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 <naota@elisp.net>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions