Commit ec7d879c authored by Al Viro's avatar Al Viro Committed by Steven Whitehouse
Browse files

GFS2: gfs2_atomic_open(): simplify the use of finish_no_open()

In ->atomic_open(inode, dentry, file, opened) calling finish_no_open(file, NULL)
is equivalent to dget(dentry); return finish_no_open(file, dentry);

No need to open-code that...
Signed-off-by: default avatarAl Viro <>
Signed-off-by: default avatarSteven Whitehouse <>
parent 9265f1d0
......@@ -1245,11 +1245,8 @@ static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry,
if (d != NULL)
dentry = d;
if (dentry->d_inode) {
if (!(*opened & FILE_OPENED)) {
if (d == NULL)
return finish_no_open(file, dentry);
if (!(*opened & FILE_OPENED))
return finish_no_open(file, d);
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment