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>
This commit is contained in:
parent
dfb1d61b0e
commit
c5bf8fef52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue