Commit fe4fa4b8 authored by David Chinner's avatar David Chinner Committed by Lachlan McIlroy

[XFS] move sync code to its own file

The sync code in XFS is spread around several files. While it used to make
sense to have such a distribution, the code is about to be cleaned up and
so centralising it in one spot as the first step makes sense.

SGI-PV: 988139

SGI-Modid: xfs-linux-melb:xfs-kern:32282a
Signed-off-by: default avatarDavid Chinner <david@fromorbit.com>
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
parent 34519daa
...@@ -107,6 +107,7 @@ xfs-y += $(addprefix $(XFS_LINUX)/, \ ...@@ -107,6 +107,7 @@ xfs-y += $(addprefix $(XFS_LINUX)/, \
xfs_iops.o \ xfs_iops.o \
xfs_lrw.o \ xfs_lrw.o \
xfs_super.o \ xfs_super.o \
xfs_sync.o \
xfs_vnode.o \ xfs_vnode.o \
xfs_xattr.o) xfs_xattr.o)
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include "xfs_extfree_item.h" #include "xfs_extfree_item.h"
#include "xfs_mru_cache.h" #include "xfs_mru_cache.h"
#include "xfs_inode_item.h" #include "xfs_inode_item.h"
#include "xfs_sync.h"
#include <linux/namei.h> #include <linux/namei.h>
#include <linux/init.h> #include <linux/init.h>
......
This diff is collapsed.
#ifndef XFS_SYNC_H
#define XFS_SYNC_H 1
int xfs_sync(struct xfs_mount *mp, int flags);
int xfs_syncsub(struct xfs_mount *mp, int flags, int *bypassed);
#endif
This diff is collapsed.
...@@ -8,7 +8,6 @@ struct kstatfs; ...@@ -8,7 +8,6 @@ struct kstatfs;
struct xfs_mount; struct xfs_mount;
struct xfs_mount_args; struct xfs_mount_args;
int xfs_sync(struct xfs_mount *mp, int flags);
void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname, void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
int lnnum); int lnnum);
void xfs_attr_quiesce(struct xfs_mount *mp); void xfs_attr_quiesce(struct xfs_mount *mp);
......
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