quota: quota core changes for quotaon on remount
authorJan Kara <jack@suse.cz>
Mon, 28 Apr 2008 09:14:33 +0000 (02:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:33 +0000 (08:58 -0700)
commit0ff5af8340aa6be44220d7237ef4a654314cf795
treea9536ea573725931cd4eb3139f4885887e3f8bf8
parent03f6e92bdd467aed9d7571a571868563ae6ad288
quota: quota core changes for quotaon on remount

Currently, we just turn quotas off on remount of filesystem to read-only
state.  The patch below adds necessary framework so that we can turn quotas
off on remount RO but we are able to automatically reenable them again when
filesystem is remounted to RW state.  All we need to do is to keep references
to inodes of quota files when remounting RO and using these references to
reenable quotas when remounting RW.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dquot.c
fs/quota.c
fs/super.c
include/linux/quota.h
include/linux/quotaops.h