From: Dan Magenheimer Date: Thu, 26 May 2011 16:01:19 +0000 (-0600) Subject: fs: add field to superblock to support cleancache X-Git-Tag: firefly_0821_release~7613^2~1128^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9fdfdcf17151e8326c4d18cc133abc6e58f47568;p=firefly-linux-kernel-4.4.55.git fs: add field to superblock to support cleancache This second patch of eight in this cleancache series adds a field to the generic superblock to squirrel away a pool identifier that is dynamically provided by cleancache-enabled filesystems at mount time to uniquely identify files and pages belonging to this mounted filesystem. Details and a FAQ can be found in Documentation/vm/cleancache.txt [v8: trivial merge conflict update] Signed-off-by: Dan Magenheimer Reviewed-by: Jeremy Fitzhardinge Reviewed-by: Konrad Rzeszutek Wilk Cc: Andrew Morton Cc: Al Viro Cc: Matthew Wilcox Cc: Nick Piggin Cc: Mel Gorman Cc: Rik Van Riel Cc: Jan Beulich Cc: Chris Mason Cc: Andreas Dilger Cc: Ted Ts'o Cc: Mark Fasheh Cc: Joel Becker Cc: Nitin Gupta --- diff --git a/include/linux/fs.h b/include/linux/fs.h index cdf9495df204..0169ed3f106e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1429,6 +1429,11 @@ struct super_block { */ char __rcu *s_options; const struct dentry_operations *s_d_op; /* default d_op for dentries */ + + /* + * Saved pool identifier for cleancache (-1 means none) + */ + int cleancache_poolid; }; extern struct timespec current_fs_time(struct super_block *sb);