Skip to contentSkip to conversation

ext3: Remove misplaced BUFFER_TRACE() in ext3_truncate()

PATCH In review Namhyung Kim 3 participants 4 messages Oct 15, 2010 – Oct 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext3: Remove misplaced BUFFER_TRACE() in ext3_truncate()

---
 fs/ext3/inode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ext3/inode.c +0 -1
index 5e0faf4..90a9c3d 100644
@@ -2530,7 +2530,6 @@ void ext3_truncate(struct inode *inode)
 			 */
 		} else {
 			/* Shared branch grows from an indirect block */
-			BUFFER_TRACE(partial->bh, "get_write_access");
 			ext3_free_branches(handle, inode, partial->bh,
 					partial->p,
 					partial->p+1, (chain+n-1) - partial);
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 1 line · Namhyung Kim

Thanks. Merged.

Honza

Quoted 19 lines
---
 fs/ext3/inode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ext3/inode.c +0 -1
index 5e0faf4..90a9c3d 100644
@@ -2530,7 +2530,6 @@ void ext3_truncate(struct inode *inode)
 			 */
 		} else {
 			/* Shared branch grows from an indirect block */
-			BUFFER_TRACE(partial->bh, "get_write_access");
 			ext3_free_branches(handle, inode, partial->bh,
 					partial->p,
 					partial->p+1, (chain+n-1) - partial);
Signature · 1 line
1.7.0.4
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#2 lore raw
In reply to Namhyung Kim
Quoted 10 lines · Namhyung Kim
---
 fs/ext3/inode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ext3/inode.c +0 -0
index 5e0faf4..90a9c3d 100644

fs/ext3/inode.c void ext3_truncate(struct inode *inode) · line 2535

Quoted 7 lines
fs/ext3/inode.c +0 -1
@@ -2530,7 +2530,6 @@ void ext3_truncate(struct inode *inode)
 			 */
 		} else {
 			/* Shared branch grows from an indirect block */
-			BUFFER_TRACE(partial->bh, "get_write_access");
 			ext3_free_branches(handle, inode, partial->bh,
 					partial->p,
 					partial->p+1, (chain+n-1) - partial);

As long as you're doing these cleanups, you may as well eyeball ext4 to see whether the same issues exist; in the case above, it does, and the exact same patch (modulo ext3/ext4 changes) applies.

No real point in getting ext3 fixed up and leaving ext4 behind...

Thanks,
-Eric

#3 lore raw

2010-10-18 (월), 09:22 -0500, Eric Sandeen:

Quoted 6 lines

As long as you're doing these cleanups, you may as well eyeball ext4 to see whether the same issues exist; in the case above, it does, and the exact same patch (modulo ext3/ext4 changes) applies.

No real point in getting ext3 fixed up and leaving ext4 behind...

My plan was sending those patches in a batch after reading ext3 at all. But it seems to take some time, so now I think that it'd be better to send them in a small series. I'll prepare it for ext4 (and ext2 too if you want, Jan) soon. Thanks.

Signature · 8 lines
Regards,
Namhyung Kim


--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html