diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-05-25 11:51:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-05-25 11:51:00 -0400 |
commit | 759d427aa5a9d88a81afd11817cdeb40aea85234 (patch) | |
tree | 8e8316ed77c9ee21cce9058d5b477c0e7cf4462b | |
parent | 0f7ee7c17241915fdaff49d1a36f5aafd80a7dce (diff) |
ext4: remove unused function __ext4_write_dirty_metadata
The __ext4_write_dirty_metadata() function was introduced by commit
0390131b, "ext4: Allow ext4 to run without a journal", but nothing
ever used the function, either then or since. So let's remove it and
save a bit of space.
Cc: Frank Mayhar <fmayhar@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | fs/ext4/inode.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index dadd3f995db5..14c00fff3713 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -4790,25 +4790,6 @@ int ext4_write_inode(struct inode *inode, int wait) | |||
4790 | return ext4_force_commit(inode->i_sb); | 4790 | return ext4_force_commit(inode->i_sb); |
4791 | } | 4791 | } |
4792 | 4792 | ||
4793 | int __ext4_write_dirty_metadata(struct inode *inode, struct buffer_head *bh) | ||
4794 | { | ||
4795 | int err = 0; | ||
4796 | |||
4797 | mark_buffer_dirty(bh); | ||
4798 | if (inode && inode_needs_sync(inode)) { | ||
4799 | sync_dirty_buffer(bh); | ||
4800 | if (buffer_req(bh) && !buffer_uptodate(bh)) { | ||
4801 | ext4_error(inode->i_sb, __func__, | ||
4802 | "IO error syncing inode, " | ||
4803 | "inode=%lu, block=%llu", | ||
4804 | inode->i_ino, | ||
4805 | (unsigned long long)bh->b_blocknr); | ||
4806 | err = -EIO; | ||
4807 | } | ||
4808 | } | ||
4809 | return err; | ||
4810 | } | ||
4811 | |||
4812 | /* | 4793 | /* |
4813 | * ext4_setattr() | 4794 | * ext4_setattr() |
4814 | * | 4795 | * |