Btrfs: subpage-blocksize: Rate limit scrub error message
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Mon, 4 Jul 2016 04:34:39 +0000 (10:04 +0530)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:52:25 +0000 (13:52 +0200)
commit751bebbe0ad261b3ac5d9e75eaec4d5fe9e23160
treec2f8dc3e1ac4a18ef6789a2d86564e777f0d4f08
parentdda3245eca18c73413a854a834c41fc770feb0dd
Btrfs: subpage-blocksize: Rate limit scrub error message

btrfs/073 invokes scrub ioctl in a tight loop. In subpage-blocksize
scenario this results in a lot of "scrub: size assumption sectorsize !=
PAGE_SIZE " messages being printed on the console. To reduce the number
of such messages this commit uses btrfs_err_rl() instead of
btrfs_err().

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c