writeback: initialize inode members that track writeback history
authorTahsin Erdogan <tahsin@google.com>
Tue, 16 Feb 2016 21:34:39 +0000 (13:34 -0800)
committerJens Axboe <axboe@fb.com>
Tue, 16 Feb 2016 21:57:21 +0000 (14:57 -0700)
commit3d65ae4634ed8350aee98a4e6f4e41fe40c7d282
tree4efaf7fb8a92eeb7fb5a1d854fa8172512d28696
parent5ff8eaac1636bf6deae86491f4818c4c69d1a9ac
writeback: initialize inode members that track writeback history

inode struct members that track cgroup writeback information
should be reinitialized when inode gets allocated from
kmem_cache. Otherwise, their values remain and get used by the
new inode.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Acked-by: Tejun Heo <tj@kernel.org>
Fixes: d10c80955265 ("writeback: implement foreign cgroup inode bdi_writeback switching")
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/inode.c