diff options
author | Jörn Engel <joern@logfs.org> | 2010-04-25 02:54:42 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-25 02:54:42 -0400 |
commit | 5129a469a91a91427334c40e29e64c6d0ab68caf (patch) | |
tree | 141a17cbea94c7c9c038187cc7081e1c688eac55 /mm/backing-dev.c | |
parent | 7e2455c1a123ceadbb35150a610d61e8443fd340 (diff) |
Catch filesystems lacking s_bdi
noop_backing_dev_info is used only as a flag to mark filesystems that
don't have any backing store, like tmpfs, procfs, spufs, etc.
Signed-off-by: Joern Engel <joern@logfs.org>
Changed the BUG_ON() to a WARN_ON(). Note that adding dirty inodes
to the noop_backing_dev_info is not legal and will not result in
them being flushed, but we already catch this condition in
__mark_inode_dirty() when checking for a registered bdi.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index dbda4707f593..707d0dc6da0f 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -27,6 +27,11 @@ struct backing_dev_info default_backing_dev_info = { | |||
27 | }; | 27 | }; |
28 | EXPORT_SYMBOL_GPL(default_backing_dev_info); | 28 | EXPORT_SYMBOL_GPL(default_backing_dev_info); |
29 | 29 | ||
30 | struct backing_dev_info noop_backing_dev_info = { | ||
31 | .name = "noop", | ||
32 | }; | ||
33 | EXPORT_SYMBOL_GPL(noop_backing_dev_info); | ||
34 | |||
30 | static struct class *bdi_class; | 35 | static struct class *bdi_class; |
31 | 36 | ||
32 | /* | 37 | /* |