diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:12:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:20 -0400 |
commit | f403d1dbac6d1ef28f553f3996d5bb5cea90ce15 (patch) | |
tree | 08e96ff86dcaf465b8e2ce4c27158b211f789188 /fs/efs/namei.c | |
parent | 179b87fb186b524ec75a5d54c0d7f25e8d559415 (diff) |
fs/efs: add pr_fmt / use __func__
Also uniformize function arguments.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs/namei.c')
-rw-r--r-- | fs/efs/namei.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/efs/namei.c b/fs/efs/namei.c index 527d0b914915..356c044e2cd3 100644 --- a/fs/efs/namei.c +++ b/fs/efs/namei.c | |||
@@ -23,20 +23,22 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) | |||
23 | efs_block_t block; | 23 | efs_block_t block; |
24 | 24 | ||
25 | if (inode->i_size & (EFS_DIRBSIZE-1)) | 25 | if (inode->i_size & (EFS_DIRBSIZE-1)) |
26 | pr_warn("EFS: WARNING: find_entry(): directory size not a multiple of EFS_DIRBSIZE\n"); | 26 | pr_warn("%s(): directory size not a multiple of EFS_DIRBSIZE\n", |
27 | __func__); | ||
27 | 28 | ||
28 | for(block = 0; block < inode->i_blocks; block++) { | 29 | for(block = 0; block < inode->i_blocks; block++) { |
29 | 30 | ||
30 | bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); | 31 | bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); |
31 | if (!bh) { | 32 | if (!bh) { |
32 | pr_err("EFS: find_entry(): failed to read dir block %d\n", block); | 33 | pr_err("%s(): failed to read dir block %d\n", |
34 | __func__, block); | ||
33 | return 0; | 35 | return 0; |
34 | } | 36 | } |
35 | 37 | ||
36 | dirblock = (struct efs_dir *) bh->b_data; | 38 | dirblock = (struct efs_dir *) bh->b_data; |
37 | 39 | ||
38 | if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { | 40 | if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { |
39 | pr_err("EFS: find_entry(): invalid directory block\n"); | 41 | pr_err("%s(): invalid directory block\n", __func__); |
40 | brelse(bh); | 42 | brelse(bh); |
41 | return(0); | 43 | return(0); |
42 | } | 44 | } |