mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
@ 2018-09-17  7:12 Chao Yu
  2018-09-20 14:18 ` Chao Yu
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Yu @ 2018-09-17  7:12 UTC (permalink / raw)
  To: Dave Kleikamp, open list:JFS FILESYSTEM, open list; +Cc: chao, Chao Yu

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-20 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17  7:12 [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() Chao Yu
2018-09-20 14:18 ` Chao Yu
2018-09-20 14:24   ` Dave Kleikamp
2018-09-20 14:32     ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®