nilfs2: hide function name argument from nilfs_error()
Simplify nilfs_error(), an output function used to report critical issues in file system. This renames the original nilfs_error() function to __nilfs_error() and redefines it as a macro to hide its function name argument within the macro. Every call site of nilfs_error() is changed to strip __func__ argument except nilfs_bmap_convert_error(); nilfs_bmap_convert_error() directly calls __nilfs_error() because it inherits caller's function name. Link: http://lkml.kernel.org/r/1464875891-5443-2-git-send-email-konishi.ryusuke@lab.ntt.co.jp Signed-off-by:Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/nilfs2/bmap.c 2 additions, 2 deletionsfs/nilfs2/bmap.c
- fs/nilfs2/dir.c 17 additions, 21 deletionsfs/nilfs2/dir.c
- fs/nilfs2/ifile.c 1 addition, 2 deletionsfs/nilfs2/ifile.c
- fs/nilfs2/nilfs.h 19 additions, 1 deletionfs/nilfs2/nilfs.h
- fs/nilfs2/super.c 12 additions, 10 deletionsfs/nilfs2/super.c
Please register or sign in to comment