writeback: implement foreign cgroup inode detection
[linux-2.6-block.git] / fs / mpage.c
index 388fde6ac2553baecaae8427dff2fff7c23ff8a0..ca0244b69de8bad8939ebb904e8d90156a81773e 100644 (file)
@@ -614,6 +614,7 @@ alloc_new:
         * the confused fail path above (OOM) will be very confused when
         * it finds all bh marked clean (i.e. it will not write anything)
         */
+       wbc_account_io(wbc, page, PAGE_SIZE);
        length = first_unmapped << blkbits;
        if (bio_add_page(bio, page, length, 0) < length) {
                bio = mpage_bio_submit(WRITE, bio);