forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] ext4: uninline large functions
Saves nearly 4kbytes on x86. Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Andrew Morton
authored and
Linus Torvalds
committed
Dec 7, 2006
1 parent
3a229b3
commit 8984d13
Showing
3 changed files
with
78 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Interface between ext4 and JBD | ||
*/ | ||
|
||
#include <linux/ext4_jbd2.h> | ||
|
||
int __ext4_journal_get_undo_access(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_get_undo_access(handle, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext4_journal_get_write_access(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_get_write_access(handle, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext4_journal_forget(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_forget(handle, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext4_journal_revoke(const char *where, handle_t *handle, | ||
ext4_fsblk_t blocknr, struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_revoke(handle, blocknr, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext4_journal_get_create_access(const char *where, | ||
handle_t *handle, struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_get_create_access(handle, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext4_journal_dirty_metadata(const char *where, | ||
handle_t *handle, struct buffer_head *bh) | ||
{ | ||
int err = jbd2_journal_dirty_metadata(handle, bh); | ||
if (err) | ||
ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters