]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ocfs2: iput inode alloc when failed locally
authorjiangyiwen <jiangyiwen@huawei.com>
Thu, 3 Apr 2014 21:47:12 +0000 (14:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:57 +0000 (16:20 -0700)
commit7dc3e83901b342ea7fe36262329c3784f2937361
treee23d55a0c0bd98a0fce8e197e3e388bcdbaff655
parentda8ded405de74de4b189d1128f4c102d06328c29
ocfs2: iput inode alloc when failed locally

In ocfs2_info_handle_freeinode() and ocfs2_test_inode_bit() func, after
calls ocfs2_get_system_file_inode() to get inode ref, if calls
ocfs2_info_scan_inode_alloc() or ocfs2_inode_lock() failed, we should
iput inode alloc to avoid leaking the inode.

Signed-off-by: jiangyiwen <jiangyiwen@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/ioctl.c
fs/ocfs2/suballoc.c