diff options
author | Jason Yan <yanaijie@huawei.com> | 2019-03-14 23:51:13 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-03-14 23:51:13 -0400 |
commit | 7cf77140777364d77b2b6e392e7e081a205a08c5 (patch) | |
tree | 78126d6a0edfc47035970f02c85dc7e6f059e94c /fs/ext4/inode.c | |
parent | 1dc1097ff60e4105216da7cd0aa99032b039a994 (diff) | |
download | linux-7cf77140777364d77b2b6e392e7e081a205a08c5.tar.gz linux-7cf77140777364d77b2b6e392e7e081a205a08c5.tar.bz2 linux-7cf77140777364d77b2b6e392e7e081a205a08c5.zip |
ext4: remove useless ext4_pin_inode()
This function is never used from the beginning (and is commented out);
let's remove it.
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index f84cf62fd290..e5014a6f76e2 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -6082,36 +6082,6 @@ out: return; } -#if 0 -/* - * Bind an inode's backing buffer_head into this transaction, to prevent - * it from being flushed to disk early. Unlike - * ext4_reserve_inode_write, this leaves behind no bh reference and - * returns no iloc structure, so the caller needs to repeat the iloc - * lookup to mark the inode dirty later. - */ -static int ext4_pin_inode(handle_t *handle, struct inode *inode) -{ - struct ext4_iloc iloc; - - int err = 0; - if (handle) { - err = ext4_get_inode_loc(inode, &iloc); - if (!err) { - BUFFER_TRACE(iloc.bh, "get_write_access"); - err = jbd2_journal_get_write_access(handle, iloc.bh); - if (!err) - err = ext4_handle_dirty_metadata(handle, - NULL, - iloc.bh); - brelse(iloc.bh); - } - } - ext4_std_error(inode->i_sb, err); - return err; -} -#endif - int ext4_change_inode_journal_flag(struct inode *inode, int val) { journal_t *journal; |