ocfs2: remove unused function ocfs2_prepare_inode_for_refcount()
Subsystems (2)
[email protected]
maintainerPATCH 1/1 ocfs2: remove unused function ocfs2_prepare_inode_for_refcount()
From: Shuning Zhang <[email protected]>
Subject: ocfs2: remove unused function ocfs2_prepare_inode_for_refcount()
ocfs2_prepare_inode_for_refcount() is no longer being used. Remove this function.
Signed-off-by Shuning Zhang <[email protected]>
Reviewed-by Junxiao Bi <[email protected]>
Reviewed-by Gang He <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Changwei Ge <[email protected]>
Cc Jun Piao <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/file.c | 27 --------------------------- 1 file changed, 27 deletions(-)
fs/ocfs2/file.c renamed from fs/ocfs2/file.c~ocfs2-remove-unused-function-ocfs2_prepare_inode_for_refcount +0 -27
@@ -2098,33 +2098,6 @@ static int ocfs2_is_io_unaligned(structreturn 0 ; } -static int ocfs2_prepare_inode_for_refcount (struct inode *inode, -struct file *file, -loff_t pos,size_t count, -int *meta_level) -{ -int ret; -struct buffer_head *di_bh =NULL ; -u32 cpos = pos >>OCFS2_SB (inode->i_sb)->s_clustersize_bits; -u32 clusters = -ocfs2_clusters_for_bytes (inode->i_sb, pos + count) - cpos; - - ret =ocfs2_inode_lock (inode, &di_bh,1 ); -if (ret) { -mlog_errno (ret); - goto out; - } - - *meta_level =1 ; - - ret =ocfs2_refcount_cow (inode, di_bh, cpos, clusters,UINT_MAX ); -if (ret) -mlog_errno (ret); -out: -brelse (di_bh); -return ret; -} - static int ocfs2_inode_lock_for_extent_tree(struct inode *inode, struct buffer_head **di_bh, int meta_level,
_