mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
xfs: rename bulkstat functions
Rename the bulkstat functions to 'fsbulkstat' so that they match the ioctl names. We will be introducing a new set of bulkstat/inumbers ioctls soon, and it will be important to keep the names straight. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Collins <allison.henderson@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
parent
6f71fb6838
commit
8bfe9d1810
@ -715,7 +715,7 @@ out_unlock:
|
|||||||
|
|
||||||
/* Return 0 on success or positive error */
|
/* Return 0 on success or positive error */
|
||||||
int
|
int
|
||||||
xfs_bulkstat_one_fmt(
|
xfs_fsbulkstat_one_fmt(
|
||||||
struct xfs_ibulk *breq,
|
struct xfs_ibulk *breq,
|
||||||
const struct xfs_bstat *bstat)
|
const struct xfs_bstat *bstat)
|
||||||
{
|
{
|
||||||
@ -725,7 +725,7 @@ xfs_bulkstat_one_fmt(
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
xfs_inumbers_fmt(
|
xfs_fsinumbers_fmt(
|
||||||
struct xfs_ibulk *breq,
|
struct xfs_ibulk *breq,
|
||||||
const struct xfs_inogrp *igrp)
|
const struct xfs_inogrp *igrp)
|
||||||
{
|
{
|
||||||
@ -735,7 +735,7 @@ xfs_inumbers_fmt(
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC int
|
STATIC int
|
||||||
xfs_ioc_bulkstat(
|
xfs_ioc_fsbulkstat(
|
||||||
xfs_mount_t *mp,
|
xfs_mount_t *mp,
|
||||||
unsigned int cmd,
|
unsigned int cmd,
|
||||||
void __user *arg)
|
void __user *arg)
|
||||||
@ -785,16 +785,16 @@ xfs_ioc_bulkstat(
|
|||||||
*/
|
*/
|
||||||
if (cmd == XFS_IOC_FSINUMBERS) {
|
if (cmd == XFS_IOC_FSINUMBERS) {
|
||||||
breq.startino = lastino ? lastino + 1 : 0;
|
breq.startino = lastino ? lastino + 1 : 0;
|
||||||
error = xfs_inumbers(&breq, xfs_inumbers_fmt);
|
error = xfs_inumbers(&breq, xfs_fsinumbers_fmt);
|
||||||
lastino = breq.startino - 1;
|
lastino = breq.startino - 1;
|
||||||
} else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) {
|
} else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) {
|
||||||
breq.startino = lastino;
|
breq.startino = lastino;
|
||||||
breq.icount = 1;
|
breq.icount = 1;
|
||||||
error = xfs_bulkstat_one(&breq, xfs_bulkstat_one_fmt);
|
error = xfs_bulkstat_one(&breq, xfs_fsbulkstat_one_fmt);
|
||||||
lastino = breq.startino;
|
lastino = breq.startino;
|
||||||
} else { /* XFS_IOC_FSBULKSTAT */
|
} else { /* XFS_IOC_FSBULKSTAT */
|
||||||
breq.startino = lastino ? lastino + 1 : 0;
|
breq.startino = lastino ? lastino + 1 : 0;
|
||||||
error = xfs_bulkstat(&breq, xfs_bulkstat_one_fmt);
|
error = xfs_bulkstat(&breq, xfs_fsbulkstat_one_fmt);
|
||||||
lastino = breq.startino - 1;
|
lastino = breq.startino - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1974,7 +1974,7 @@ xfs_file_ioctl(
|
|||||||
case XFS_IOC_FSBULKSTAT_SINGLE:
|
case XFS_IOC_FSBULKSTAT_SINGLE:
|
||||||
case XFS_IOC_FSBULKSTAT:
|
case XFS_IOC_FSBULKSTAT:
|
||||||
case XFS_IOC_FSINUMBERS:
|
case XFS_IOC_FSINUMBERS:
|
||||||
return xfs_ioc_bulkstat(mp, cmd, arg);
|
return xfs_ioc_fsbulkstat(mp, cmd, arg);
|
||||||
|
|
||||||
case XFS_IOC_FSGEOMETRY_V1:
|
case XFS_IOC_FSGEOMETRY_V1:
|
||||||
return xfs_ioc_fsgeometry(mp, arg, 3);
|
return xfs_ioc_fsgeometry(mp, arg, 3);
|
||||||
|
@ -81,7 +81,8 @@ struct xfs_ibulk;
|
|||||||
struct xfs_bstat;
|
struct xfs_bstat;
|
||||||
struct xfs_inogrp;
|
struct xfs_inogrp;
|
||||||
|
|
||||||
int xfs_bulkstat_one_fmt(struct xfs_ibulk *breq, const struct xfs_bstat *bstat);
|
int xfs_fsbulkstat_one_fmt(struct xfs_ibulk *breq,
|
||||||
int xfs_inumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inogrp *igrp);
|
const struct xfs_bstat *bstat);
|
||||||
|
int xfs_fsinumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inogrp *igrp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -80,7 +80,7 @@ xfs_compat_growfs_rt_copyin(
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC int
|
STATIC int
|
||||||
xfs_inumbers_fmt_compat(
|
xfs_fsinumbers_fmt_compat(
|
||||||
struct xfs_ibulk *breq,
|
struct xfs_ibulk *breq,
|
||||||
const struct xfs_inogrp *igrp)
|
const struct xfs_inogrp *igrp)
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ xfs_inumbers_fmt_compat(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define xfs_inumbers_fmt_compat xfs_inumbers_fmt
|
#define xfs_fsinumbers_fmt_compat xfs_fsinumbers_fmt
|
||||||
#endif /* BROKEN_X86_ALIGNMENT */
|
#endif /* BROKEN_X86_ALIGNMENT */
|
||||||
|
|
||||||
STATIC int
|
STATIC int
|
||||||
@ -165,7 +165,7 @@ xfs_bstime_store_compat(
|
|||||||
|
|
||||||
/* Return 0 on success or positive error (to xfs_bulkstat()) */
|
/* Return 0 on success or positive error (to xfs_bulkstat()) */
|
||||||
STATIC int
|
STATIC int
|
||||||
xfs_bulkstat_one_fmt_compat(
|
xfs_fsbulkstat_one_fmt_compat(
|
||||||
struct xfs_ibulk *breq,
|
struct xfs_ibulk *breq,
|
||||||
const struct xfs_bstat *buffer)
|
const struct xfs_bstat *buffer)
|
||||||
{
|
{
|
||||||
@ -200,7 +200,7 @@ xfs_bulkstat_one_fmt_compat(
|
|||||||
|
|
||||||
/* copied from xfs_ioctl.c */
|
/* copied from xfs_ioctl.c */
|
||||||
STATIC int
|
STATIC int
|
||||||
xfs_compat_ioc_bulkstat(
|
xfs_compat_ioc_fsbulkstat(
|
||||||
xfs_mount_t *mp,
|
xfs_mount_t *mp,
|
||||||
unsigned int cmd,
|
unsigned int cmd,
|
||||||
struct compat_xfs_fsop_bulkreq __user *p32)
|
struct compat_xfs_fsop_bulkreq __user *p32)
|
||||||
@ -220,8 +220,8 @@ xfs_compat_ioc_bulkstat(
|
|||||||
* to userpace memory via bulkreq.ubuffer. Normally the compat
|
* to userpace memory via bulkreq.ubuffer. Normally the compat
|
||||||
* functions and structure size are the correct ones to use ...
|
* functions and structure size are the correct ones to use ...
|
||||||
*/
|
*/
|
||||||
inumbers_fmt_pf inumbers_func = xfs_inumbers_fmt_compat;
|
inumbers_fmt_pf inumbers_func = xfs_fsinumbers_fmt_compat;
|
||||||
bulkstat_one_fmt_pf bs_one_func = xfs_bulkstat_one_fmt_compat;
|
bulkstat_one_fmt_pf bs_one_func = xfs_fsbulkstat_one_fmt_compat;
|
||||||
|
|
||||||
#ifdef CONFIG_X86_X32
|
#ifdef CONFIG_X86_X32
|
||||||
if (in_x32_syscall()) {
|
if (in_x32_syscall()) {
|
||||||
@ -233,8 +233,8 @@ xfs_compat_ioc_bulkstat(
|
|||||||
* the data written out in compat layout will not match what
|
* the data written out in compat layout will not match what
|
||||||
* x32 userspace expects.
|
* x32 userspace expects.
|
||||||
*/
|
*/
|
||||||
inumbers_func = xfs_inumbers_fmt;
|
inumbers_func = xfs_fsinumbers_fmt;
|
||||||
bs_one_func = xfs_bulkstat_one_fmt;
|
bs_one_func = xfs_fsbulkstat_one_fmt;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -663,7 +663,7 @@ xfs_file_compat_ioctl(
|
|||||||
case XFS_IOC_FSBULKSTAT_32:
|
case XFS_IOC_FSBULKSTAT_32:
|
||||||
case XFS_IOC_FSBULKSTAT_SINGLE_32:
|
case XFS_IOC_FSBULKSTAT_SINGLE_32:
|
||||||
case XFS_IOC_FSINUMBERS_32:
|
case XFS_IOC_FSINUMBERS_32:
|
||||||
return xfs_compat_ioc_bulkstat(mp, cmd, arg);
|
return xfs_compat_ioc_fsbulkstat(mp, cmd, arg);
|
||||||
case XFS_IOC_FD_TO_HANDLE_32:
|
case XFS_IOC_FD_TO_HANDLE_32:
|
||||||
case XFS_IOC_PATH_TO_HANDLE_32:
|
case XFS_IOC_PATH_TO_HANDLE_32:
|
||||||
case XFS_IOC_PATH_TO_FSHANDLE_32: {
|
case XFS_IOC_PATH_TO_FSHANDLE_32: {
|
||||||
|
Loading…
Reference in New Issue
Block a user