From: Chao Yu <yuchao0@huawei.com>
To: Dave Kleikamp <shaggy@kernel.org>,
"open list:JFS FILESYSTEM" <jfs-discussion@lists.sourceforge.net>,
open list <linux-kernel@vger.kernel.org>
Cc: <chao@kernel.org>, Chao Yu <yuchao0@huawei.com>
Subject: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
Date: Mon, 17 Sep 2018 15:12:21 +0800 [thread overview]
Message-ID: <20180917071221.13187-1-yuchao0@huawei.com> (raw)
We don't need to call dquot_initialize() twice in jfs_evict_inode(),
remove one of them for cleanup.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
fs/jfs/inode.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
index 054cc761b426..805ae9e8944a 100644
--- a/fs/jfs/inode.c
+++ b/fs/jfs/inode.c
@@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
/*
* Free the inode from the quota allocation.
*/
- dquot_initialize(inode);
dquot_free_inode(inode);
}
} else {
--
2.18.0.rc1
next reply other threads:[~2018-09-17 7:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-17 7:12 Chao Yu [this message]
2018-09-20 14:18 ` [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() Chao Yu
2018-09-20 14:24 ` Dave Kleikamp
2018-09-20 14:32 ` Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180917071221.13187-1-yuchao0@huawei.com \
--to=yuchao0@huawei.com \
--cc=chao@kernel.org \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=shaggy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).