f2fs: remove debufs dir if debugfs_create_file() failed
authorYounger Liu <liuyiyang@hisense.com>
Tue, 3 Dec 2013 12:11:46 +0000 (20:11 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:05 +0000 (10:18 +0900)
commitc524723ebf5794083819c25320802452fe06da18
tree8ba48f96190478e6aea1946effbf5d10b09b72e1
parent9af0ff1c527ebb267d9a3b6aa8af93c5843d4390
f2fs: remove debufs dir if debugfs_create_file() failed

When debugfs_create_file() failed in f2fs_create_root_stats(),
debugfs_root should be remove.

Signed-off-by: Younger Liu <liuyiyang@hisense.com>
Cc: Younger Liu <younger.liucn@gmail.com>
Cc: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/debug.c