diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-19 13:16:42 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 14:09:12 +0200 |
commit | e0ccfd959cd8907bcb66cc2042e0f4fd7fcbff2b (patch) | |
tree | a62a84034243e75e07bb063526e10ea0b837062f /fs/jfs/super.c | |
parent | quota: kill the vfs_dq_off and vfs_dq_quota_on_remount wrappers (diff) | |
download | linux-e0ccfd959cd8907bcb66cc2042e0f4fd7fcbff2b.tar.xz linux-e0ccfd959cd8907bcb66cc2042e0f4fd7fcbff2b.zip |
quota: move unmount handling into the filesystem
Currently the VFS calls into the quotactl interface for unmounting
filesystems. This means filesystems with their own quota handling
can't easily distinguish between user-space originating quotaoff
and an unount. Instead move the responsibily of the unmount handling
into the filesystem to be consistent with all other dquot handling.
Note that we do call dquot_disable a lot later now, e.g. after
a sync_filesystem. But this is fine as the quota code does all its
writes via blockdev's mapping and that is synced even later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jfs/super.c')
-rw-r--r-- | fs/jfs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index b8a07d4c108e..7d940a3a3d93 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c @@ -179,6 +179,8 @@ static void jfs_put_super(struct super_block *sb) jfs_info("In jfs_put_super"); + dquot_disable(sb, -1, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); + lock_kernel(); rc = jfs_umount(sb); |