Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1209855imm; Fri, 8 Jun 2018 11:54:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0T+WILpk/hBLNRKJ+jwftzSpWT5uMkKkWwKkT5BE7LPGkaccdyHUB5rbT5e/+tEBSgMjP X-Received: by 2002:aa7:860e:: with SMTP id p14-v6mr7176687pfn.155.1528484047197; Fri, 08 Jun 2018 11:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528484047; cv=none; d=google.com; s=arc-20160816; b=GFbOQNQhOfs3rz2d6zrLkAzc6FJeDi9uwVpOjx2AnIn/0z4heb9lAA8B9ADrH3ft5L HkM09zuEz3MHFxw06Sk8Ywnp52eoBqpYyzuXlxUCDoTW3twRZ0R0khTzExnlq4Xje3qo DHRhynu8kG3g/ew2VaWAlymMBTxZXngQ06QR7nz1Up0GKw0+oSim0raUud4ZGps/b88L QnY1vmvvl/y5ZsK3hlKRxWOAyv2Eocp00zLS+mzgjqmbGM7KsyacVDSWyReyJ/qUriH0 hDjIaic6nlkfkCKqABlOn/pL6wpOj5fSIPZdjmrcQfd2oqDpvbj4xxQi3rhlSMrzclFO ww5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=gkfQauMlubVYcTlVA4weu1/IfMNJw2MXkQkPjQY7g9g=; b=SvJqN9c5Bglw1oAYWr9lkQEl5Ree8+G0wOqUy93/eGXx+fMZQf5Ss9J8jydIxEuVub /j1We0gD1zHClgNZM16Ih4A5YOuQUDUWSWPYvuQ3EEJVbwgAV4DjHV20dzmoxwVQbqwV aEvL+swXreTp66/dfcJbGr/cFjRnmWhmmyUw8Yb6oFfX1k/g3cLFDVTgDfna+y69lwQp YHBB03SbjY/HYywCS6hRIupMv0WLNSKEfIfIFmANlNHtUKA2zUYXdQd2Qp4DlnB0zm39 MsZpWY4Z9mSBcXyOZIkieaQgda8WDeQqFk0mXjGtMQUs0eqQbGg+TwF6ohlo/NsBK7rp ToKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v62-v6si13057697pgb.3.2018.06.08.11.53.52; Fri, 08 Jun 2018 11:54:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbeFHSvl (ORCPT + 99 others); Fri, 8 Jun 2018 14:51:41 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53822 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775AbeFHSuV (ORCPT ); Fri, 8 Jun 2018 14:50:21 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fRMSq-0006OH-Hv; Fri, 08 Jun 2018 18:50:20 +0000 From: Al Viro To: Linus Torvalds Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/13] gfs2_create_inode() doesn't need 'opened' anymore Date: Fri, 8 Jun 2018 19:50:17 +0100 Message-Id: <20180608185019.24472-11-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180608185019.24472-1-viro@ZenIV.linux.org.uk> References: <20180608184842.GD30522@ZenIV.linux.org.uk> <20180608185019.24472-1-viro@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- fs/gfs2/inode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 146ef177982e..9cb09f63d831 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -580,7 +580,7 @@ static int gfs2_initxattrs(struct inode *inode, const struct xattr *xattr_array, static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, struct file *file, umode_t mode, dev_t dev, const char *symname, - unsigned int size, int excl, int *opened) + unsigned int size, int excl) { const struct qstr *name = &dentry->d_name; struct posix_acl *default_acl, *acl; @@ -822,7 +822,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, static int gfs2_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) { - return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl, NULL); + return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl); } /** @@ -1188,7 +1188,7 @@ static int gfs2_symlink(struct inode *dir, struct dentry *dentry, if (size >= gfs2_max_stuffed_size(GFS2_I(dir))) return -ENAMETOOLONG; - return gfs2_create_inode(dir, dentry, NULL, S_IFLNK | S_IRWXUGO, 0, symname, size, 0, NULL); + return gfs2_create_inode(dir, dentry, NULL, S_IFLNK | S_IRWXUGO, 0, symname, size, 0); } /** @@ -1203,7 +1203,7 @@ static int gfs2_symlink(struct inode *dir, struct dentry *dentry, static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) { unsigned dsize = gfs2_max_stuffed_size(GFS2_I(dir)); - return gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0, NULL); + return gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0); } /** @@ -1218,7 +1218,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) static int gfs2_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) { - return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0, NULL); + return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0); } /** @@ -1261,7 +1261,7 @@ static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry, if (!(flags & O_CREAT)) return -ENOENT; - return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl, opened); + return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl); } /* -- 2.11.0