diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2016-07-04 00:34:39 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 07:52:25 -0400 |
commit | 751bebbe0ad261b3ac5d9e75eaec4d5fe9e23160 (patch) | |
tree | c2f8dc3e1ac4a18ef6789a2d86564e777f0d4f08 | |
parent | dda3245eca18c73413a854a834c41fc770feb0dd (diff) |
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>
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 70427ef66b04..acfe72004646 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c | |||
@@ -3856,7 +3856,7 @@ int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start, | |||
3856 | 3856 | ||
3857 | if (fs_info->chunk_root->sectorsize != PAGE_SIZE) { | 3857 | if (fs_info->chunk_root->sectorsize != PAGE_SIZE) { |
3858 | /* not supported for data w/o checksums */ | 3858 | /* not supported for data w/o checksums */ |
3859 | btrfs_err(fs_info, | 3859 | btrfs_err_rl(fs_info, |
3860 | "scrub: size assumption sectorsize != PAGE_SIZE " | 3860 | "scrub: size assumption sectorsize != PAGE_SIZE " |
3861 | "(%d != %lu) fails", | 3861 | "(%d != %lu) fails", |
3862 | fs_info->chunk_root->sectorsize, PAGE_SIZE); | 3862 | fs_info->chunk_root->sectorsize, PAGE_SIZE); |