linux-stable/fs/jfs
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
..
acl.c dquot: move dquot transfer responsibility into the filesystem 2010-03-05 00:20:28 +01:00
endian24.h
file.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
inode.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
ioctl.c [PATCH] r/o bind mounts: elevate write count for ioctls() 2008-04-19 00:29:24 -04:00
jfs_acl.h dquot: move dquot transfer responsibility into the filesystem 2010-03-05 00:20:28 +01:00
jfs_btree.h
jfs_debug.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
jfs_debug.h JFS: switch to seq_files 2008-05-13 08:22:10 -05:00
jfs_dinode.h BKL-removal: Implement a compat_ioctl handler for JFS 2008-02-07 13:45:29 -06:00
jfs_dmap.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
jfs_dmap.h jfs: replace __inline with inline 2008-03-05 14:38:22 -06:00
jfs_dtree.c dquot: cleanup space allocation / freeing routines 2010-03-05 00:20:28 +01:00
jfs_dtree.h jfs: remove DIRENTSIZ 2008-06-10 15:12:58 -05:00
jfs_extent.c dquot: cleanup space allocation / freeing routines 2010-03-05 00:20:28 +01:00
jfs_extent.h
jfs_filsys.h
jfs_imap.c jfs: Add missing mutex_unlock call to error path 2009-05-23 20:28:41 -05:00
jfs_imap.h
jfs_incore.h switch jfs to inode->i_acl 2009-06-24 08:17:04 -04:00
jfs_inode.c dquot: cleanup dquot drop routine 2010-03-05 00:20:30 +01:00
jfs_inode.h dquot: move dquot transfer responsibility into the filesystem 2010-03-05 00:20:28 +01:00
jfs_lock.h
jfs_logmgr.c [PATCH] pass fmode_t to blkdev_put() 2008-10-21 07:48:58 -04:00
jfs_logmgr.h
jfs_metapage.c jfs: Fix error handling in metapage_writepage() 2009-01-30 14:09:06 -06:00
jfs_metapage.h
jfs_mount.c JFS: Remove defconfig ptr comparison to 0 2008-01-03 13:12:10 -06:00
jfs_superblock.h
jfs_txnmgr.c kill I_LOCK 2009-12-17 11:03:25 -05:00
jfs_txnmgr.h
jfs_types.h jfs: remove xtLookupList() 2009-01-09 15:42:04 -06:00
jfs_umount.c
jfs_unicode.c
jfs_unicode.h
jfs_uniupr.c
jfs_xattr.h
jfs_xtree.c dquot: cleanup space allocation / freeing routines 2010-03-05 00:20:28 +01:00
jfs_xtree.h jfs: remove xtLookupList() 2009-01-09 15:42:04 -06:00
Kconfig jfs: needs crc32_le 2009-02-02 13:43:28 -06:00
Makefile
namei.c dquot: move dquot initialization responsibility into the filesystem 2010-03-05 00:20:30 +01:00
resize.c JFS: use DIV_ROUND_UP where appropriate 2008-01-03 13:11:59 -06:00
super.c dquot: cleanup dquot drop routine 2010-03-05 00:20:30 +01:00
symlink.c
xattr.c dquot: cleanup space allocation / freeing routines 2010-03-05 00:20:28 +01:00