Skip to content

Commit

Permalink
quota: Split off quota tree handling into a separate file
Browse files Browse the repository at this point in the history
There is going to be a new version of quota format having 64-bit
quota limits and a new quota format for OCFS2. They are both
going to use the same tree structure as VFSv0 quota format. So
split out tree handling into a separate file and make size of
leaf blocks, amount of space usable in each block (needed for
checksumming) and structures contained in them configurable
so that the code can be shared.

Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Mark Fasheh <[email protected]>
  • Loading branch information
jankara authored and Mark Fasheh committed Jan 5, 2009
1 parent cf770c1 commit 1ccd14b
Show file tree
Hide file tree
Showing 8 changed files with 799 additions and 581 deletions.
5 changes: 5 additions & 0 deletions fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ config PRINT_QUOTA_WARNING
Note that this behavior is currently deprecated and may go away in
future. Please use notification via netlink socket instead.

# Generic support for tree structured quota files. Seleted when needed.
config QUOTA_TREE
tristate

config QFMT_V1
tristate "Old quota format support"
depends on QUOTA
Expand All @@ -313,6 +317,7 @@ config QFMT_V1
config QFMT_V2
tristate "Quota format v2 support"
depends on QUOTA
select QUOTA_TREE
help
This quota format allows using quotas with 32-bit UIDs/GIDs. If you
need this functionality say Y here.
Expand Down
1 change: 1 addition & 0 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ obj-$(CONFIG_GENERIC_ACL) += generic_acl.o
obj-$(CONFIG_QUOTA) += dquot.o
obj-$(CONFIG_QFMT_V1) += quota_v1.o
obj-$(CONFIG_QFMT_V2) += quota_v2.o
obj-$(CONFIG_QUOTA_TREE) += quota_tree.o
obj-$(CONFIG_QUOTACTL) += quota.o

obj-$(CONFIG_PROC_FS) += proc/
Expand Down
Loading

0 comments on commit 1ccd14b

Please sign in to comment.