diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-05-01 10:53:28 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-05-01 10:53:28 -0400 |
commit | 590fe34c47cb5c2d836ac76fabc5f160bf31a3f1 (patch) | |
tree | 9a5d9a855629b916597582796391564891acf9a4 /fs/jffs2/write.c | |
parent | 4e571aba7bb25a3a069a7b88c0f63fe5a14c05c6 (diff) |
[JFFS2] Quiet lockdep false positive.
Don't hold f->sem while calling into jffs2_do_create(). It makes lockdep
unhappy, and we don't really need it -- the _reason_ it's a false
positive is because nobody else can see this inode yet and so nobody
will be trying to lock it anyway.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/write.c')
-rw-r--r-- | fs/jffs2/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs2/write.c b/fs/jffs2/write.c index 665fce9797d3..87891bdd7915 100644 --- a/fs/jffs2/write.c +++ b/fs/jffs2/write.c | |||
@@ -438,10 +438,10 @@ int jffs2_do_create(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, str | |||
438 | ret = jffs2_reserve_space(c, sizeof(*ri), &alloclen, ALLOC_NORMAL, | 438 | ret = jffs2_reserve_space(c, sizeof(*ri), &alloclen, ALLOC_NORMAL, |
439 | JFFS2_SUMMARY_INODE_SIZE); | 439 | JFFS2_SUMMARY_INODE_SIZE); |
440 | D1(printk(KERN_DEBUG "jffs2_do_create(): reserved 0x%x bytes\n", alloclen)); | 440 | D1(printk(KERN_DEBUG "jffs2_do_create(): reserved 0x%x bytes\n", alloclen)); |
441 | if (ret) { | 441 | if (ret) |
442 | mutex_unlock(&f->sem); | ||
443 | return ret; | 442 | return ret; |
444 | } | 443 | |
444 | mutex_lock(&f->sem); | ||
445 | 445 | ||
446 | ri->data_crc = cpu_to_je32(0); | 446 | ri->data_crc = cpu_to_je32(0); |
447 | ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); | 447 | ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); |