diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-19 07:16:44 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 08:10:17 -0400 |
commit | 123e9caf1e85008ab7eb5f6cd58c44f9a5d73b2b (patch) | |
tree | a7a49a9aabb2136e8d19a3d86096bb525a16e0b9 /fs/jfs | |
parent | 307ae18a56e5b706056a2050d52e8cc01b5171c0 (diff) |
quota: explicitly set ->dq_op and ->s_qcop
Only set the quota operation vectors if the filesystem actually supports
quota instead of doing it for all filesystems in alloc_super().
[Jan Kara: Export dquot_operations and vfs_quotactl_ops]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jfs')
-rw-r--r-- | fs/jfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 7d940a3a3d93..2e7ec5e8cda4 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -481,6 +481,10 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent) | |||
481 | */ | 481 | */ |
482 | sb->s_op = &jfs_super_operations; | 482 | sb->s_op = &jfs_super_operations; |
483 | sb->s_export_op = &jfs_export_operations; | 483 | sb->s_export_op = &jfs_export_operations; |
484 | #ifdef CONFIG_QUOTA | ||
485 | sb->dq_op = &dquot_operations; | ||
486 | sb->s_qcop = &vfs_quotactl_ops; | ||
487 | #endif | ||
484 | 488 | ||
485 | /* | 489 | /* |
486 | * Initialize direct-mapping inode/address-space | 490 | * Initialize direct-mapping inode/address-space |