diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-03-03 09:05:07 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-03-04 18:20:30 -0500 |
commit | 871a293155a24554e153538d36e3a80fa169aefb (patch) | |
tree | 7e38f5a2f9e87f63cbc4bc1077a4bb49dde441b0 /fs/ext4/super.c | |
parent | 907f4554e2521cb28b0009d17167760650a9561c (diff) |
dquot: cleanup dquot initialize routine
Get rid of the initialize dquot operation - it is now always called from
the filesystem and if a filesystem really needs it's own (which none
currently does) it can just call into it's own routine directly.
Rename the now static low-level dquot_initialize helper to __dquot_initialize
and vfs_dq_init to dquot_initialize to have a consistent namespace.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 035516c80df2..edcf3b0239d1 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1013,7 +1013,6 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type, | |||
1013 | const char *data, size_t len, loff_t off); | 1013 | const char *data, size_t len, loff_t off); |
1014 | 1014 | ||
1015 | static const struct dquot_operations ext4_quota_operations = { | 1015 | static const struct dquot_operations ext4_quota_operations = { |
1016 | .initialize = dquot_initialize, | ||
1017 | #ifdef CONFIG_QUOTA | 1016 | #ifdef CONFIG_QUOTA |
1018 | .get_reserved_space = ext4_get_reserved_space, | 1017 | .get_reserved_space = ext4_get_reserved_space, |
1019 | #endif | 1018 | #endif |
@@ -1931,7 +1930,7 @@ static void ext4_orphan_cleanup(struct super_block *sb, | |||
1931 | } | 1930 | } |
1932 | 1931 | ||
1933 | list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); | 1932 | list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); |
1934 | vfs_dq_init(inode); | 1933 | dquot_initialize(inode); |
1935 | if (inode->i_nlink) { | 1934 | if (inode->i_nlink) { |
1936 | ext4_msg(sb, KERN_DEBUG, | 1935 | ext4_msg(sb, KERN_DEBUG, |
1937 | "%s: truncating inode %lu to %lld bytes", | 1936 | "%s: truncating inode %lu to %lld bytes", |
@@ -3700,7 +3699,7 @@ static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
3700 | * Process 1 Process 2 | 3699 | * Process 1 Process 2 |
3701 | * ext4_create() quota_sync() | 3700 | * ext4_create() quota_sync() |
3702 | * jbd2_journal_start() write_dquot() | 3701 | * jbd2_journal_start() write_dquot() |
3703 | * vfs_dq_init() down(dqio_mutex) | 3702 | * dquot_initialize() down(dqio_mutex) |
3704 | * down(dqio_mutex) jbd2_journal_start() | 3703 | * down(dqio_mutex) jbd2_journal_start() |
3705 | * | 3704 | * |
3706 | */ | 3705 | */ |