Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75623543 authored by Asutosh Das's avatar Asutosh Das
Browse files

fat: limit the number of error prints



Use fat_fs_error_ratelimit instead of fat_fs_error so as to
avoid large number of prints.

Change-Id: I2e21e6bd0c8e7e79d3ced9c213668c405fd6260d
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent f75c756e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -296,7 +296,8 @@ static int fat_bmap_cluster(struct inode *inode, int cluster)
	if (ret < 0)
		return ret;
	else if (ret == FAT_ENT_EOF) {
		fat_fs_error(sb, "%s: request beyond EOF (i_pos %lld)",
		fat_fs_error_ratelimit(sb,
				       "%s: request beyond EOF (i_pos %lld)",
				       __func__, MSDOS_I(inode)->i_pos);
		return -EIO;
	}