diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-11-22 20:52:12 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-11-22 20:52:12 -0500 |
commit | d6797d14b1640d088652c72508b529a3aea479e3 (patch) | |
tree | 2e608c3e362b94439a2e7503b7d97cb3891bb101 /fs/ext4/ext4_jbd2.h | |
parent | e3bb52ae2bb9573e84c17b8e3560378d13a5c798 (diff) |
ext4: move ext4_forget() to ext4_jbd2.c
The ext4_forget() function better belongs in ext4_jbd2.c. This will
allow us to do some cleanup of the ext4_journal_revoke() and
ext4_journal_forget() functions, as well as giving us better error
reporting since we can report the caller of ext4_forget() when things
go wrong.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_jbd2.h')
-rw-r--r-- | fs/ext4/ext4_jbd2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h index a2865980342f..dc0b34a903eb 100644 --- a/fs/ext4/ext4_jbd2.h +++ b/fs/ext4/ext4_jbd2.h | |||
@@ -139,6 +139,10 @@ int __ext4_journal_forget(const char *where, handle_t *handle, | |||
139 | int __ext4_journal_revoke(const char *where, handle_t *handle, | 139 | int __ext4_journal_revoke(const char *where, handle_t *handle, |
140 | ext4_fsblk_t blocknr, struct buffer_head *bh); | 140 | ext4_fsblk_t blocknr, struct buffer_head *bh); |
141 | 141 | ||
142 | int __ext4_forget(const char *where, handle_t *handle, int is_metadata, | ||
143 | struct inode *inode, struct buffer_head *bh, | ||
144 | ext4_fsblk_t blocknr); | ||
145 | |||
142 | int __ext4_journal_get_create_access(const char *where, | 146 | int __ext4_journal_get_create_access(const char *where, |
143 | handle_t *handle, struct buffer_head *bh); | 147 | handle_t *handle, struct buffer_head *bh); |
144 | 148 | ||
@@ -151,6 +155,9 @@ int __ext4_handle_dirty_metadata(const char *where, handle_t *handle, | |||
151 | __ext4_journal_get_write_access(__func__, (handle), (bh)) | 155 | __ext4_journal_get_write_access(__func__, (handle), (bh)) |
152 | #define ext4_journal_revoke(handle, blocknr, bh) \ | 156 | #define ext4_journal_revoke(handle, blocknr, bh) \ |
153 | __ext4_journal_revoke(__func__, (handle), (blocknr), (bh)) | 157 | __ext4_journal_revoke(__func__, (handle), (blocknr), (bh)) |
158 | #define ext4_forget(handle, is_metadata, inode, bh, block_nr) \ | ||
159 | __ext4_forget(__func__, (handle), (is_metadata), (inode), (bh),\ | ||
160 | (block_nr)) | ||
154 | #define ext4_journal_get_create_access(handle, bh) \ | 161 | #define ext4_journal_get_create_access(handle, bh) \ |
155 | __ext4_journal_get_create_access(__func__, (handle), (bh)) | 162 | __ext4_journal_get_create_access(__func__, (handle), (bh)) |
156 | #define ext4_journal_forget(handle, bh) \ | 163 | #define ext4_journal_forget(handle, bh) \ |