bdi: add helper function for doing init and register of a bdi for a file system
authorJens Axboe <jens.axboe@oracle.com>
Thu, 22 Apr 2010 09:37:01 +0000 (11:37 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 22 Apr 2010 09:39:36 +0000 (11:39 +0200)
commitc3c532061e46156e8aab1268f38d66cfb63aeb2d
tree8c5b027873b823b04f5564d442477e80e82e8edb
parenta534dbe96e9929c7245924d8252d89048c23d569
bdi: add helper function for doing init and register of a bdi for a file system

Pretty trivial helper, just sets up the bdi and registers it. An atomic
sequence count is used to ensure that the registered sysfs names are
unique.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/backing-dev.h
mm/backing-dev.c