summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2013-09-16 14:52:03 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-17 01:17:24 +0200
commitc5bf8fef52ce184bd48b76d1881df07b43f5091b (patch)
tree08110dd310ab1ffdfbfb4628cc13a78649d244f0 /fs/gfs2/inode.c
parentcifs: fix filp leak in cifs_atomic_open() (diff)
downloadlinux-c5bf8fef52ce184bd48b76d1881df07b43f5091b.tar.xz
linux-c5bf8fef52ce184bd48b76d1881df07b43f5091b.zip
gfs2: set FILE_CREATED
In gfs2_create_inode() set FILE_CREATED in *opened. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Steven Whitehouse <swhiteho@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/gfs2/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 64915eeae5a7..ced3257f06e8 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -694,8 +694,10 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
mark_inode_dirty(inode);
d_instantiate(dentry, inode);
- if (file)
+ if (file) {
+ *opened |= FILE_CREATED;
error = finish_open(file, dentry, gfs2_open_common, opened);
+ }
gfs2_glock_dq_uninit(ghs);
gfs2_glock_dq_uninit(ghs + 1);
return error;