| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 3/3] quota: make Q_XQUOTASYNC a noop |
| From: | Jan Kara <jack@xxxxxxx> |
| Date: | Thu, 2 Feb 2012 19:06:26 +0100 |
| Cc: | xfs@xxxxxxxxxxx, arekm@xxxxxxxx, jack@xxxxxxx |
| In-reply-to: | <20120202161629.559449485@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20120202161409.303465214@xxxxxxxxxxxxxxxxxxxxxx> <20120202161629.559449485@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-06-14) |
On Thu 02-02-12 11:14:12, Christoph Hellwig wrote:
> Now that XFS takes quota reservations into account there is no need to flush
> anything before reporting quotas - in addition to beeing fully transactional
> all quota information is also 100% coherent with the rest of the filesystem
> now.
Looks fine. You can add:
Acked-by: Jan Kara <jack@xxxxxxx>
Honza
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
>
> Index: xfs/fs/quota/quota.c
> ===================================================================
> --- xfs.orig/fs/quota/quota.c 2012-02-02 13:06:30.693396524 +0100
> +++ xfs/fs/quota/quota.c 2012-02-02 13:23:23.181244741 +0100
> @@ -282,10 +282,9 @@ static int do_quotactl(struct super_bloc
> case Q_XGETQUOTA:
> return quota_getxquota(sb, type, id, addr);
> case Q_XQUOTASYNC:
> - /* caller already holds s_umount */
> if (sb->s_flags & MS_RDONLY)
> return -EROFS;
> - writeback_inodes_sb(sb, WB_REASON_SYNC);
> + /* XFS quotas are fully coherent now, making this call a noop */
> return 0;
> default:
> return -EINVAL;
>
--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/3] filemap: don't call generic_write_sync for -EIOCBQUEUED, Jan Kara |
|---|---|
| Next by Date: | Re: [PATCH 0/3] include reservations in quota reporting, Jan Kara |
| Previous by Thread: | [PATCH 3/3] quota: make Q_XQUOTASYNC a noop, Christoph Hellwig |
| Next by Thread: | [PATCH 1/3] xfs: merge xfs_qm_export_dquot into xfs_qm_scall_getquota, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |