linux-stable-rt/fs
Christoph Hellwig 907f4554e2 dquot: move dquot initialization responsibility into the filesystem
Currently various places in the VFS call vfs_dq_init directly.  This means
we tie the quota code into the VFS.  Get rid of that and make the
filesystem responsible for the initialization.   For most metadata operations
this is a straight forward move into the methods, but for truncate and
open it's a bit more complicated.

For truncate we currently only call vfs_dq_init for the sys_truncate case
because open already takes care of it for ftruncate and open(O_TRUNC) - the
new code causes an additional vfs_dq_init for those which is harmless.

For open the initialization is moved from do_filp_open into the open method,
which means it happens slightly earlier now, and only for regular files.
The latter is fine because we don't need to initialize it for operations
on special files, and we already do it as part of the namespace operations
for directories.

Add a dquot_file_open helper that filesystems that support generic quotas
can use to fill in ->open.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
2010-03-05 00:20:30 +01:00
..
9p
adfs
affs
afs
autofs
autofs4
befs
bfs
btrfs Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable 2010-02-15 19:56:21 -08:00
cachefiles CacheFiles: Fix a race in cachefiles_delete_object() vs rename 2010-02-20 10:06:35 -05:00
cifs
coda
configfs
cramfs
debugfs
devpts
dlm dlm: use bastmode in debugfs output 2010-02-26 12:15:54 -06:00
ecryptfs
efs
exofs
exportfs
ext2 dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
ext3 dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
ext4 dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
fat
freevxfs
fscache
fuse
gfs2 quota: move code from sync_quota_sb into vfs_quota_sync 2010-03-05 00:20:24 +01:00
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd jbd: Delay discarding buffers in journal_unmap_buffer 2010-03-05 00:20:26 +01:00
jbd2
jffs2
jfs dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
lockd
minix
ncpfs
nfs Remove EXPERIMENTAL from NFS_FSCACHE 2010-02-26 17:22:35 -08:00
nfs_common
nfsd dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
nilfs2
nls
notify
ntfs
ocfs2 dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
omfs
openpromfs
partitions
proc Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-02-28 10:13:16 -08:00
qnx4
quota dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
ramfs
reiserfs dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
romfs
smbfs
squashfs
sysfs sysfs: sysfs_sd_setattr set iattrs unconditionally 2010-02-16 15:42:42 -08:00
sysv
ubifs
udf dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
ufs dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
xfs quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota 2010-03-05 00:20:25 +01:00
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c dquot: move dquot transfer responsibility into the filesystem 2010-03-05 00:20:28 +01:00
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
binfmt_som.c
bio-integrity.c
bio.c Revert "blkdev: fix merge_bvec_fn return value checks" 2010-03-02 19:17:34 +01:00
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2010-02-11 14:05:55 -08:00
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c fs/exec.c: fix initial stack reservation 2010-02-22 19:50:34 -08:00
fcntl.c
fifo.c
file.c vfs: Apply lockdep-based checking to rcu_dereference() uses 2010-02-25 10:34:48 +01:00
file_table.c
filesystems.c
fs-writeback.c
fs_struct.c
generic_acl.c
inode.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
internal.h
ioctl.c
ioprio.c
libfs.c
locks.c
mbcache.c
mpage.c
namei.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
namespace.c
nfsctl.c
no-block.c
open.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
pipe.c
pnode.c
pnode.h
posix_acl.c
read_write.c
read_write.h
readdir.c
select.c
seq_file.c seq_file: add RCU versions of new hlist/list iterators (v3) 2010-02-22 15:45:54 -08:00
signalfd.c
splice.c
stack.c
stat.c
super.c
sync.c quota: move code from sync_quota_sb into vfs_quota_sync 2010-03-05 00:20:24 +01:00
timerfd.c
utimes.c
xattr.c
xattr_acl.c