Skip to contentSkip to conversation

jfs: remove redundant dquot_initialize() in jfs_evict_inode()

PATCH In review Chao Yu 3 participants 4 messages Sep 17, 2018 – Sep 20, 2018 JFS filesystem

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

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.

---
 fs/jfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/inode.c +0 -1
index 054cc761b426..805ae9e8944a 100644
@@ -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
#1 lore raw

Ping,

Any comments?

Quoted 21 lines · Chao Yu

We don't need to call dquot_initialize() twice in jfs_evict_inode(), remove one of them for cleanup.

---
 fs/jfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/inode.c +0 -1
index 054cc761b426..805ae9e8944a 100644
@@ -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 lore raw
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 in jfs_evict_inode(), remove one of them for cleanup.

---
 fs/jfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/inode.c +0 -1
index 054cc761b426..805ae9e8944a 100644
@@ -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 {
#3 lore raw
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,
Dave

Quoted 23 lines · Chao Yu
Quoted 21 lines

We don't need to call dquot_initialize() twice in jfs_evict_inode(), remove one of them for cleanup.

---
 fs/jfs/inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/jfs/inode.c +0 -1
index 054cc761b426..805ae9e8944a 100644
@@ -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 {