mirror of https://gitee.com/openkylin/linux.git
xfs: remove the unused ->data_first_entry_p method
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
4501ed2a3a
commit
c81484e2b9
|
@ -131,16 +131,6 @@ xfs_dir2_data_dotdot_entry_p(
|
|||
XFS_DIR2_DATA_ENTSIZE(1));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_entry *
|
||||
xfs_dir2_data_first_entry_p(
|
||||
struct xfs_dir2_data_hdr *hdr)
|
||||
{
|
||||
return (struct xfs_dir2_data_entry *)
|
||||
((char *)hdr + sizeof(struct xfs_dir2_data_hdr) +
|
||||
XFS_DIR2_DATA_ENTSIZE(1) +
|
||||
XFS_DIR2_DATA_ENTSIZE(2));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_entry *
|
||||
xfs_dir2_ftype_data_dotdot_entry_p(
|
||||
struct xfs_dir2_data_hdr *hdr)
|
||||
|
@ -150,16 +140,6 @@ xfs_dir2_ftype_data_dotdot_entry_p(
|
|||
XFS_DIR3_DATA_ENTSIZE(1));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_entry *
|
||||
xfs_dir2_ftype_data_first_entry_p(
|
||||
struct xfs_dir2_data_hdr *hdr)
|
||||
{
|
||||
return (struct xfs_dir2_data_entry *)
|
||||
((char *)hdr + sizeof(struct xfs_dir2_data_hdr) +
|
||||
XFS_DIR3_DATA_ENTSIZE(1) +
|
||||
XFS_DIR3_DATA_ENTSIZE(2));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_entry *
|
||||
xfs_dir3_data_dot_entry_p(
|
||||
struct xfs_dir2_data_hdr *hdr)
|
||||
|
@ -177,16 +157,6 @@ xfs_dir3_data_dotdot_entry_p(
|
|||
XFS_DIR3_DATA_ENTSIZE(1));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_entry *
|
||||
xfs_dir3_data_first_entry_p(
|
||||
struct xfs_dir2_data_hdr *hdr)
|
||||
{
|
||||
return (struct xfs_dir2_data_entry *)
|
||||
((char *)hdr + sizeof(struct xfs_dir3_data_hdr) +
|
||||
XFS_DIR3_DATA_ENTSIZE(1) +
|
||||
XFS_DIR3_DATA_ENTSIZE(2));
|
||||
}
|
||||
|
||||
static struct xfs_dir2_data_free *
|
||||
xfs_dir2_data_bestfree_p(struct xfs_dir2_data_hdr *hdr)
|
||||
{
|
||||
|
@ -244,7 +214,6 @@ static const struct xfs_dir_ops xfs_dir2_ops = {
|
|||
|
||||
.data_dot_entry_p = xfs_dir2_data_dot_entry_p,
|
||||
.data_dotdot_entry_p = xfs_dir2_data_dotdot_entry_p,
|
||||
.data_first_entry_p = xfs_dir2_data_first_entry_p,
|
||||
.data_entry_p = xfs_dir2_data_entry_p,
|
||||
.data_unused_p = xfs_dir2_data_unused_p,
|
||||
};
|
||||
|
@ -266,7 +235,6 @@ static const struct xfs_dir_ops xfs_dir2_ftype_ops = {
|
|||
|
||||
.data_dot_entry_p = xfs_dir2_data_dot_entry_p,
|
||||
.data_dotdot_entry_p = xfs_dir2_ftype_data_dotdot_entry_p,
|
||||
.data_first_entry_p = xfs_dir2_ftype_data_first_entry_p,
|
||||
.data_entry_p = xfs_dir2_data_entry_p,
|
||||
.data_unused_p = xfs_dir2_data_unused_p,
|
||||
};
|
||||
|
@ -288,7 +256,6 @@ static const struct xfs_dir_ops xfs_dir3_ops = {
|
|||
|
||||
.data_dot_entry_p = xfs_dir3_data_dot_entry_p,
|
||||
.data_dotdot_entry_p = xfs_dir3_data_dotdot_entry_p,
|
||||
.data_first_entry_p = xfs_dir3_data_first_entry_p,
|
||||
.data_entry_p = xfs_dir3_data_entry_p,
|
||||
.data_unused_p = xfs_dir3_data_unused_p,
|
||||
};
|
||||
|
|
|
@ -49,8 +49,6 @@ struct xfs_dir_ops {
|
|||
(*data_dot_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_dotdot_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_first_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_entry *
|
||||
(*data_entry_p)(struct xfs_dir2_data_hdr *hdr);
|
||||
struct xfs_dir2_data_unused *
|
||||
|
|
Loading…
Reference in New Issue