Skip to content

Commit

Permalink
ext4: remove unused function __ext4_write_dirty_metadata
Browse files Browse the repository at this point in the history
The __ext4_write_dirty_metadata() function was introduced by commit
0390131, "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>
  • Loading branch information
Theodore Ts'o committed May 25, 2009
1 parent 0f7ee7c commit 759d427
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4790,25 +4790,6 @@ int ext4_write_inode(struct inode *inode, int wait)
return ext4_force_commit(inode->i_sb);
}

int __ext4_write_dirty_metadata(struct inode *inode, struct buffer_head *bh)
{
int err = 0;

mark_buffer_dirty(bh);
if (inode && inode_needs_sync(inode)) {
sync_dirty_buffer(bh);
if (buffer_req(bh) && !buffer_uptodate(bh)) {
ext4_error(inode->i_sb, __func__,
"IO error syncing inode, "
"inode=%lu, block=%llu",
inode->i_ino,
(unsigned long long)bh->b_blocknr);
err = -EIO;
}
}
return err;
}

/*
* ext4_setattr()
*
Expand Down

0 comments on commit 759d427

Please sign in to comment.