aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r--fs/ext4/namei.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 63c33e053478..02cdaec39e21 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -353,7 +353,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
353 if (root->info.hash_version != DX_HASH_TEA && 353 if (root->info.hash_version != DX_HASH_TEA &&
354 root->info.hash_version != DX_HASH_HALF_MD4 && 354 root->info.hash_version != DX_HASH_HALF_MD4 &&
355 root->info.hash_version != DX_HASH_LEGACY) { 355 root->info.hash_version != DX_HASH_LEGACY) {
356 ext4_warning(dir->i_sb, __FUNCTION__, 356 ext4_warning(dir->i_sb, __func__,
357 "Unrecognised inode hash code %d", 357 "Unrecognised inode hash code %d",
358 root->info.hash_version); 358 root->info.hash_version);
359 brelse(bh); 359 brelse(bh);
@@ -367,7 +367,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
367 hash = hinfo->hash; 367 hash = hinfo->hash;
368 368
369 if (root->info.unused_flags & 1) { 369 if (root->info.unused_flags & 1) {
370 ext4_warning(dir->i_sb, __FUNCTION__, 370 ext4_warning(dir->i_sb, __func__,
371 "Unimplemented inode hash flags: %#06x", 371 "Unimplemented inode hash flags: %#06x",
372 root->info.unused_flags); 372 root->info.unused_flags);
373 brelse(bh); 373 brelse(bh);
@@ -376,7 +376,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
376 } 376 }
377 377
378 if ((indirect = root->info.indirect_levels) > 1) { 378 if ((indirect = root->info.indirect_levels) > 1) {
379 ext4_warning(dir->i_sb, __FUNCTION__, 379 ext4_warning(dir->i_sb, __func__,
380 "Unimplemented inode hash depth: %#06x", 380 "Unimplemented inode hash depth: %#06x",
381 root->info.indirect_levels); 381 root->info.indirect_levels);
382 brelse(bh); 382 brelse(bh);
@@ -389,7 +389,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
389 389
390 if (dx_get_limit(entries) != dx_root_limit(dir, 390 if (dx_get_limit(entries) != dx_root_limit(dir,
391 root->info.info_length)) { 391 root->info.info_length)) {
392 ext4_warning(dir->i_sb, __FUNCTION__, 392 ext4_warning(dir->i_sb, __func__,
393 "dx entry: limit != root limit"); 393 "dx entry: limit != root limit");
394 brelse(bh); 394 brelse(bh);
395 *err = ERR_BAD_DX_DIR; 395 *err = ERR_BAD_DX_DIR;
@@ -401,7 +401,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
401 { 401 {
402 count = dx_get_count(entries); 402 count = dx_get_count(entries);
403 if (!count || count > dx_get_limit(entries)) { 403 if (!count || count > dx_get_limit(entries)) {
404 ext4_warning(dir->i_sb, __FUNCTION__, 404 ext4_warning(dir->i_sb, __func__,
405 "dx entry: no count or count > limit"); 405 "dx entry: no count or count > limit");
406 brelse(bh); 406 brelse(bh);
407 *err = ERR_BAD_DX_DIR; 407 *err = ERR_BAD_DX_DIR;
@@ -446,7 +446,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
446 goto fail2; 446 goto fail2;
447 at = entries = ((struct dx_node *) bh->b_data)->entries; 447 at = entries = ((struct dx_node *) bh->b_data)->entries;
448 if (dx_get_limit(entries) != dx_node_limit (dir)) { 448 if (dx_get_limit(entries) != dx_node_limit (dir)) {
449 ext4_warning(dir->i_sb, __FUNCTION__, 449 ext4_warning(dir->i_sb, __func__,
450 "dx entry: limit != node limit"); 450 "dx entry: limit != node limit");
451 brelse(bh); 451 brelse(bh);
452 *err = ERR_BAD_DX_DIR; 452 *err = ERR_BAD_DX_DIR;
@@ -462,7 +462,7 @@ fail2:
462 } 462 }
463fail: 463fail:
464 if (*err == ERR_BAD_DX_DIR) 464 if (*err == ERR_BAD_DX_DIR)
465 ext4_warning(dir->i_sb, __FUNCTION__, 465 ext4_warning(dir->i_sb, __func__,
466 "Corrupt dir inode %ld, running e2fsck is " 466 "Corrupt dir inode %ld, running e2fsck is "
467 "recommended.", dir->i_ino); 467 "recommended.", dir->i_ino);
468 return NULL; 468 return NULL;
@@ -919,7 +919,7 @@ restart:
919 wait_on_buffer(bh); 919 wait_on_buffer(bh);
920 if (!buffer_uptodate(bh)) { 920 if (!buffer_uptodate(bh)) {
921 /* read error, skip block & hope for the best */ 921 /* read error, skip block & hope for the best */
922 ext4_error(sb, __FUNCTION__, "reading directory #%lu " 922 ext4_error(sb, __func__, "reading directory #%lu "
923 "offset %lu", dir->i_ino, 923 "offset %lu", dir->i_ino,
924 (unsigned long)block); 924 (unsigned long)block);
925 brelse(bh); 925 brelse(bh);
@@ -1012,7 +1012,7 @@ static struct buffer_head * ext4_dx_find_entry(struct dentry *dentry,
1012 retval = ext4_htree_next_block(dir, hash, frame, 1012 retval = ext4_htree_next_block(dir, hash, frame,
1013 frames, NULL); 1013 frames, NULL);
1014 if (retval < 0) { 1014 if (retval < 0) {
1015 ext4_warning(sb, __FUNCTION__, 1015 ext4_warning(sb, __func__,
1016 "error reading index page in directory #%lu", 1016 "error reading index page in directory #%lu",
1017 dir->i_ino); 1017 dir->i_ino);
1018 *err = retval; 1018 *err = retval;
@@ -1537,7 +1537,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
1537 1537
1538 if (levels && (dx_get_count(frames->entries) == 1538 if (levels && (dx_get_count(frames->entries) ==
1539 dx_get_limit(frames->entries))) { 1539 dx_get_limit(frames->entries))) {
1540 ext4_warning(sb, __FUNCTION__, 1540 ext4_warning(sb, __func__,
1541 "Directory index full!"); 1541 "Directory index full!");
1542 err = -ENOSPC; 1542 err = -ENOSPC;
1543 goto cleanup; 1543 goto cleanup;
@@ -1865,11 +1865,11 @@ static int empty_dir (struct inode * inode)
1865 if (inode->i_size < EXT4_DIR_REC_LEN(1) + EXT4_DIR_REC_LEN(2) || 1865 if (inode->i_size < EXT4_DIR_REC_LEN(1) + EXT4_DIR_REC_LEN(2) ||
1866 !(bh = ext4_bread (NULL, inode, 0, 0, &err))) { 1866 !(bh = ext4_bread (NULL, inode, 0, 0, &err))) {
1867 if (err) 1867 if (err)
1868 ext4_error(inode->i_sb, __FUNCTION__, 1868 ext4_error(inode->i_sb, __func__,
1869 "error %d reading directory #%lu offset 0", 1869 "error %d reading directory #%lu offset 0",
1870 err, inode->i_ino); 1870 err, inode->i_ino);
1871 else 1871 else
1872 ext4_warning(inode->i_sb, __FUNCTION__, 1872 ext4_warning(inode->i_sb, __func__,
1873 "bad directory (dir #%lu) - no data block", 1873 "bad directory (dir #%lu) - no data block",
1874 inode->i_ino); 1874 inode->i_ino);
1875 return 1; 1875 return 1;
@@ -1898,7 +1898,7 @@ static int empty_dir (struct inode * inode)
1898 offset >> EXT4_BLOCK_SIZE_BITS(sb), 0, &err); 1898 offset >> EXT4_BLOCK_SIZE_BITS(sb), 0, &err);
1899 if (!bh) { 1899 if (!bh) {
1900 if (err) 1900 if (err)
1901 ext4_error(sb, __FUNCTION__, 1901 ext4_error(sb, __func__,
1902 "error %d reading directory" 1902 "error %d reading directory"
1903 " #%lu offset %lu", 1903 " #%lu offset %lu",
1904 err, inode->i_ino, offset); 1904 err, inode->i_ino, offset);