diff options
| author | Curt Wohlgemuth <curtw@google.com> | 2009-10-02 21:08:32 -0400 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2009-10-02 21:08:32 -0400 |
| commit | 74072d0a63553720dd3c70a8b8e9407eb2027dbe (patch) | |
| tree | 9895fcb17d44980a82b4daa7688c17da082b4d88 | |
| parent | f0e2dfa7f3e1361ca8fc91c25e67fc4e92613cc9 (diff) | |
ext4: Fix build warning in ext4_dirty_inode()
This fixes the following warning:
fs/ext4/inode.c: In function 'ext4_dirty_inode':
fs/ext4/inode.c:5615: warning: unused variable 'current_handle'
We remove the jbd_debug() statement which does use current_handle, as
it's not terribly important in the grand scheme of things.
Thanks to Stephen Rothwell for pointing this out.
Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
| -rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 6e65d0e25ed3..635f8ec6ebc6 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
| @@ -5612,14 +5612,12 @@ int ext4_mark_inode_dirty(handle_t *handle, struct inode *inode) | |||
| 5612 | */ | 5612 | */ |
| 5613 | void ext4_dirty_inode(struct inode *inode) | 5613 | void ext4_dirty_inode(struct inode *inode) |
| 5614 | { | 5614 | { |
| 5615 | handle_t *current_handle = ext4_journal_current_handle(); | ||
| 5616 | handle_t *handle; | 5615 | handle_t *handle; |
| 5617 | 5616 | ||
| 5618 | handle = ext4_journal_start(inode, 2); | 5617 | handle = ext4_journal_start(inode, 2); |
| 5619 | if (IS_ERR(handle)) | 5618 | if (IS_ERR(handle)) |
| 5620 | goto out; | 5619 | goto out; |
| 5621 | 5620 | ||
| 5622 | jbd_debug(5, "marking dirty. outer handle=%p\n", current_handle); | ||
| 5623 | ext4_mark_inode_dirty(handle, inode); | 5621 | ext4_mark_inode_dirty(handle, inode); |
| 5624 | 5622 | ||
| 5625 | ext4_journal_stop(handle); | 5623 | ext4_journal_stop(handle); |
