lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87d365o4xt.fsf@devron.myhome.or.jp>
Date:	Wed, 16 May 2012 00:10:54 +0900
From:	OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Namjae Jeon <linkinjeon@...il.com>, linux-kernel@...r.kernel.org,
	joe@...ches.com, Amit Sahrawat <amit.sahrawat83@...il.com>
Subject: Re: [PATCH 1/2] fat: add fat_msg_ratelimit.

Namjae Jeon <linkinjeon@...il.com> writes:

> I tried to add fat_msg_ratelimit to limit many message at once.
>
> Signed-off-by: Namjae Jeon <linkinjeon@...il.com>
> Signed-off-by: Amit Sahrawat <amit.sahrawat83@...il.com>
> Acked-by: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>

Thanks.

Please handle those patches, Andrew.

>  fs/fat/fat.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/fs/fat/fat.h b/fs/fat/fat.h
> index 951d12b..1708d9a 100644
> --- a/fs/fat/fat.h
> +++ b/fs/fat/fat.h
> @@ -335,6 +335,11 @@ void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...);
>  	__fat_fs_error(sb, __ratelimit(&MSDOS_SB(sb)->ratelimit), fmt , ## args)
>  __printf(3, 4) __cold
>  void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...);
> +#define fat_msg_ratelimit(sb, level, fmt, args...)	\
> +	do {	\
> +			if (__ratelimit(&MSDOS_SB(sb)->ratelimit))	\
> +				fat_msg(sb, level, fmt, ## args);	\
> +	 } while (0)
>  extern int fat_clusters_flush(struct super_block *sb);
>  extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster);
>  extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts,

-- 
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ