From: Richard Weinberger <richard@nod.at>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-mtd@lists.infradead.org, dedekind1@gmail.com,
adrian.hunter@intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ubifs: Implement O_TMPFILE
Date: Tue, 23 Feb 2016 22:15:16 +0100 [thread overview]
Message-ID: <56CCCBE4.1040809@nod.at> (raw)
In-Reply-To: <20160223204510.GA16961@amd>
Am 23.02.2016 um 21:45 schrieb Pavel Machek:
> Hi!
>
>> + ui = ubifs_inode(inode);
>> +
>> + err = ubifs_init_security(dir, inode, &dentry->d_name);
>> + if (err)
>> + goto out_inode;
>> +
>> + mutex_lock(&ui->ui_mutex);
>> + insert_inode_hash(inode);
>> + d_tmpfile(dentry, inode);
>> + ubifs_assert(ui->dirty);
>> + instantiated = 1;
>> + mutex_unlock(&ui->ui_mutex);
>> +
>> + mutex_lock(&dir_ui->ui_mutex);
>> + err = ubifs_jnl_update(c, dir, &dentry->d_name, inode, 1, 0);
>> + if (err)
>> + goto out_cancel;
>> + mutex_unlock(&dir_ui->ui_mutex);
>
> Move the if () below unlock, and make it goto out_inode?
Yes. That's better. :)
Thanks,
//richard
prev parent reply other threads:[~2016-02-23 21:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-21 9:46 Richard Weinberger
2016-02-23 20:45 ` Pavel Machek
2016-02-23 21:15 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56CCCBE4.1040809@nod.at \
--to=richard@nod.at \
--cc=adrian.hunter@intel.com \
--cc=dedekind1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome