jfs: remove redundant dquot_initialize() in jfs_evict_inode()
PATCH 1/1 jfs: remove redundant dquot_initialize() in jfs_evict_inode()
We don't need to call dquot_initialize() twice in jfs_evict_inode(), remove one of them for cleanup.
Signed-off-by Chao Yu <[email protected]>
--- fs/jfs/inode.c | 1 - 1 file changed, 1 deletion(-)
fs/jfs/inode.c +0 -1
@@ -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 {
Signature · 1 line
2.18.0.rc1
Ping,
Any comments?
Quoted 21 lines · Chao Yu
We don't need to call
dquot_initialize()twice injfs_evict_inode(), remove one of them for cleanup.Signed-off-by Chao Yu <[email protected]>--- fs/jfs/inode.c | 1 - 1 file changed, 1 deletion(-)fs/jfs/inode.c +0
-1@@ -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 {
Quoted 3 lines · Chao Yu
Ping,
Any comments?
Sorry for putting it off. It looks good to me. I'll push it upstream.
Thanks,
Dave
Quoted 23 lines · Chao Yu
Quoted 21 lines
We don't need to call
dquot_initialize()twice injfs_evict_inode(), remove one of them for cleanup.Signed-off-by Chao Yu <[email protected]>--- fs/jfs/inode.c | 1 - 1 file changed, 1 deletion(-)fs/jfs/inode.c +0
-1@@ -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 {
Quoted 6 lines · Dave Kleikamp
Quoted 3 lines · Chao Yu
Ping,
Any comments?
Sorry for putting it off. It looks good to me. I'll push it upstream.
Thanks for your review. ;)
Thanks,
Quoted 27 lines
Thanks,
DaveQuoted 23 lines · Chao Yu
Quoted 21 lines
We don't need to call
dquot_initialize()twice injfs_evict_inode(), remove one of them for cleanup.Signed-off-by Chao Yu <[email protected]>--- fs/jfs/inode.c | 1 - 1 file changed, 1 deletion(-)fs/jfs/inode.c +0
-1@@ -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 {