Commit 1cb69c80 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'xfs-5.17-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fixes from Darrick Wong:
 "One of the patches removes some dead code from xfs_ioctl32.h and the
  other fixes broken workqueue flushing in the inode garbage collector.

   - Minor cleanup of ioctl32 cruft

   - Clean up open coded inodegc workqueue function calls"

* tag 'xfs-5.17-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
  xfs: flush inodegc workqueue tasks before cancel
  xfs: remove unused xfs_ioctl32.h declarations
parents 7fd350f6 6191cf3a
...@@ -1854,28 +1854,20 @@ xfs_inodegc_worker( ...@@ -1854,28 +1854,20 @@ xfs_inodegc_worker(
} }
/* /*
* Force all currently queued inode inactivation work to run immediately, and * Force all currently queued inode inactivation work to run immediately and
* wait for the work to finish. Two pass - queue all the work first pass, wait * wait for the work to finish.
* for it in a second pass.
*/ */
void void
xfs_inodegc_flush( xfs_inodegc_flush(
struct xfs_mount *mp) struct xfs_mount *mp)
{ {
struct xfs_inodegc *gc;
int cpu;
if (!xfs_is_inodegc_enabled(mp)) if (!xfs_is_inodegc_enabled(mp))
return; return;
trace_xfs_inodegc_flush(mp, __return_address); trace_xfs_inodegc_flush(mp, __return_address);
xfs_inodegc_queue_all(mp); xfs_inodegc_queue_all(mp);
flush_workqueue(mp->m_inodegc_wq);
for_each_online_cpu(cpu) {
gc = per_cpu_ptr(mp->m_inodegc, cpu);
flush_work(&gc->work);
}
} }
/* /*
...@@ -1886,18 +1878,12 @@ void ...@@ -1886,18 +1878,12 @@ void
xfs_inodegc_stop( xfs_inodegc_stop(
struct xfs_mount *mp) struct xfs_mount *mp)
{ {
struct xfs_inodegc *gc;
int cpu;
if (!xfs_clear_inodegc_enabled(mp)) if (!xfs_clear_inodegc_enabled(mp))
return; return;
xfs_inodegc_queue_all(mp); xfs_inodegc_queue_all(mp);
drain_workqueue(mp->m_inodegc_wq);
for_each_online_cpu(cpu) {
gc = per_cpu_ptr(mp->m_inodegc, cpu);
cancel_work_sync(&gc->work);
}
trace_xfs_inodegc_stop(mp, __return_address); trace_xfs_inodegc_stop(mp, __return_address);
} }
......
...@@ -142,24 +142,6 @@ typedef struct compat_xfs_fsop_attrmulti_handlereq { ...@@ -142,24 +142,6 @@ typedef struct compat_xfs_fsop_attrmulti_handlereq {
_IOW('X', 123, struct compat_xfs_fsop_attrmulti_handlereq) _IOW('X', 123, struct compat_xfs_fsop_attrmulti_handlereq)
#ifdef BROKEN_X86_ALIGNMENT #ifdef BROKEN_X86_ALIGNMENT
/* on ia32 l_start is on a 32-bit boundary */
typedef struct compat_xfs_flock64 {
__s16 l_type;
__s16 l_whence;
__s64 l_start __attribute__((packed));
/* len == 0 means until end of file */
__s64 l_len __attribute__((packed));
__s32 l_sysid;
__u32 l_pid;
__s32 l_pad[4]; /* reserve area */
} compat_xfs_flock64_t;
#define XFS_IOC_RESVSP_32 _IOW('X', 40, struct compat_xfs_flock64)
#define XFS_IOC_UNRESVSP_32 _IOW('X', 41, struct compat_xfs_flock64)
#define XFS_IOC_RESVSP64_32 _IOW('X', 42, struct compat_xfs_flock64)
#define XFS_IOC_UNRESVSP64_32 _IOW('X', 43, struct compat_xfs_flock64)
#define XFS_IOC_ZERO_RANGE_32 _IOW('X', 57, struct compat_xfs_flock64)
typedef struct compat_xfs_fsop_geom_v1 { typedef struct compat_xfs_fsop_geom_v1 {
__u32 blocksize; /* filesystem (data) block size */ __u32 blocksize; /* filesystem (data) block size */
__u32 rtextsize; /* realtime extent size */ __u32 rtextsize; /* realtime extent size */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment