forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] ext3: 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
0723305
commit 3a229b3
Showing
3 changed files
with
77 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 ext3 and JBD | ||
*/ | ||
|
||
#include <linux/ext3_jbd.h> | ||
|
||
int __ext3_journal_get_undo_access(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = journal_get_undo_access(handle, bh); | ||
if (err) | ||
ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext3_journal_get_write_access(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = journal_get_write_access(handle, bh); | ||
if (err) | ||
ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext3_journal_forget(const char *where, handle_t *handle, | ||
struct buffer_head *bh) | ||
{ | ||
int err = journal_forget(handle, bh); | ||
if (err) | ||
ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext3_journal_revoke(const char *where, handle_t *handle, | ||
unsigned long blocknr, struct buffer_head *bh) | ||
{ | ||
int err = journal_revoke(handle, blocknr, bh); | ||
if (err) | ||
ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext3_journal_get_create_access(const char *where, | ||
handle_t *handle, struct buffer_head *bh) | ||
{ | ||
int err = journal_get_create_access(handle, bh); | ||
if (err) | ||
ext3_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | ||
return err; | ||
} | ||
|
||
int __ext3_journal_dirty_metadata(const char *where, | ||
handle_t *handle, struct buffer_head *bh) | ||
{ | ||
int err = journal_dirty_metadata(handle, bh); | ||
if (err) | ||
ext3_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