aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/namei.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-28 05:16:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:45 -0400
commite05b6b524bd5c5c2bae1b64a7cbe08d46d57a6fe (patch)
treee5b5a7dbc57ccf8f6e425b7cb77249fdc534baca /fs/ext3/namei.c
parentfa1ff1e02fee908dfdc3f92902d39acc38041e4c (diff)
ext3: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: <linux-ext4@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r--fs/ext3/namei.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c
index 1a106572d63e..0b8cf80154f1 100644
--- a/fs/ext3/namei.c
+++ b/fs/ext3/namei.c
@@ -361,7 +361,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
361 if (root->info.hash_version != DX_HASH_TEA && 361 if (root->info.hash_version != DX_HASH_TEA &&
362 root->info.hash_version != DX_HASH_HALF_MD4 && 362 root->info.hash_version != DX_HASH_HALF_MD4 &&
363 root->info.hash_version != DX_HASH_LEGACY) { 363 root->info.hash_version != DX_HASH_LEGACY) {
364 ext3_warning(dir->i_sb, __FUNCTION__, 364 ext3_warning(dir->i_sb, __func__,
365 "Unrecognised inode hash code %d", 365 "Unrecognised inode hash code %d",
366 root->info.hash_version); 366 root->info.hash_version);
367 brelse(bh); 367 brelse(bh);
@@ -375,7 +375,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
375 hash = hinfo->hash; 375 hash = hinfo->hash;
376 376
377 if (root->info.unused_flags & 1) { 377 if (root->info.unused_flags & 1) {
378 ext3_warning(dir->i_sb, __FUNCTION__, 378 ext3_warning(dir->i_sb, __func__,
379 "Unimplemented inode hash flags: %#06x", 379 "Unimplemented inode hash flags: %#06x",
380 root->info.unused_flags); 380 root->info.unused_flags);
381 brelse(bh); 381 brelse(bh);
@@ -384,7 +384,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
384 } 384 }
385 385
386 if ((indirect = root->info.indirect_levels) > 1) { 386 if ((indirect = root->info.indirect_levels) > 1) {
387 ext3_warning(dir->i_sb, __FUNCTION__, 387 ext3_warning(dir->i_sb, __func__,
388 "Unimplemented inode hash depth: %#06x", 388 "Unimplemented inode hash depth: %#06x",
389 root->info.indirect_levels); 389 root->info.indirect_levels);
390 brelse(bh); 390 brelse(bh);
@@ -397,7 +397,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
397 397
398 if (dx_get_limit(entries) != dx_root_limit(dir, 398 if (dx_get_limit(entries) != dx_root_limit(dir,
399 root->info.info_length)) { 399 root->info.info_length)) {
400 ext3_warning(dir->i_sb, __FUNCTION__, 400 ext3_warning(dir->i_sb, __func__,
401 "dx entry: limit != root limit"); 401 "dx entry: limit != root limit");
402 brelse(bh); 402 brelse(bh);
403 *err = ERR_BAD_DX_DIR; 403 *err = ERR_BAD_DX_DIR;
@@ -409,7 +409,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
409 { 409 {
410 count = dx_get_count(entries); 410 count = dx_get_count(entries);
411 if (!count || count > dx_get_limit(entries)) { 411 if (!count || count > dx_get_limit(entries)) {
412 ext3_warning(dir->i_sb, __FUNCTION__, 412 ext3_warning(dir->i_sb, __func__,
413 "dx entry: no count or count > limit"); 413 "dx entry: no count or count > limit");
414 brelse(bh); 414 brelse(bh);
415 *err = ERR_BAD_DX_DIR; 415 *err = ERR_BAD_DX_DIR;
@@ -454,7 +454,7 @@ dx_probe(struct dentry *dentry, struct inode *dir,
454 goto fail2; 454 goto fail2;
455 at = entries = ((struct dx_node *) bh->b_data)->entries; 455 at = entries = ((struct dx_node *) bh->b_data)->entries;
456 if (dx_get_limit(entries) != dx_node_limit (dir)) { 456 if (dx_get_limit(entries) != dx_node_limit (dir)) {
457 ext3_warning(dir->i_sb, __FUNCTION__, 457 ext3_warning(dir->i_sb, __func__,
458 "dx entry: limit != node limit"); 458 "dx entry: limit != node limit");
459 brelse(bh); 459 brelse(bh);
460 *err = ERR_BAD_DX_DIR; 460 *err = ERR_BAD_DX_DIR;
@@ -470,7 +470,7 @@ fail2:
470 } 470 }
471fail: 471fail:
472 if (*err == ERR_BAD_DX_DIR) 472 if (*err == ERR_BAD_DX_DIR)
473 ext3_warning(dir->i_sb, __FUNCTION__, 473 ext3_warning(dir->i_sb, __func__,
474 "Corrupt dir inode %ld, running e2fsck is " 474 "Corrupt dir inode %ld, running e2fsck is "
475 "recommended.", dir->i_ino); 475 "recommended.", dir->i_ino);
476 return NULL; 476 return NULL;
@@ -918,7 +918,7 @@ restart:
918 wait_on_buffer(bh); 918 wait_on_buffer(bh);
919 if (!buffer_uptodate(bh)) { 919 if (!buffer_uptodate(bh)) {
920 /* read error, skip block & hope for the best */ 920 /* read error, skip block & hope for the best */
921 ext3_error(sb, __FUNCTION__, "reading directory #%lu " 921 ext3_error(sb, __func__, "reading directory #%lu "
922 "offset %lu", dir->i_ino, block); 922 "offset %lu", dir->i_ino, block);
923 brelse(bh); 923 brelse(bh);
924 goto next; 924 goto next;
@@ -1010,7 +1010,7 @@ static struct buffer_head * ext3_dx_find_entry(struct dentry *dentry,
1010 retval = ext3_htree_next_block(dir, hash, frame, 1010 retval = ext3_htree_next_block(dir, hash, frame,
1011 frames, NULL); 1011 frames, NULL);
1012 if (retval < 0) { 1012 if (retval < 0) {
1013 ext3_warning(sb, __FUNCTION__, 1013 ext3_warning(sb, __func__,
1014 "error reading index page in directory #%lu", 1014 "error reading index page in directory #%lu",
1015 dir->i_ino); 1015 dir->i_ino);
1016 *err = retval; 1016 *err = retval;
@@ -1535,7 +1535,7 @@ static int ext3_dx_add_entry(handle_t *handle, struct dentry *dentry,
1535 1535
1536 if (levels && (dx_get_count(frames->entries) == 1536 if (levels && (dx_get_count(frames->entries) ==
1537 dx_get_limit(frames->entries))) { 1537 dx_get_limit(frames->entries))) {
1538 ext3_warning(sb, __FUNCTION__, 1538 ext3_warning(sb, __func__,
1539 "Directory index full!"); 1539 "Directory index full!");
1540 err = -ENOSPC; 1540 err = -ENOSPC;
1541 goto cleanup; 1541 goto cleanup;
@@ -1837,11 +1837,11 @@ static int empty_dir (struct inode * inode)
1837 if (inode->i_size < EXT3_DIR_REC_LEN(1) + EXT3_DIR_REC_LEN(2) || 1837 if (inode->i_size < EXT3_DIR_REC_LEN(1) + EXT3_DIR_REC_LEN(2) ||
1838 !(bh = ext3_bread (NULL, inode, 0, 0, &err))) { 1838 !(bh = ext3_bread (NULL, inode, 0, 0, &err))) {
1839 if (err) 1839 if (err)
1840 ext3_error(inode->i_sb, __FUNCTION__, 1840 ext3_error(inode->i_sb, __func__,
1841 "error %d reading directory #%lu offset 0", 1841 "error %d reading directory #%lu offset 0",
1842 err, inode->i_ino); 1842 err, inode->i_ino);
1843 else 1843 else
1844 ext3_warning(inode->i_sb, __FUNCTION__, 1844 ext3_warning(inode->i_sb, __func__,
1845 "bad directory (dir #%lu) - no data block", 1845 "bad directory (dir #%lu) - no data block",
1846 inode->i_ino); 1846 inode->i_ino);
1847 return 1; 1847 return 1;
@@ -1870,7 +1870,7 @@ static int empty_dir (struct inode * inode)
1870 offset >> EXT3_BLOCK_SIZE_BITS(sb), 0, &err); 1870 offset >> EXT3_BLOCK_SIZE_BITS(sb), 0, &err);
1871 if (!bh) { 1871 if (!bh) {
1872 if (err) 1872 if (err)
1873 ext3_error(sb, __FUNCTION__, 1873 ext3_error(sb, __func__,
1874 "error %d reading directory" 1874 "error %d reading directory"
1875 " #%lu offset %lu", 1875 " #%lu offset %lu",
1876 err, inode->i_ino, offset); 1876 err, inode->i_ino, offset);