aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2005-11-01 18:32:38 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 18:32:38 -0500
commitee34807a65aa0c5911dc27682863afca780a003e (patch)
tree6111a529078e9e12ce5102f7c736f649fb3ec498 /fs/xfs/quota
parentc310ab6c071a688e5291028972d1ae8314f67536 (diff)
[XFS] Provide a mechiansm for flushing delalloc before quota reporting.
SGI-PV: 942815 SGI-Modid: xfs-linux:xfs-kern:23829a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r--fs/xfs/quota/xfs_qm_syscalls.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/xfs/quota/xfs_qm_syscalls.c b/fs/xfs/quota/xfs_qm_syscalls.c
index 4e397940b3a6..485f83d41191 100644
--- a/fs/xfs/quota/xfs_qm_syscalls.c
+++ b/fs/xfs/quota/xfs_qm_syscalls.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. 2 * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as 5 * under the terms of version 2 of the GNU General Public License as
@@ -109,7 +109,7 @@ xfs_qm_quotactl(
109 vfsp = bhvtovfs(bdp); 109 vfsp = bhvtovfs(bdp);
110 mp = XFS_VFSTOM(vfsp); 110 mp = XFS_VFSTOM(vfsp);
111 111
112 ASSERT(addr != NULL); 112 ASSERT(addr != NULL || cmd == Q_XQUOTASYNC);
113 113
114 /* 114 /*
115 * The following commands are valid even when quotaoff. 115 * The following commands are valid even when quotaoff.
@@ -147,6 +147,9 @@ xfs_qm_quotactl(
147 return XFS_ERROR(EROFS); 147 return XFS_ERROR(EROFS);
148 break; 148 break;
149 149
150 case Q_XQUOTASYNC:
151 return (xfs_sync_inodes(mp, SYNC_DELWRI, 0, NULL));
152
150 default: 153 default:
151 break; 154 break;
152 } 155 }