From: akpm@linux-foundation.org
To: akpm@linux-foundation.org, gechangwei@live.cn, ghe@suse.com,
jiangqi903@gmail.com, jlbec@evilplan.org, junxiao.bi@oracle.com,
linux-mm@kvack.org, mark@fasheh.com, mm-commits@vger.kernel.org,
piaojun@huawei.com, sunny.s.zhang@oracle.com,
torvalds@linux-foundation.org
Subject: [patch 1/1] ocfs2: remove unused function ocfs2_prepare_inode_for_refcount()
Date: Wed, 06 Nov 2019 10:10:18 -0800 [thread overview]
Message-ID: <20191106181018.QZETEOUrW%akpm@linux-foundation.org> (raw)
From: Shuning Zhang <sunny.s.zhang@oracle.com>
Subject: ocfs2: remove unused function ocfs2_prepare_inode_for_refcount()
ocfs2_prepare_inode_for_refcount() is no longer being used. Remove this
function.
Link: http://lkml.kernel.org/r/1568772175-2906-3-git-send-email-sunny.s.zhang@oracle.com
Signed-off-by: Shuning Zhang <sunny.s.zhang@oracle.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Gang He <ghe@suse.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ocfs2/file.c | 27 ---------------------------
1 file changed, 27 deletions(-)
--- a/fs/ocfs2/file.c~ocfs2-remove-unused-function-ocfs2_prepare_inode_for_refcount
+++ a/fs/ocfs2/file.c
@@ -2098,33 +2098,6 @@ static int ocfs2_is_io_unaligned(struct
return 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,
_
reply other threads:[~2019-11-06 18:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191106181018.QZETEOUrW%akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=gechangwei@live.cn \
--cc=ghe@suse.com \
--cc=jiangqi903@gmail.com \
--cc=jlbec@evilplan.org \
--cc=junxiao.bi@oracle.com \
--cc=linux-mm@kvack.org \
--cc=mark@fasheh.com \
--cc=mm-commits@vger.kernel.org \
--cc=piaojun@huawei.com \
--cc=sunny.s.zhang@oracle.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox