udf: avoid unneeded up_write when fail to add entry in ->symlink
authorChao Yu <chao2.yu@samsung.com>
Sat, 9 Aug 2014 01:49:31 +0000 (09:49 +0800)
committerJan Kara <jack@suse.cz>
Tue, 19 Aug 2014 16:29:30 +0000 (18:29 +0200)
commit85cd083b498572fb9fa575cce3ed910c8ee84294
tree2f4d62cbbefd31388b5af4b576a02f0b71e91142
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
udf: avoid unneeded up_write when fail to add entry in ->symlink

We have released the ->i_data_sem before invoking udf_add_entry(),
so in following error path, we should not release this lock again.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/namei.c