diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-10-11 04:11:14 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:09:56 -0500 |
commit | 9909c4aa1a3e5b1f23cbc1bc2f0db025a7f75f85 (patch) | |
tree | 27a9a4a620a9af8163cfa1833d59c51008102e0d /fs/xfs/linux-2.6 | |
parent | 10090be25c159c02208b7abf89ae90f8105a2423 (diff) |
[XFS] kill xfs_freeze.
No need to have a wrapper just two call two more functions.
SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:29816a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index c0549737f7ea..c430b44dde4b 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "xfs_rtalloc.h" | 41 | #include "xfs_rtalloc.h" |
42 | #include "xfs_error.h" | 42 | #include "xfs_error.h" |
43 | #include "xfs_itable.h" | 43 | #include "xfs_itable.h" |
44 | #include "xfs_fsops.h" | ||
44 | #include "xfs_rw.h" | 45 | #include "xfs_rw.h" |
45 | #include "xfs_acl.h" | 46 | #include "xfs_acl.h" |
46 | #include "xfs_attr.h" | 47 | #include "xfs_attr.h" |
@@ -738,11 +739,19 @@ xfs_fs_remount( | |||
738 | return -error; | 739 | return -error; |
739 | } | 740 | } |
740 | 741 | ||
742 | /* | ||
743 | * Second stage of a freeze. The data is already frozen so we only | ||
744 | * need to take care of themetadata. Once that's done write a dummy | ||
745 | * record to dirty the log in case of a crash while frozen. | ||
746 | */ | ||
741 | STATIC void | 747 | STATIC void |
742 | xfs_fs_lockfs( | 748 | xfs_fs_lockfs( |
743 | struct super_block *sb) | 749 | struct super_block *sb) |
744 | { | 750 | { |
745 | xfs_freeze(XFS_M(sb)); | 751 | struct xfs_mount *mp = XFS_M(sb); |
752 | |||
753 | xfs_attr_quiesce(mp); | ||
754 | xfs_fs_log_dummy(mp); | ||
746 | } | 755 | } |
747 | 756 | ||
748 | STATIC int | 757 | STATIC int |