CIFS: add ONCE flag for cifs_dbg type
authorAurelien Aptel <aaptel@suse.com>
Tue, 10 Apr 2018 15:01:13 +0000 (17:01 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 11 Apr 2018 21:44:58 +0000 (16:44 -0500)
commitf2f176b418da96ae030c2f312c0ddb0e7b6ead21
tree72b9ef79421f3c675ac0d25339a473e45dfef8be
parent3995bbf53bd2047f2720c6fdd4bf38f6d942a0c0
CIFS: add ONCE flag for cifs_dbg type

* Since cifs_vfs_error was just using pr_debug_ratelimited like the rest
  of cifs_dbg, move it there too
* Add a ONCE type flag to call the pr_xxx_once() debug function instead
  of the ratelimited ones.

To convert existing printk_once() calls to this we can run:

    perl -i -pE \
      's/printk_once\s*\(([^" \n]+)(.*)/cifs_dbg(VFS|ONCE,$2/g' \
      fs/cifs/*.c

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h