[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>
This commit is contained in:
@@ -117,6 +117,8 @@ fs_flush_pages(
|
||||
|
||||
if (VN_CACHED(vp)) {
|
||||
filemap_fdatawrite(ip->i_mapping);
|
||||
if (flags & XFS_B_ASYNC)
|
||||
return 0;
|
||||
filemap_fdatawait(ip->i_mapping);
|
||||
}
|
||||
|
||||
|
@@ -766,6 +766,18 @@ linvfs_show_options(
|
||||
return error;
|
||||
}
|
||||
|
||||
STATIC int
|
||||
linvfs_quotasync(
|
||||
struct super_block *sb,
|
||||
int type)
|
||||
{
|
||||
struct vfs *vfsp = LINVFS_GET_VFS(sb);
|
||||
int error;
|
||||
|
||||
VFS_QUOTACTL(vfsp, Q_XQUOTASYNC, 0, (caddr_t)NULL, error);
|
||||
return -error;
|
||||
}
|
||||
|
||||
STATIC int
|
||||
linvfs_getxstate(
|
||||
struct super_block *sb,
|
||||
@@ -934,6 +946,7 @@ STATIC struct super_operations linvfs_sops = {
|
||||
};
|
||||
|
||||
STATIC struct quotactl_ops linvfs_qops = {
|
||||
.quota_sync = linvfs_quotasync,
|
||||
.get_xstate = linvfs_getxstate,
|
||||
.set_xstate = linvfs_setxstate,
|
||||
.get_xquota = linvfs_getxquota,
|
||||
|
Reference in New Issue
Block a user