linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4: clean up ext4_dirty_inode()
@ 2009-09-17 21:55 Curt Wohlgemuth
  2009-09-23 14:37 ` Curt Wohlgemuth
  0 siblings, 1 reply; 4+ messages in thread
From: Curt Wohlgemuth @ 2009-09-17 21:55 UTC (permalink / raw)
  To: ext4 development

This patch cleans up ext4_dirty_inode(); it's attempt to detect non-matching
transactions can never be executed.

	Signed-off-by: Curt Wohlgemuth <curtw@google.com>
---

If 'current_handle' is non-NULL, then ext4_start_journal() will return the
same handle with it's h_ref count incremented, and the h_transaction
pointers will be the same.

diff -uprN orig/fs/ext4/inode.c new/fs/ext4/inode.c
--- orig/fs/ext4/inode.c	2009-09-17 13:59:48.000000000 -0700
+++ new/fs/ext4/inode.c	2009-09-17 14:14:43.000000000 -0700
@@ -5379,24 +5379,13 @@ void ext4_dirty_inode(struct inode *inod
 	handle_t *current_handle = ext4_journal_current_handle();
 	handle_t *handle;

-	if (!ext4_handle_valid(current_handle)) {
-		ext4_mark_inode_dirty(current_handle, inode);
-		return;
-	}

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

end of thread, other threads:[~2009-10-01  5:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 21:55 [PATCH 1/2] ext4: clean up ext4_dirty_inode() Curt Wohlgemuth
2009-09-23 14:37 ` Curt Wohlgemuth
2009-09-23 15:32   ` Theodore Tso
2009-10-01  5:22   ` Theodore Tso

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).