diff options
author | Mark Fasheh <mfasheh@suse.com> | 2010-04-23 20:42:22 +0200 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2010-04-23 20:42:22 +0200 |
commit | a9743fcdc0eb43d028b71267438076e1b0112ba0 (patch) | |
tree | c893396ac248e5f570a774b5b375d94b2858ae34 /drivers/media/radio/si470x/radio-si470x-i2c.c | |
parent | ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_mknod error path (diff) | |
download | linux-a9743fcdc0eb43d028b71267438076e1b0112ba0.tar.xz linux-a9743fcdc0eb43d028b71267438076e1b0112ba0.zip |
ocfs2: Add directory entry later in ocfs2_symlink() and ocfs2_mknod()
If we get a failure during creation of an inode we'll allow the orphan code
to remove the inode, which is correct. However, we need to ensure that we
don't get any errors after the call to ocfs2_add_entry(), otherwise we could
leave a dangling directory reference. The solution is simple - in both
cases, all I had to do was move ocfs2_dentry_attach_lock() above the
ocfs2_add_entry() call.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x-i2c.c')
0 files changed, 0 insertions, 0 deletions