summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-08-13 08:49:57 +0200
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-08-13 08:49:57 +0200
commit41b5c2e77a0221cf07ac127afa122add67ac5418 (patch)
tree7ba8db919624d68c5db2b2dd022d4742cc9ea104 /fs/xfs/xfs_mount.c
parent[XFS] cleanup xfs_mountfs (diff)
downloadlinux-41b5c2e77a0221cf07ac127afa122add67ac5418.tar.xz
linux-41b5c2e77a0221cf07ac127afa122add67ac5418.zip
[XFS] xfs_unmountfs should return void
xfs_unmounts can't and shouldn't return errors so declare it as returning void. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31833a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 06f0a73bc93f..7f5027266ea0 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1229,16 +1229,15 @@ xfs_mountfs(
}
/*
- * xfs_unmountfs
- *
* This flushes out the inodes,dquots and the superblock, unmounts the
* log and makes sure that incore structures are freed.
*/
-int
-xfs_unmountfs(xfs_mount_t *mp)
+void
+xfs_unmountfs(
+ struct xfs_mount *mp)
{
- __uint64_t resblks;
- int error = 0;
+ __uint64_t resblks;
+ int error;
IRELE(mp->m_rootip);
@@ -1311,7 +1310,6 @@ xfs_unmountfs(xfs_mount_t *mp)
xfs_errortag_clearall(mp, 0);
#endif
xfs_mount_free(mp);
- return 0;
}
STATIC void