X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fufs%2Fballoc.c;h=0d9ada173739c2c0ef701ff361afda1843cfd543;hb=6924d1ab8b7bbe5ab416713f5701b3316b2df85b;hp=841ac25fd95042f86d134330a13dafd8521521dd;hpb=e0cc09e295f346b7921e921f385fe5213472316a;p=linux-2.6 diff --git a/fs/ufs/balloc.c b/fs/ufs/balloc.c index 841ac25fd9..0d9ada1737 100644 --- a/fs/ufs/balloc.c +++ b/fs/ufs/balloc.c @@ -9,7 +9,6 @@ */ #include -#include #include #include #include @@ -19,6 +18,8 @@ #include #include +#include "ufs_fs.h" +#include "ufs.h" #include "swab.h" #include "util.h" @@ -276,7 +277,7 @@ static void ufs_change_blocknr(struct inode *inode, sector_t beg, if (!page)/* it was truncated */ continue; if (IS_ERR(page)) {/* or EIO */ - ufs_error(inode->i_sb, __FUNCTION__, + ufs_error(inode->i_sb, __func__, "read of page %llu failed\n", (unsigned long long)index); continue; @@ -307,15 +308,15 @@ static void ufs_change_blocknr(struct inode *inode, sector_t beg, ll_rw_block(READ, 1, &bh); wait_on_buffer(bh); if (!buffer_uptodate(bh)) { - ufs_error(inode->i_sb, __FUNCTION__, + ufs_error(inode->i_sb, __func__, "read of block failed\n"); break; } } UFSD(" change from %llu to %llu, pos %u\n", - (unsigned long long)pos + oldb, - (unsigned long long)pos + newb, pos); + (unsigned long long)(pos + oldb), + (unsigned long long)(pos + newb), pos); bh->b_blocknr = newb + pos; unmap_underlying_metadata(bh->b_bdev,