aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-11-18 21:10:23 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 12:57:21 -0500
commit845409b49bcc8fe2ad9f1a948cc4f54c301b742d (patch)
tree511718e15cfec9c0809ba838f9e48dccd5772baf /fs/gfs2
parent81295ce635a83f052497656348e9edc794b4cae6 (diff)
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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/inode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index ce0cf9ad5f97..6e2917433170 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1249,11 +1249,8 @@ static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry,
1249 if (d != NULL) 1249 if (d != NULL)
1250 dentry = d; 1250 dentry = d;
1251 if (dentry->d_inode) { 1251 if (dentry->d_inode) {
1252 if (!(*opened & FILE_OPENED)) { 1252 if (!(*opened & FILE_OPENED))
1253 if (d == NULL) 1253 return finish_no_open(file, d);
1254 dget(dentry);
1255 return finish_no_open(file, dentry);
1256 }
1257 dput(d); 1254 dput(d);
1258 return 0; 1255 return 0;
1259 } 1256 }