Commit de146a08 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] block2mtd: avoid touching truncate_count

blockmtd doesn't need to initialise address_space.truncate_count:
open_bdev_excl did that.

Plus I have a patch queued up which removes ->truncate_count.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 042ac4ab
......@@ -324,7 +324,6 @@ static struct blockmtd_dev *add_device(char *devname, int erase_size)
goto devinit_err;
}
atomic_set(&bdev->bd_inode->i_mapping->truncate_count, 0);
init_MUTEX(&dev->write_mutex);
/* Setup the MTD structure */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment