]> git.neil.brown.name Git - LaFS.git/commitdiff
Use the right value of creation_age of subsets.
authorNeilBrown <neilb@suse.de>
Sat, 14 Aug 2010 02:08:38 +0000 (12:08 +1000)
committerNeilBrown <neilb@suse.de>
Sat, 14 Aug 2010 02:08:38 +0000 (12:08 +1000)
It should be cluster seq number.  This never wraps and
is used to compare against write cluster to trim searches of new
filesets early.

Signed-off-by: NeilBrown <neilb@suse.de>
super.c

diff --git a/super.c b/super.c
index 6c0c32dabd37aaa5c250c6d724ef16a561a53641..1f4364e702fe600e261e6837466da9407376093b 100644 (file)
--- a/super.c
+++ b/super.c
@@ -1022,7 +1022,8 @@ lafs_get_subset(struct file_system_type *fs_type,
                        md->ablocks_used = 0;
                        md->blocks_allowed = 10000; /* FIXME */
                        md->blocks_unalloc = 0;
-                       md->creation_age = fs->youth_next;
+                       /* FIXME should I be using inode_init here */
+                       md->creation_age = fs->wc[0].cluster_seq;
                        md->inodes_used = 0;
                        md->quota_inums[0] = 0;
                        md->quota_inums[1] = 0;