diff options
author | Theodore Ts'o <tytso@mit.edu> | 2007-09-15 14:10:47 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-02-18 15:27:04 -0500 |
commit | e3df15abdb288c3519000c639ed40429a82b63cd (patch) | |
tree | 1d06fa7b49ce01a03521d8f752616d88fa2b32fb /e2fsck/e2fsck.h | |
parent | 4ce3b77480496a20cf380bd18a8ae4a414b7d4a0 (diff) | |
download | e2fsprogs-e3df15abdb288c3519000c639ed40429a82b63cd.tar.gz |
e2fsck: factor out code to clear an inode into e2fsck_clear_inode()
Factor out code to clear a bogus inode and update e2fsck's internal
data structures accordingly into a common routine,
e2fsck_clear_inode(). This saves about 200 bytes in the compiled x86
e2fsck executable, and makes the code more maintainable in the
long-term.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/e2fsck.h')
-rw-r--r-- | e2fsck/e2fsck.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/e2fsck.h b/e2fsck/e2fsck.h index 9ccffd89..48fb65eb 100644 --- a/e2fsck/e2fsck.h +++ b/e2fsck/e2fsck.h @@ -431,6 +431,9 @@ extern int e2fsck_pass1_check_device_inode(ext2_filsys fs, struct ext2_inode *inode); extern int e2fsck_pass1_check_symlink(ext2_filsys fs, struct ext2_inode *inode, char *buf); +extern void e2fsck_clear_inode(e2fsck_t ctx, ext2_ino_t ino, + struct ext2_inode *inode, int restart_flag, + const char *source); /* pass2.c */ extern int e2fsck_process_bad_inode(e2fsck_t ctx, ext2_ino_t dir, |