Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

treewide: change inode->i_ino from unsigned long to u64

On 32-bit architectures, unsigned long is only 32 bits wide, which
causes 64-bit inode numbers to be silently truncated. Several
filesystems (NFS, XFS, BTRFS, etc.) can generate inode numbers that
exceed 32 bits, and this truncation can lead to inode number collisions
and other subtle bugs on 32-bit systems.

Change the type of inode->i_ino from unsigned long to u64 to ensure that
inode numbers are always represented as 64-bit values regardless of
architecture. Update all format specifiers treewide from %lu/%lx to
%llu/%llx to match the new type, along with corresponding local variable
types.

This is the bulk treewide conversion. Earlier patches in this series
handled trace events separately to allow trace field reordering for
better struct packing on 32-bit.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260304-iino-u64-v3-12-2257ad83d372@kernel.org
Acked-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jeff Layton and committed by
Christian Brauner
0b2600f8 d84c70c6

+607 -607
+1 -1
drivers/dma-buf/dma-buf.c
··· 1708 1708 1709 1709 1710 1710 spin_lock(&buf_obj->name_lock); 1711 - seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\t%08lu\t%s\n", 1711 + seq_printf(s, "%08zu\t%08x\t%08x\t%08ld\t%s\t%08llu\t%s\n", 1712 1712 buf_obj->size, 1713 1713 buf_obj->file->f_flags, buf_obj->file->f_mode, 1714 1714 file_count(buf_obj->file),
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
··· 1676 1676 attachment = READ_ONCE(bo->tbo.base.import_attach); 1677 1677 1678 1678 if (attachment) 1679 - seq_printf(m, " imported from ino:%lu", file_inode(dma_buf->file)->i_ino); 1679 + seq_printf(m, " imported from ino:%llu", file_inode(dma_buf->file)->i_ino); 1680 1680 else if (dma_buf) 1681 - seq_printf(m, " exported as ino:%lu", file_inode(dma_buf->file)->i_ino); 1681 + seq_printf(m, " exported as ino:%llu", file_inode(dma_buf->file)->i_ino); 1682 1682 1683 1683 amdgpu_bo_print_flag(m, bo, CPU_ACCESS_REQUIRED); 1684 1684 amdgpu_bo_print_flag(m, bo, NO_CPU_ACCESS);
+2 -2
fs/9p/vfs_addr.c
··· 36 36 37 37 fid = v9fs_fid_find_inode(wreq->inode, true, INVALID_UID, true); 38 38 if (!fid) { 39 - WARN_ONCE(1, "folio expected an open fid inode->i_ino=%lx\n", 39 + WARN_ONCE(1, "folio expected an open fid inode->i_ino=%llx\n", 40 40 wreq->inode->i_ino); 41 41 return; 42 42 } ··· 133 133 return 0; 134 134 135 135 no_fid: 136 - WARN_ONCE(1, "folio expected an open fid inode->i_ino=%lx\n", 136 + WARN_ONCE(1, "folio expected an open fid inode->i_ino=%llx\n", 137 137 rreq->inode->i_ino); 138 138 return -EINVAL; 139 139 }
+3 -3
fs/9p/vfs_inode.c
··· 1245 1245 v9fs_vfs_symlink(struct mnt_idmap *idmap, struct inode *dir, 1246 1246 struct dentry *dentry, const char *symname) 1247 1247 { 1248 - p9_debug(P9_DEBUG_VFS, " %lu,%pd,%s\n", 1248 + p9_debug(P9_DEBUG_VFS, " %llu,%pd,%s\n", 1249 1249 dir->i_ino, dentry, symname); 1250 1250 1251 1251 return v9fs_vfs_mkspecial(dir, dentry, P9_DMSYMLINK, symname); ··· 1269 1269 char name[1 + U32_MAX_DIGITS + 2]; /* sign + number + \n + \0 */ 1270 1270 struct p9_fid *oldfid; 1271 1271 1272 - p9_debug(P9_DEBUG_VFS, " %lu,%pd,%pd\n", 1272 + p9_debug(P9_DEBUG_VFS, " %llu,%pd,%pd\n", 1273 1273 dir->i_ino, dentry, old_dentry); 1274 1274 1275 1275 oldfid = v9fs_fid_clone(old_dentry); ··· 1305 1305 char name[2 + U32_MAX_DIGITS + 1 + U32_MAX_DIGITS + 1]; 1306 1306 u32 perm; 1307 1307 1308 - p9_debug(P9_DEBUG_VFS, " %lu,%pd mode: %x MAJOR: %u MINOR: %u\n", 1308 + p9_debug(P9_DEBUG_VFS, " %llu,%pd mode: %x MAJOR: %u MINOR: %u\n", 1309 1309 dir->i_ino, dentry, mode, 1310 1310 MAJOR(rdev), MINOR(rdev)); 1311 1311
+3 -3
fs/9p/vfs_inode_dotl.c
··· 691 691 struct p9_fid *fid = NULL; 692 692 693 693 name = dentry->d_name.name; 694 - p9_debug(P9_DEBUG_VFS, "%lu,%s,%s\n", dir->i_ino, name, symname); 694 + p9_debug(P9_DEBUG_VFS, "%llu,%s,%s\n", dir->i_ino, name, symname); 695 695 696 696 dfid = v9fs_parent_fid(dentry); 697 697 if (IS_ERR(dfid)) { ··· 734 734 struct p9_fid *dfid, *oldfid; 735 735 struct v9fs_session_info *v9ses; 736 736 737 - p9_debug(P9_DEBUG_VFS, "dir ino: %lu, old_name: %pd, new_name: %pd\n", 737 + p9_debug(P9_DEBUG_VFS, "dir ino: %llu, old_name: %pd, new_name: %pd\n", 738 738 dir->i_ino, old_dentry, dentry); 739 739 740 740 v9ses = v9fs_inode2v9ses(dir); ··· 798 798 struct p9_qid qid; 799 799 struct posix_acl *dacl = NULL, *pacl = NULL; 800 800 801 - p9_debug(P9_DEBUG_VFS, " %lu,%pd mode: %x MAJOR: %u MINOR: %u\n", 801 + p9_debug(P9_DEBUG_VFS, " %llu,%pd mode: %x MAJOR: %u MINOR: %u\n", 802 802 dir->i_ino, dentry, omode, 803 803 MAJOR(rdev), MINOR(rdev)); 804 804
+5 -5
fs/affs/amigaffs.c
··· 33 33 ino = bh->b_blocknr; 34 34 offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]); 35 35 36 - pr_debug("%s(dir=%lu, ino=%d)\n", __func__, dir->i_ino, ino); 36 + pr_debug("%s(dir=%llu, ino=%d)\n", __func__, dir->i_ino, ino); 37 37 38 38 dir_bh = affs_bread(sb, dir->i_ino); 39 39 if (!dir_bh) ··· 83 83 sb = dir->i_sb; 84 84 rem_ino = rem_bh->b_blocknr; 85 85 offset = affs_hash_name(sb, AFFS_TAIL(sb, rem_bh)->name+1, AFFS_TAIL(sb, rem_bh)->name[0]); 86 - pr_debug("%s(dir=%lu, ino=%d, hashval=%d)\n", __func__, dir->i_ino, 86 + pr_debug("%s(dir=%llu, ino=%d, hashval=%d)\n", __func__, dir->i_ino, 87 87 rem_ino, offset); 88 88 89 89 bh = affs_bread(sb, dir->i_ino); ··· 128 128 spin_lock(&inode->i_lock); 129 129 hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) { 130 130 if (entry_ino == (u32)(long)dentry->d_fsdata) { 131 - dentry->d_fsdata = (void *)inode->i_ino; 131 + dentry->d_fsdata = (void *)(unsigned long)inode->i_ino; 132 132 break; 133 133 } 134 134 } ··· 147 147 u32 link_ino, ino; 148 148 int retval; 149 149 150 - pr_debug("%s(key=%ld)\n", __func__, inode->i_ino); 150 + pr_debug("%s(key=%llu)\n", __func__, inode->i_ino); 151 151 retval = -EIO; 152 152 bh = affs_bread(sb, inode->i_ino); 153 153 if (!bh) ··· 279 279 if (!inode) 280 280 goto done; 281 281 282 - pr_debug("%s(key=%ld)\n", __func__, inode->i_ino); 282 + pr_debug("%s(key=%llu)\n", __func__, inode->i_ino); 283 283 retval = -EIO; 284 284 bh = affs_bread(sb, (u32)(long)dentry->d_fsdata); 285 285 if (!bh)
+1 -1
fs/affs/bitmap.c
··· 125 125 sb = inode->i_sb; 126 126 sbi = AFFS_SB(sb); 127 127 128 - pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); 128 + pr_debug("balloc(inode=%llu,goal=%u): ", inode->i_ino, goal); 129 129 130 130 if (AFFS_I(inode)->i_pa_cnt) { 131 131 pr_debug("%d\n", AFFS_I(inode)->i_lastalloc+1);
+1 -1
fs/affs/dir.c
··· 90 90 u32 ino; 91 91 int error = 0; 92 92 93 - pr_debug("%s(ino=%lu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos); 93 + pr_debug("%s(ino=%llu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos); 94 94 95 95 if (ctx->pos < 2) { 96 96 data->ino = 0;
+10 -10
fs/affs/file.c
··· 24 24 static int 25 25 affs_file_open(struct inode *inode, struct file *filp) 26 26 { 27 - pr_debug("open(%lu,%d)\n", 27 + pr_debug("open(%llu,%d)\n", 28 28 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); 29 29 atomic_inc(&AFFS_I(inode)->i_opencnt); 30 30 return 0; ··· 33 33 static int 34 34 affs_file_release(struct inode *inode, struct file *filp) 35 35 { 36 - pr_debug("release(%lu, %d)\n", 36 + pr_debug("release(%llu, %d)\n", 37 37 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); 38 38 39 39 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { ··· 301 301 struct buffer_head *ext_bh; 302 302 u32 ext; 303 303 304 - pr_debug("%s(%lu, %llu)\n", __func__, inode->i_ino, 304 + pr_debug("%s(%llu, %llu)\n", __func__, inode->i_ino, 305 305 (unsigned long long)block); 306 306 307 307 BUG_ON(block > (sector_t)0x7fffffffUL); ··· 534 534 size_t bidx, boff, bsize; 535 535 u32 tmp; 536 536 537 - pr_debug("%s(%lu, %ld, 0, %zu)\n", __func__, inode->i_ino, 537 + pr_debug("%s(%llu, %ld, 0, %zu)\n", __func__, inode->i_ino, 538 538 folio->index, to); 539 539 BUG_ON(to > folio_size(folio)); 540 540 bsize = AFFS_SB(sb)->s_data_blksize; ··· 566 566 u32 size, bsize; 567 567 u32 tmp; 568 568 569 - pr_debug("%s(%lu, %d)\n", __func__, inode->i_ino, newsize); 569 + pr_debug("%s(%llu, %d)\n", __func__, inode->i_ino, newsize); 570 570 bsize = AFFS_SB(sb)->s_data_blksize; 571 571 bh = NULL; 572 572 size = AFFS_I(inode)->mmu_private; ··· 634 634 size_t to; 635 635 int err; 636 636 637 - pr_debug("%s(%lu, %ld)\n", __func__, inode->i_ino, folio->index); 637 + pr_debug("%s(%llu, %ld)\n", __func__, inode->i_ino, folio->index); 638 638 to = folio_size(folio); 639 639 if (folio_pos(folio) + to > inode->i_size) { 640 640 to = inode->i_size - folio_pos(folio); ··· 658 658 pgoff_t index; 659 659 int err = 0; 660 660 661 - pr_debug("%s(%lu, %llu, %llu)\n", __func__, inode->i_ino, pos, 661 + pr_debug("%s(%llu, %llu, %llu)\n", __func__, inode->i_ino, pos, 662 662 pos + len); 663 663 if (pos > AFFS_I(inode)->mmu_private) { 664 664 /* XXX: this probably leaves a too-big i_size in case of ··· 710 710 * due to write_begin. 711 711 */ 712 712 713 - pr_debug("%s(%lu, %llu, %llu)\n", __func__, inode->i_ino, pos, 713 + pr_debug("%s(%llu, %llu, %llu)\n", __func__, inode->i_ino, pos, 714 714 pos + len); 715 715 bsize = AFFS_SB(sb)->s_data_blksize; 716 716 data = folio_address(folio); ··· 854 854 { 855 855 struct super_block *sb = inode->i_sb; 856 856 857 - pr_debug("free_prealloc(ino=%lu)\n", inode->i_ino); 857 + pr_debug("free_prealloc(ino=%llu)\n", inode->i_ino); 858 858 859 859 while (AFFS_I(inode)->i_pa_cnt) { 860 860 AFFS_I(inode)->i_pa_cnt--; ··· 874 874 struct buffer_head *ext_bh; 875 875 int i; 876 876 877 - pr_debug("truncate(inode=%lu, oldsize=%llu, newsize=%llu)\n", 877 + pr_debug("truncate(inode=%llu, oldsize=%llu, newsize=%llu)\n", 878 878 inode->i_ino, AFFS_I(inode)->mmu_private, inode->i_size); 879 879 880 880 last_blk = 0;
+6 -6
fs/affs/inode.c
··· 32 32 if (!(inode_state_read_once(inode) & I_NEW)) 33 33 return inode; 34 34 35 - pr_debug("affs_iget(%lu)\n", inode->i_ino); 35 + pr_debug("affs_iget(%llu)\n", inode->i_ino); 36 36 37 37 block = inode->i_ino; 38 38 bh = affs_bread(sb, block); ··· 171 171 uid_t uid; 172 172 gid_t gid; 173 173 174 - pr_debug("write_inode(%lu)\n", inode->i_ino); 174 + pr_debug("write_inode(%llu)\n", inode->i_ino); 175 175 176 176 if (!inode->i_nlink) 177 177 // possibly free block 178 178 return 0; 179 179 bh = affs_bread(sb, inode->i_ino); 180 180 if (!bh) { 181 - affs_error(sb,"write_inode","Cannot read block %lu",inode->i_ino); 181 + affs_error(sb, "write_inode", "Cannot read block %llu", inode->i_ino); 182 182 return -EIO; 183 183 } 184 184 tail = AFFS_TAIL(sb, bh); ··· 219 219 struct inode *inode = d_inode(dentry); 220 220 int error; 221 221 222 - pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid); 222 + pr_debug("notify_change(%llu,0x%x)\n", inode->i_ino, attr->ia_valid); 223 223 224 224 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); 225 225 if (error) ··· 260 260 affs_evict_inode(struct inode *inode) 261 261 { 262 262 unsigned long cache_page; 263 - pr_debug("evict_inode(ino=%lu, nlink=%u)\n", 263 + pr_debug("evict_inode(ino=%llu, nlink=%u)\n", 264 264 inode->i_ino, inode->i_nlink); 265 265 truncate_inode_pages_final(&inode->i_data); 266 266 ··· 353 353 u32 block = 0; 354 354 int retval; 355 355 356 - pr_debug("%s(dir=%lu, inode=%lu, \"%pd\", type=%d)\n", __func__, 356 + pr_debug("%s(dir=%llu, inode=%llu, \"%pd\", type=%d)\n", __func__, 357 357 dir->i_ino, inode->i_ino, dentry, type); 358 358 359 359 retval = -EIO;
+7 -7
fs/affs/namei.c
··· 235 235 int 236 236 affs_unlink(struct inode *dir, struct dentry *dentry) 237 237 { 238 - pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, 238 + pr_debug("%s(dir=%llu, %llu \"%pd\")\n", __func__, dir->i_ino, 239 239 d_inode(dentry)->i_ino, dentry); 240 240 241 241 return affs_remove_header(dentry); ··· 249 249 struct inode *inode; 250 250 int error; 251 251 252 - pr_debug("%s(%lu,\"%pd\",0%ho)\n", 252 + pr_debug("%s(%llu,\"%pd\",0%ho)\n", 253 253 __func__, dir->i_ino, dentry, mode); 254 254 255 255 inode = affs_new_inode(dir); ··· 280 280 struct inode *inode; 281 281 int error; 282 282 283 - pr_debug("%s(%lu,\"%pd\",0%ho)\n", 283 + pr_debug("%s(%llu,\"%pd\",0%ho)\n", 284 284 __func__, dir->i_ino, dentry, mode); 285 285 286 286 inode = affs_new_inode(dir); ··· 306 306 int 307 307 affs_rmdir(struct inode *dir, struct dentry *dentry) 308 308 { 309 - pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, 309 + pr_debug("%s(dir=%llu, %llu \"%pd\")\n", __func__, dir->i_ino, 310 310 d_inode(dentry)->i_ino, dentry); 311 311 312 312 return affs_remove_header(dentry); ··· 323 323 int i, maxlen, error; 324 324 char c, lc; 325 325 326 - pr_debug("%s(%lu,\"%pd\" -> \"%s\")\n", 326 + pr_debug("%s(%llu,\"%pd\" -> \"%s\")\n", 327 327 __func__, dir->i_ino, dentry, symname); 328 328 329 329 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; ··· 395 395 { 396 396 struct inode *inode = d_inode(old_dentry); 397 397 398 - pr_debug("%s(%lu, %lu, \"%pd\")\n", __func__, inode->i_ino, dir->i_ino, 398 + pr_debug("%s(%llu, %llu, \"%pd\")\n", __func__, inode->i_ino, dir->i_ino, 399 399 dentry); 400 400 401 401 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); ··· 511 511 if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE)) 512 512 return -EINVAL; 513 513 514 - pr_debug("%s(old=%lu,\"%pd\" to new=%lu,\"%pd\")\n", __func__, 514 + pr_debug("%s(old=%llu,\"%pd\" to new=%llu,\"%pd\")\n", __func__, 515 515 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); 516 516 517 517 if (flags & RENAME_EXCHANGE)
+1 -1
fs/affs/symlink.c
··· 21 21 char c; 22 22 char lc; 23 23 24 - pr_debug("get_link(ino=%lu)\n", inode->i_ino); 24 + pr_debug("get_link(ino=%llu)\n", inode->i_ino); 25 25 26 26 bh = affs_bread(inode->i_sb, inode->i_ino); 27 27 if (!bh)
+5 -5
fs/afs/dir.c
··· 148 148 union afs_xdr_dir_block *block) 149 149 { 150 150 if (block->hdr.magic != AFS_DIR_MAGIC) { 151 - pr_warn("%s(%lx): [%zx] bad magic %04x\n", 151 + pr_warn("%s(%llx): [%zx] bad magic %04x\n", 152 152 __func__, dvnode->netfs.inode.i_ino, 153 153 progress, ntohs(block->hdr.magic)); 154 154 trace_afs_dir_check_failed(dvnode, progress); ··· 214 214 */ 215 215 static int afs_dir_open(struct inode *inode, struct file *file) 216 216 { 217 - _enter("{%lu}", inode->i_ino); 217 + _enter("{%llu}", inode->i_ino); 218 218 219 219 BUILD_BUG_ON(sizeof(union afs_xdr_dir_block) != 2048); 220 220 BUILD_BUG_ON(sizeof(union afs_xdr_dirent) != 32); ··· 523 523 int retry_limit = 100; 524 524 int ret; 525 525 526 - _enter("{%lu},%llx,,", dir->i_ino, ctx->pos); 526 + _enter("{%llu},%llx,,", dir->i_ino, ctx->pos); 527 527 528 528 do { 529 529 if (--retry_limit < 0) { ··· 610 610 }; 611 611 int ret; 612 612 613 - _enter("{%lu},{%.*s},", dir->i_ino, name->len, name->name); 613 + _enter("{%llu},{%.*s},", dir->i_ino, name->len, name->name); 614 614 615 615 /* search the directory */ 616 616 ret = afs_dir_iterate(dir, &cookie.ctx, NULL, _dir_version); ··· 783 783 long ret; 784 784 int i; 785 785 786 - _enter("{%lu},%p{%pd},", dir->i_ino, dentry, dentry); 786 + _enter("{%llu},%p{%pd},", dir->i_ino, dentry, dentry); 787 787 788 788 cookie = kzalloc_obj(struct afs_lookup_cookie); 789 789 if (!cookie)
+1 -1
fs/afs/dir_search.c
··· 194 194 struct afs_dir_iter iter = { .dvnode = dvnode, }; 195 195 int ret, retry_limit = 3; 196 196 197 - _enter("{%lu},,,", dvnode->netfs.inode.i_ino); 197 + _enter("{%llu},,,", dvnode->netfs.inode.i_ino); 198 198 199 199 if (!afs_dir_init_iter(&iter, name)) 200 200 return -ENOENT;
+1 -1
fs/afs/dynroot.c
··· 59 59 return ERR_PTR(-ENOMEM); 60 60 } 61 61 62 - _debug("GOT INODE %p { ino=%lu, vl=%llx, vn=%llx, u=%x }", 62 + _debug("GOT INODE %p { ino=%llu, vl=%llx, vn=%llx, u=%x }", 63 63 inode, inode->i_ino, fid.vid, fid.vnode, fid.unique); 64 64 65 65 vnode = AFS_FS_I(inode);
+1 -1
fs/afs/inode.c
··· 683 683 struct key *key; 684 684 int ret, seq; 685 685 686 - _enter("{ ino=%lu v=%u }", inode->i_ino, inode->i_generation); 686 + _enter("{ ino=%llu v=%u }", inode->i_ino, inode->i_generation); 687 687 688 688 if (vnode->volume && 689 689 !(query_flags & AT_STATX_DONT_SYNC) &&
+1 -1
fs/autofs/inode.c
··· 92 92 seq_puts(m, ",ignore"); 93 93 #ifdef CONFIG_CHECKPOINT_RESTORE 94 94 if (sbi->pipe) 95 - seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); 95 + seq_printf(m, ",pipe_ino=%llu", file_inode(sbi->pipe)->i_ino); 96 96 else 97 97 seq_puts(m, ",pipe_ino=-1"); 98 98 #endif
+14 -14
fs/befs/linuxvfs.c
··· 140 140 int res; 141 141 ulong disk_off; 142 142 143 - befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", 144 - (unsigned long)inode->i_ino, (long)block); 143 + befs_debug(sb, "---> befs_get_block() for inode %llu, block %ld", 144 + inode->i_ino, (long)block); 145 145 if (create) { 146 146 befs_error(sb, "befs_get_block() was asked to write to " 147 - "block %ld in inode %lu", (long)block, 148 - (unsigned long)inode->i_ino); 147 + "block %ld in inode %llu", (long)block, 148 + inode->i_ino); 149 149 return -EPERM; 150 150 } 151 151 152 152 res = befs_fblock2brun(sb, ds, block, &run); 153 153 if (res != BEFS_OK) { 154 154 befs_error(sb, 155 - "<--- %s for inode %lu, block %ld ERROR", 156 - __func__, (unsigned long)inode->i_ino, 155 + "<--- %s for inode %llu, block %ld ERROR", 156 + __func__, inode->i_ino, 157 157 (long)block); 158 158 return -EFBIG; 159 159 } ··· 162 162 163 163 map_bh(bh_result, inode->i_sb, disk_off); 164 164 165 - befs_debug(sb, "<--- %s for inode %lu, block %ld, disk address %lu", 166 - __func__, (unsigned long)inode->i_ino, (long)block, 165 + befs_debug(sb, "<--- %s for inode %llu, block %ld, disk address %lu", 166 + __func__, inode->i_ino, (long)block, 167 167 (unsigned long)disk_off); 168 168 169 169 return 0; ··· 181 181 char *utfname; 182 182 const char *name = dentry->d_name.name; 183 183 184 - befs_debug(sb, "---> %s name %pd inode %ld", __func__, 184 + befs_debug(sb, "---> %s name %pd inode %llu", __func__, 185 185 dentry, dir->i_ino); 186 186 187 187 /* Convert to UTF-8 */ ··· 224 224 size_t keysize; 225 225 char keybuf[BEFS_NAME_LEN + 1]; 226 226 227 - befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld", 227 + befs_debug(sb, "---> %s name %pD, inode %llu, ctx->pos %lld", 228 228 __func__, file, inode->i_ino, ctx->pos); 229 229 230 230 while (1) { ··· 233 233 234 234 if (result == BEFS_ERR) { 235 235 befs_debug(sb, "<--- %s ERROR", __func__); 236 - befs_error(sb, "IO error reading %pD (inode %lu)", 236 + befs_error(sb, "IO error reading %pD (inode %llu)", 237 237 file, inode->i_ino); 238 238 return -EIO; 239 239 ··· 324 324 bh = sb_bread(sb, inode->i_ino); 325 325 if (!bh) { 326 326 befs_error(sb, "unable to read inode block - " 327 - "inode = %lu", inode->i_ino); 327 + "inode = %llu", inode->i_ino); 328 328 goto unacquire_none; 329 329 } 330 330 ··· 333 333 befs_dump_inode(sb, raw_inode); 334 334 335 335 if (befs_check_inode(sb, raw_inode, inode->i_ino) != BEFS_OK) { 336 - befs_error(sb, "Bad inode: %lu", inode->i_ino); 336 + befs_error(sb, "Bad inode: %llu", inode->i_ino); 337 337 goto unacquire_bh; 338 338 } 339 339 ··· 407 407 inode->i_op = &simple_symlink_inode_operations; 408 408 } 409 409 } else { 410 - befs_error(sb, "Inode %lu is not a regular file, " 410 + befs_error(sb, "Inode %llu is not a regular file, " 411 411 "directory or symlink. THAT IS WRONG! BeFS has no " 412 412 "on disk special files", inode->i_ino); 413 413 goto unacquire_bh;
+2 -2
fs/bfs/dir.c
··· 35 35 int block; 36 36 37 37 if (ctx->pos & (BFS_DIRENT_SIZE - 1)) { 38 - printf("Bad f_pos=%08lx for %s:%08lx\n", 38 + printf("Bad f_pos=%08lx for %s:%08llx\n", 39 39 (unsigned long)ctx->pos, 40 40 dir->i_sb->s_id, dir->i_ino); 41 41 return -EINVAL; ··· 180 180 goto out_brelse; 181 181 182 182 if (!inode->i_nlink) { 183 - printf("unlinking non-existent file %s:%lu (nlink=%d)\n", 183 + printf("unlinking non-existent file %s:%llu (nlink=%d)\n", 184 184 inode->i_sb->s_id, inode->i_ino, 185 185 inode->i_nlink); 186 186 set_nlink(inode, 1);
+3 -3
fs/cachefiles/io.c
··· 93 93 object = cachefiles_cres_object(cres); 94 94 file = cachefiles_cres_file(cres); 95 95 96 - _enter("%pD,%li,%llx,%zx/%llx", 96 + _enter("%pD,%llu,%llx,%zx/%llx", 97 97 file, file_inode(file)->i_ino, start_pos, len, 98 98 i_size_read(file_inode(file))); 99 99 ··· 214 214 file = cachefiles_cres_file(cres); 215 215 granularity = max_t(size_t, object->volume->cache->bsize, granularity); 216 216 217 - _enter("%pD,%li,%llx,%zx/%llx", 217 + _enter("%pD,%llu,%llx,%zx/%llx", 218 218 file, file_inode(file)->i_ino, start, len, 219 219 i_size_read(file_inode(file))); 220 220 ··· 294 294 fscache_count_write(); 295 295 cache = object->volume->cache; 296 296 297 - _enter("%pD,%li,%llx,%zx/%llx", 297 + _enter("%pD,%llu,%llx,%zx/%llx", 298 298 file, file_inode(file)->i_ino, start_pos, len, 299 299 i_size_read(file_inode(file))); 300 300
+6 -6
fs/cachefiles/namei.c
··· 147 147 } 148 148 ASSERT(d_backing_inode(subdir)); 149 149 150 - _debug("mkdir -> %pd{ino=%lu}", 150 + _debug("mkdir -> %pd{ino=%llu}", 151 151 subdir, d_backing_inode(subdir)->i_ino); 152 152 if (_is_new) 153 153 *_is_new = true; ··· 158 158 end_creating_keep(subdir); 159 159 160 160 if (!__cachefiles_mark_inode_in_use(NULL, d_inode(subdir))) { 161 - pr_notice("cachefiles: Inode already in use: %pd (B=%lx)\n", 161 + pr_notice("cachefiles: Inode already in use: %pd (B=%llx)\n", 162 162 subdir, d_inode(subdir)->i_ino); 163 163 goto mark_error; 164 164 } ··· 183 183 !d_backing_inode(subdir)->i_op->unlink) 184 184 goto check_error; 185 185 186 - _leave(" = [%lu]", d_backing_inode(subdir)->i_ino); 186 + _leave(" = [%llu]", d_backing_inode(subdir)->i_ino); 187 187 return subdir; 188 188 189 189 check_error: ··· 529 529 530 530 set_bit(FSCACHE_COOKIE_NEEDS_UPDATE, &object->cookie->flags); 531 531 set_bit(CACHEFILES_OBJECT_USING_TMPFILE, &object->flags); 532 - _debug("create -> %pD{ino=%lu}", file, file_inode(file)->i_ino); 532 + _debug("create -> %pD{ino=%llu}", file, file_inode(file)->i_ino); 533 533 object->file = file; 534 534 return true; 535 535 } ··· 549 549 _enter("%pd", dentry); 550 550 551 551 if (!cachefiles_mark_inode_in_use(object, d_inode(dentry))) { 552 - pr_notice("cachefiles: Inode already in use: %pd (B=%lx)\n", 552 + pr_notice("cachefiles: Inode already in use: %pd (B=%llx)\n", 553 553 dentry, d_inode(dentry)->i_ino); 554 554 return false; 555 555 } ··· 657 657 if (!ret) 658 658 return false; 659 659 660 - _leave(" = t [%lu]", file_inode(object->file)->i_ino); 660 + _leave(" = t [%llu]", file_inode(object->file)->i_ino); 661 661 return true; 662 662 663 663 new_file:
+1 -1
fs/cachefiles/xattr.c
··· 179 179 ret = 0; 180 180 else if (ret != -ENOMEM) 181 181 cachefiles_io_error(cache, 182 - "Can't remove xattr from %lu" 182 + "Can't remove xattr from %llu" 183 183 " (error %d)", 184 184 d_backing_inode(dentry)->i_ino, -ret); 185 185 }
+2 -2
fs/ceph/crypto.c
··· 272 272 /* To understand the 240 limit, see CEPH_NOHASH_NAME_MAX comments */ 273 273 WARN_ON(elen > 240); 274 274 if (dir != parent) // leading _ is already there; append _<inum> 275 - elen += 1 + sprintf(p + elen, "_%ld", dir->i_ino); 275 + elen += 1 + sprintf(p + elen, "_%llu", dir->i_ino); 276 276 277 277 out: 278 278 kfree(cryptbuf); ··· 377 377 if (!ret && (dir != fname->dir)) { 378 378 char tmp_buf[BASE64_CHARS(NAME_MAX)]; 379 379 380 - name_len = snprintf(tmp_buf, sizeof(tmp_buf), "_%.*s_%ld", 380 + name_len = snprintf(tmp_buf, sizeof(tmp_buf), "_%.*s_%llu", 381 381 oname->len, oname->name, dir->i_ino); 382 382 memcpy(oname->name, tmp_buf, name_len); 383 383 oname->len = name_len;
+1 -1
fs/coda/dir.c
··· 533 533 coda_vattr_to_iattr(inode, &attr); 534 534 535 535 if ((old_mode & S_IFMT) != (inode->i_mode & S_IFMT)) { 536 - pr_warn("inode %ld, fid %s changed type!\n", 536 + pr_warn("inode %llu, fid %s changed type!\n", 537 537 inode->i_ino, coda_f2s(&(cii->c_fid))); 538 538 } 539 539
+1 -1
fs/coda/inode.c
··· 257 257 goto error; 258 258 } 259 259 260 - pr_info("%s: rootinode is %ld dev %s\n", 260 + pr_info("%s: rootinode is %llu dev %s\n", 261 261 __func__, root->i_ino, root->i_sb->s_id); 262 262 sb->s_root = d_make_root(root); 263 263 if (!sb->s_root) {
+1 -1
fs/cramfs/inode.c
··· 125 125 old_decode_dev(cramfs_inode->size)); 126 126 break; 127 127 default: 128 - printk(KERN_DEBUG "CRAMFS: Invalid file type 0%04o for inode %lu.\n", 128 + printk(KERN_DEBUG "CRAMFS: Invalid file type 0%04o for inode %llu.\n", 129 129 inode->i_mode, inode->i_ino); 130 130 iget_failed(inode); 131 131 return ERR_PTR(-EIO);
+1 -1
fs/crypto/crypto.c
··· 365 365 vaf.fmt = fmt; 366 366 vaf.va = &args; 367 367 if (inode && inode->i_ino) 368 - printk("%sfscrypt (%s, inode %lu): %pV\n", 368 + printk("%sfscrypt (%s, inode %llu): %pV\n", 369 369 level, inode->i_sb->s_id, inode->i_ino, &vaf); 370 370 else if (inode) 371 371 printk("%sfscrypt (%s): %pV\n", level, inode->i_sb->s_id, &vaf);
+1 -1
fs/crypto/hooks.c
··· 62 62 dentry_parent = dget_parent(dentry); 63 63 if (!fscrypt_has_permitted_context(d_inode(dentry_parent), inode)) { 64 64 fscrypt_warn(inode, 65 - "Inconsistent encryption context (parent directory: %lu)", 65 + "Inconsistent encryption context (parent directory: %llu)", 66 66 d_inode(dentry_parent)->i_ino); 67 67 err = -EPERM; 68 68 }
+2 -2
fs/crypto/keyring.c
··· 969 969 { 970 970 struct list_head *pos; 971 971 size_t busy_count = 0; 972 - unsigned long ino; 973 972 char ino_str[50] = ""; 973 + u64 ino; 974 974 975 975 spin_lock(&mk->mk_decrypted_inodes_lock); 976 976 ··· 994 994 995 995 /* If the inode is currently being created, ino may still be 0. */ 996 996 if (ino) 997 - snprintf(ino_str, sizeof(ino_str), ", including ino %lu", ino); 997 + snprintf(ino_str, sizeof(ino_str), ", including ino %llu", ino); 998 998 999 999 fscrypt_warn(NULL, 1000 1000 "%s: %zu inode(s) still busy after removing key with %s %*phN%s",
+1 -1
fs/crypto/keysetup.c
··· 91 91 if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) 92 92 return &fscrypt_modes[fscrypt_policy_fnames_mode(policy)]; 93 93 94 - WARN_ONCE(1, "fscrypt: filesystem tried to load encryption info for inode %lu, which is not encryptable (file type %d)\n", 94 + WARN_ONCE(1, "fscrypt: filesystem tried to load encryption info for inode %llu, which is not encryptable (file type %d)\n", 95 95 inode->i_ino, (inode->i_mode & S_IFMT)); 96 96 return ERR_PTR(-EINVAL); 97 97 }
+2 -2
fs/dcache.c
··· 1637 1637 if (dentry == _data && dentry->d_lockref.count == 1) 1638 1638 return D_WALK_CONTINUE; 1639 1639 1640 - WARN(1, "BUG: Dentry %p{i=%lx,n=%pd} " 1640 + WARN(1, "BUG: Dentry %p{i=%llx,n=%pd} " 1641 1641 " still in use (%d) [unmount of %s %s]\n", 1642 1642 dentry, 1643 1643 dentry->d_inode ? 1644 - dentry->d_inode->i_ino : 0UL, 1644 + dentry->d_inode->i_ino : (u64)0, 1645 1645 dentry, 1646 1646 dentry->d_lockref.count, 1647 1647 dentry->d_sb->s_type->name,
+3 -3
fs/ecryptfs/crypto.c
··· 1313 1313 rc = ecryptfs_read_xattr_region(page_virt, ecryptfs_inode); 1314 1314 if (rc) { 1315 1315 printk(KERN_DEBUG "Valid eCryptfs headers not found in " 1316 - "file header region or xattr region, inode %lu\n", 1316 + "file header region or xattr region, inode %llu\n", 1317 1317 ecryptfs_inode->i_ino); 1318 1318 rc = -EINVAL; 1319 1319 goto out; ··· 1323 1323 ECRYPTFS_DONT_VALIDATE_HEADER_SIZE); 1324 1324 if (rc) { 1325 1325 printk(KERN_DEBUG "Valid eCryptfs headers not found in " 1326 - "file xattr region either, inode %lu\n", 1326 + "file xattr region either, inode %llu\n", 1327 1327 ecryptfs_inode->i_ino); 1328 1328 rc = -EINVAL; 1329 1329 } ··· 1335 1335 "crypto metadata only in the extended attribute " 1336 1336 "region, but eCryptfs was mounted without " 1337 1337 "xattr support enabled. eCryptfs will not treat " 1338 - "this like an encrypted file, inode %lu\n", 1338 + "this like an encrypted file, inode %llu\n", 1339 1339 ecryptfs_inode->i_ino); 1340 1340 rc = -EINVAL; 1341 1341 }
+1 -1
fs/ecryptfs/file.c
··· 253 253 if (rc) 254 254 goto out_put; 255 255 ecryptfs_printk(KERN_DEBUG, "inode w/ addr = [0x%p], i_ino = " 256 - "[0x%.16lx] size: [0x%.16llx]\n", inode, inode->i_ino, 256 + "[0x%.16llx] size: [0x%.16llx]\n", inode, inode->i_ino, 257 257 (unsigned long long)i_size_read(inode)); 258 258 goto out; 259 259 out_put:
+3 -3
fs/efs/inode.c
··· 132 132 for(i = 0; i < EFS_DIRECTEXTENTS; i++) { 133 133 extent_copy(&(efs_inode->di_u.di_extents[i]), &(in->extents[i])); 134 134 if (i < in->numextents && in->extents[i].cooked.ex_magic != 0) { 135 - pr_warn("extent %d has bad magic number in inode %lu\n", 135 + pr_warn("extent %d has bad magic number in inode %llu\n", 136 136 i, inode->i_ino); 137 137 brelse(bh); 138 138 goto read_inode_error; ··· 140 140 } 141 141 142 142 brelse(bh); 143 - pr_debug("efs_iget(): inode %lu, extents %d, mode %o\n", 143 + pr_debug("efs_iget(): inode %llu, extents %d, mode %o\n", 144 144 inode->i_ino, in->numextents, inode->i_mode); 145 145 switch (inode->i_mode & S_IFMT) { 146 146 case S_IFDIR: ··· 171 171 return inode; 172 172 173 173 read_inode_error: 174 - pr_warn("failed to read inode %lu\n", inode->i_ino); 174 + pr_warn("failed to read inode %llu\n", inode->i_ino); 175 175 iget_failed(inode); 176 176 return ERR_PTR(-EIO); 177 177 }
+1 -1
fs/eventpoll.c
··· 1080 1080 struct inode *inode = file_inode(epi->ffd.file); 1081 1081 1082 1082 seq_printf(m, "tfd: %8d events: %8x data: %16llx " 1083 - " pos:%lli ino:%lx sdev:%x\n", 1083 + " pos:%lli ino:%llx sdev:%x\n", 1084 1084 epi->ffd.fd, epi->event.events, 1085 1085 (long long)epi->event.data, 1086 1086 (long long)epi->ffd.file->f_pos,
+2 -2
fs/exportfs/expfs.c
··· 130 130 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); 131 131 132 132 if (IS_ERR(parent)) { 133 - dprintk("get_parent of %lu failed, err %ld\n", 133 + dprintk("get_parent of %llu failed, err %ld\n", 134 134 dentry->d_inode->i_ino, PTR_ERR(parent)); 135 135 return parent; 136 136 } 137 137 138 - dprintk("%s: find name of %lu in %lu\n", __func__, 138 + dprintk("%s: find name of %llu in %llu\n", __func__, 139 139 dentry->d_inode->i_ino, parent->d_inode->i_ino); 140 140 err = exportfs_get_name(mnt, parent, nbuf, dentry); 141 141 if (err == -ENOENT)
+5 -5
fs/ext2/dir.c
··· 141 141 Ebadsize: 142 142 if (!quiet) 143 143 ext2_error(sb, __func__, 144 - "size of directory #%lu is not a multiple " 144 + "size of directory #%llu is not a multiple " 145 145 "of chunk size", dir->i_ino); 146 146 goto fail; 147 147 Eshort: ··· 160 160 error = "inode out of bounds"; 161 161 bad_entry: 162 162 if (!quiet) 163 - ext2_error(sb, __func__, "bad entry in directory #%lu: : %s - " 163 + ext2_error(sb, __func__, "bad entry in directory #%llu: : %s - " 164 164 "offset=%llu, inode=%lu, rec_len=%d, name_len=%d", 165 165 dir->i_ino, error, folio_pos(folio) + offs, 166 166 (unsigned long) le32_to_cpu(p->inode), ··· 170 170 if (!quiet) { 171 171 p = (ext2_dirent *)(kaddr + offs); 172 172 ext2_error(sb, "ext2_check_folio", 173 - "entry in directory #%lu spans the page boundary" 173 + "entry in directory #%llu spans the page boundary" 174 174 "offset=%llu, inode=%lu", 175 175 dir->i_ino, folio_pos(folio) + offs, 176 176 (unsigned long) le32_to_cpu(p->inode)); ··· 281 281 282 282 if (IS_ERR(kaddr)) { 283 283 ext2_error(sb, __func__, 284 - "bad page in #%lu", 284 + "bad page in #%llu", 285 285 inode->i_ino); 286 286 ctx->pos += PAGE_SIZE - offset; 287 287 return PTR_ERR(kaddr); ··· 383 383 /* next folio is past the blocks we've got */ 384 384 if (unlikely(n > (dir->i_blocks >> (PAGE_SHIFT - 9)))) { 385 385 ext2_error(dir->i_sb, __func__, 386 - "dir %lu size %lld exceeds block count %llu", 386 + "dir %llu size %lld exceeds block count %llu", 387 387 dir->i_ino, dir->i_size, 388 388 (unsigned long long)dir->i_blocks); 389 389 goto out;
+5 -4
fs/ext2/ialloc.c
··· 169 169 unsigned long block_group; 170 170 unsigned long offset; 171 171 unsigned long block; 172 + unsigned int ino = inode->i_ino; 172 173 struct ext2_group_desc * gdp; 173 174 174 - block_group = (inode->i_ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); 175 + block_group = (ino - 1) / EXT2_INODES_PER_GROUP(inode->i_sb); 175 176 gdp = ext2_get_group_desc(inode->i_sb, block_group, NULL); 176 177 if (gdp == NULL) 177 178 return; ··· 180 179 /* 181 180 * Figure out the offset within the block group inode table 182 181 */ 183 - offset = ((inode->i_ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) * 182 + offset = ((ino - 1) % EXT2_INODES_PER_GROUP(inode->i_sb)) * 184 183 EXT2_INODE_SIZE(inode->i_sb); 185 184 block = le32_to_cpu(gdp->bg_inode_table) + 186 185 (offset >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)); ··· 382 381 * 383 382 * So add our directory's i_ino into the starting point for the hash. 384 383 */ 385 - group = (group + parent->i_ino) % ngroups; 384 + group = (group + (unsigned int)parent->i_ino) % ngroups; 386 385 387 386 /* 388 387 * Use a quadratic hash to find a group with a free inode and some ··· 590 589 goto fail_free_drop; 591 590 592 591 mark_inode_dirty(inode); 593 - ext2_debug("allocating inode %lu\n", inode->i_ino); 592 + ext2_debug("allocating inode %llu\n", inode->i_ino); 594 593 ext2_preread_inode(inode); 595 594 return inode; 596 595
+1 -1
fs/ext2/inode.c
··· 1152 1152 */ 1153 1153 if (!bh) { 1154 1154 ext2_error(inode->i_sb, "ext2_free_branches", 1155 - "Read failure, inode=%ld, block=%ld", 1155 + "Read failure, inode=%llu, block=%ld", 1156 1156 inode->i_ino, nr); 1157 1157 continue; 1158 1158 }
+7 -7
fs/ext2/xattr.c
··· 227 227 if (!ext2_xattr_header_valid(HDR(bh))) { 228 228 bad_block: 229 229 ext2_error(inode->i_sb, "ext2_xattr_get", 230 - "inode %ld: bad block %d", inode->i_ino, 230 + "inode %llu: bad block %d", inode->i_ino, 231 231 EXT2_I(inode)->i_file_acl); 232 232 error = -EIO; 233 233 goto cleanup; ··· 313 313 if (!ext2_xattr_header_valid(HDR(bh))) { 314 314 bad_block: 315 315 ext2_error(inode->i_sb, "ext2_xattr_list", 316 - "inode %ld: bad block %d", inode->i_ino, 316 + "inode %llu: bad block %d", inode->i_ino, 317 317 EXT2_I(inode)->i_file_acl); 318 318 error = -EIO; 319 319 goto cleanup; ··· 454 454 if (!ext2_xattr_header_valid(header)) { 455 455 bad_block: 456 456 ext2_error(sb, "ext2_xattr_set", 457 - "inode %ld: bad block %d", inode->i_ino, 457 + "inode %llu: bad block %d", inode->i_ino, 458 458 EXT2_I(inode)->i_file_acl); 459 459 error = -EIO; 460 460 goto cleanup; ··· 833 833 834 834 if (!ext2_data_block_valid(sbi, EXT2_I(inode)->i_file_acl, 1)) { 835 835 ext2_error(inode->i_sb, "ext2_xattr_delete_inode", 836 - "inode %ld: xattr block %d is out of data blocks range", 836 + "inode %llu: xattr block %d is out of data blocks range", 837 837 inode->i_ino, EXT2_I(inode)->i_file_acl); 838 838 goto cleanup; 839 839 } ··· 841 841 bh = sb_bread(inode->i_sb, EXT2_I(inode)->i_file_acl); 842 842 if (!bh) { 843 843 ext2_error(inode->i_sb, "ext2_xattr_delete_inode", 844 - "inode %ld: block %d read error", inode->i_ino, 844 + "inode %llu: block %d read error", inode->i_ino, 845 845 EXT2_I(inode)->i_file_acl); 846 846 goto cleanup; 847 847 } 848 848 ea_bdebug(bh, "b_count=%d", atomic_read(&(bh->b_count))); 849 849 if (!ext2_xattr_header_valid(HDR(bh))) { 850 850 ext2_error(inode->i_sb, "ext2_xattr_delete_inode", 851 - "inode %ld: bad block %d", inode->i_ino, 851 + "inode %llu: bad block %d", inode->i_ino, 852 852 EXT2_I(inode)->i_file_acl); 853 853 goto cleanup; 854 854 } ··· 952 952 bh = sb_bread(inode->i_sb, ce->e_value); 953 953 if (!bh) { 954 954 ext2_error(inode->i_sb, "ext2_xattr_cache_find", 955 - "inode %ld: block %ld read error", 955 + "inode %llu: block %ld read error", 956 956 inode->i_ino, (unsigned long) ce->e_value); 957 957 } else { 958 958 lock_buffer(bh);
+1 -1
fs/ext4/dir.c
··· 535 535 struct super_block *sb = inode->i_sb; 536 536 537 537 if (!fname) { 538 - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: comm %s: " 538 + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: comm %s: " 539 539 "called with null fname?!?", __func__, __LINE__, 540 540 inode->i_ino, current->comm); 541 541 return 0;
+2 -2
fs/ext4/ext4.h
··· 92 92 */ 93 93 #ifdef CONFIG_EXT4_DEBUG 94 94 #define ext_debug(ino, fmt, ...) \ 95 - pr_debug("[%s/%d] EXT4-fs (%s): ino %lu: (%s, %d): %s:" fmt, \ 95 + pr_debug("[%s/%d] EXT4-fs (%s): ino %llu: (%s, %d): %s:" fmt, \ 96 96 current->comm, task_pid_nr(current), \ 97 97 ino->i_sb->s_id, ino->i_ino, __FILE__, __LINE__, \ 98 98 __func__, ##__VA_ARGS__) ··· 3229 3229 extern __printf(7, 8) 3230 3230 void __ext4_grp_locked_error(const char *, unsigned int, 3231 3231 struct super_block *, ext4_group_t, 3232 - unsigned long, ext4_fsblk_t, 3232 + u64, ext4_fsblk_t, 3233 3233 const char *, ...); 3234 3234 3235 3235 #define EXT4_ERROR_INODE(inode, fmt, a...) \
+4 -4
fs/ext4/extents.c
··· 4603 4603 } 4604 4604 ret = ext4_map_blocks(handle, inode, &map, flags); 4605 4605 if (ret <= 0) { 4606 - ext4_debug("inode #%lu: block %u: len %u: " 4606 + ext4_debug("inode #%llu: block %u: len %u: " 4607 4607 "ext4_ext_map_blocks returned %d", 4608 4608 inode->i_ino, map.m_lblk, 4609 4609 map.m_len, ret); ··· 4955 4955 ret = ext4_map_blocks(handle, inode, &map, flags); 4956 4956 if (ret != max_blocks) 4957 4957 ext4_msg(inode->i_sb, KERN_INFO, 4958 - "inode #%lu: block %u: len %u: " 4958 + "inode #%llu: block %u: len %u: " 4959 4959 "split block mapping found for atomic write, " 4960 4960 "ret = %d", 4961 4961 inode->i_ino, map.m_lblk, ··· 4974 4974 4975 4975 if (ret <= 0 || ret2) 4976 4976 ext4_warning(inode->i_sb, 4977 - "inode #%lu: block %u: len %u: " 4977 + "inode #%llu: block %u: len %u: " 4978 4978 "returned %d or %d", 4979 4979 inode->i_ino, map.m_lblk, 4980 4980 map.m_len, ret, ret2); ··· 5031 5031 EXT4_EX_NOCACHE); 5032 5032 if (ret <= 0) 5033 5033 ext4_warning(inode->i_sb, 5034 - "inode #%lu: block %u: len %u: " 5034 + "inode #%llu: block %u: len %u: " 5035 5035 "ext4_ext_map_blocks returned %d", 5036 5036 inode->i_ino, map.m_lblk, 5037 5037 map.m_len, ret);
+14 -14
fs/ext4/extents_status.c
··· 214 214 struct ext4_es_tree *tree; 215 215 struct rb_node *node; 216 216 217 - printk(KERN_DEBUG "status extents for inode %lu:", inode->i_ino); 217 + printk(KERN_DEBUG "status extents for inode %llu:", inode->i_ino); 218 218 tree = &EXT4_I(inode)->i_es_tree; 219 219 node = rb_first(&tree->root); 220 220 while (node) { ··· 703 703 if (!ext4_es_is_written(es) && !ext4_es_is_unwritten(es)) { 704 704 if (in_range(es->es_lblk, ee_block, ee_len)) { 705 705 pr_warn("ES insert assertion failed for " 706 - "inode: %lu we can find an extent " 706 + "inode: %llu we can find an extent " 707 707 "at block [%d/%d/%llu/%c], but we " 708 708 "want to add a delayed/hole extent " 709 709 "[%d/%d/%llu/%x]\n", ··· 721 721 */ 722 722 if (es->es_lblk < ee_block || 723 723 ext4_es_pblock(es) != ee_start + es->es_lblk - ee_block) { 724 - pr_warn("ES insert assertion failed for inode: %lu " 724 + pr_warn("ES insert assertion failed for inode: %llu " 725 725 "ex_status [%d/%d/%llu/%c] != " 726 726 "es_status [%d/%d/%llu/%c]\n", inode->i_ino, 727 727 ee_block, ee_len, ee_start, ··· 731 731 } 732 732 733 733 if (ee_status ^ es_status) { 734 - pr_warn("ES insert assertion failed for inode: %lu " 734 + pr_warn("ES insert assertion failed for inode: %llu " 735 735 "ex_status [%d/%d/%llu/%c] != " 736 736 "es_status [%d/%d/%llu/%c]\n", inode->i_ino, 737 737 ee_block, ee_len, ee_start, ··· 744 744 * that we don't want to add an written/unwritten extent. 745 745 */ 746 746 if (!ext4_es_is_delayed(es) && !ext4_es_is_hole(es)) { 747 - pr_warn("ES insert assertion failed for inode: %lu " 747 + pr_warn("ES insert assertion failed for inode: %llu " 748 748 "can't find an extent at block %d but we want " 749 749 "to add a written/unwritten extent " 750 750 "[%d/%d/%llu/%x]\n", inode->i_ino, ··· 779 779 * We want to add a delayed/hole extent but this 780 780 * block has been allocated. 781 781 */ 782 - pr_warn("ES insert assertion failed for inode: %lu " 782 + pr_warn("ES insert assertion failed for inode: %llu " 783 783 "We can find blocks but we want to add a " 784 784 "delayed/hole extent [%d/%d/%llu/%x]\n", 785 785 inode->i_ino, es->es_lblk, es->es_len, ··· 788 788 } else if (ext4_es_is_written(es)) { 789 789 if (retval != es->es_len) { 790 790 pr_warn("ES insert assertion failed for " 791 - "inode: %lu retval %d != es_len %d\n", 791 + "inode: %llu retval %d != es_len %d\n", 792 792 inode->i_ino, retval, es->es_len); 793 793 return; 794 794 } 795 795 if (map.m_pblk != ext4_es_pblock(es)) { 796 796 pr_warn("ES insert assertion failed for " 797 - "inode: %lu m_pblk %llu != " 797 + "inode: %llu m_pblk %llu != " 798 798 "es_pblk %llu\n", 799 799 inode->i_ino, map.m_pblk, 800 800 ext4_es_pblock(es)); ··· 809 809 } 810 810 } else if (retval == 0) { 811 811 if (ext4_es_is_written(es)) { 812 - pr_warn("ES insert assertion failed for inode: %lu " 812 + pr_warn("ES insert assertion failed for inode: %llu " 813 813 "We can't find the block but we want to add " 814 814 "a written extent [%d/%d/%llu/%x]\n", 815 815 inode->i_ino, es->es_lblk, es->es_len, ··· 919 919 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) 920 920 return; 921 921 922 - es_debug("add [%u/%u) %llu %x %d to extent status tree of inode %lu\n", 922 + es_debug("add [%u/%u) %llu %x %d to extent status tree of inode %llu\n", 923 923 lblk, len, pblk, status, delalloc_reserve_used, inode->i_ino); 924 924 925 925 if (!len) ··· 1631 1631 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) 1632 1632 return; 1633 1633 1634 - es_debug("remove [%u/%u) from extent status tree of inode %lu\n", 1634 + es_debug("remove [%u/%u) from extent status tree of inode %llu\n", 1635 1635 lblk, len, inode->i_ino); 1636 1636 1637 1637 if (!len) ··· 1821 1821 seq_printf(seq, " %lu shrunk objects\n", es_stats->es_stats_shrunk); 1822 1822 if (inode_cnt) 1823 1823 seq_printf(seq, 1824 - "maximum:\n %lu inode (%u objects, %u reclaimable)\n" 1824 + "maximum:\n %llu inode (%u objects, %u reclaimable)\n" 1825 1825 " %llu us max scan time\n", 1826 1826 max->vfs_inode.i_ino, max->i_es_all_nr, max->i_es_shk_nr, 1827 1827 div_u64(es_stats->es_stats_max_scan_time, 1000)); ··· 1998 1998 struct rb_node *node; 1999 1999 struct pending_reservation *pr; 2000 2000 2001 - printk(KERN_DEBUG "pending reservations for inode %lu:", inode->i_ino); 2001 + printk(KERN_DEBUG "pending reservations for inode %llu:", inode->i_ino); 2002 2002 tree = &EXT4_I(inode)->i_pending_tree; 2003 2003 node = rb_first(&tree->root); 2004 2004 while (node) { ··· 2214 2214 if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) 2215 2215 return; 2216 2216 2217 - es_debug("add [%u/%u) delayed to extent status tree of inode %lu\n", 2217 + es_debug("add [%u/%u) delayed to extent status tree of inode %llu\n", 2218 2218 lblk, len, inode->i_ino); 2219 2219 if (!len) 2220 2220 return;
+4 -4
fs/ext4/fast_commit.c
··· 616 616 (struct __track_range_args *)arg; 617 617 618 618 if (inode->i_ino < EXT4_FIRST_INO(inode->i_sb)) { 619 - ext4_debug("Special inode %ld being modified\n", inode->i_ino); 619 + ext4_debug("Special inode %llu being modified\n", inode->i_ino); 620 620 return -ECANCELED; 621 621 } 622 622 ··· 914 914 spin_unlock(&ei->i_fc_lock); 915 915 916 916 cur_lblk_off = old_blk_size; 917 - ext4_debug("will try writing %d to %d for inode %ld\n", 917 + ext4_debug("will try writing %d to %d for inode %llu\n", 918 918 cur_lblk_off, new_blk_size, inode->i_ino); 919 919 920 920 while (cur_lblk_off <= new_blk_size) { ··· 1792 1792 1793 1793 cur = start; 1794 1794 remaining = len; 1795 - ext4_debug("ADD_RANGE, lblk %d, pblk %lld, len %d, unwritten %d, inode %ld\n", 1795 + ext4_debug("ADD_RANGE, lblk %d, pblk %lld, len %d, unwritten %d, inode %llu\n", 1796 1796 start, start_pblk, len, ext4_ext_is_unwritten(ex), 1797 1797 inode->i_ino); 1798 1798 ··· 1903 1903 if (ret) 1904 1904 goto out; 1905 1905 1906 - ext4_debug("DEL_RANGE, inode %ld, lblk %d, len %d\n", 1906 + ext4_debug("DEL_RANGE, inode %llu, lblk %d, len %d\n", 1907 1907 inode->i_ino, le32_to_cpu(lrange.fc_lblk), 1908 1908 le32_to_cpu(lrange.fc_len)); 1909 1909 while (remaining > 0) {
+5 -5
fs/ext4/ialloc.c
··· 253 253 return; 254 254 } 255 255 if (icount_read(inode) > 1) { 256 - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: count=%d", 256 + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: count=%d", 257 257 __func__, __LINE__, inode->i_ino, 258 258 icount_read(inode)); 259 259 return; 260 260 } 261 261 if (inode->i_nlink) { 262 - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: nlink=%d\n", 262 + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: nlink=%d\n", 263 263 __func__, __LINE__, inode->i_ino, inode->i_nlink); 264 264 return; 265 265 } ··· 631 631 * 632 632 * So add our directory's i_ino into the starting point for the hash. 633 633 */ 634 - *group = (*group + parent->i_ino) % ngroups; 634 + *group = (*group + (unsigned int)parent->i_ino) % ngroups; 635 635 636 636 /* 637 637 * Use a quadratic hash to find a group with a free inode and some free ··· 1275 1275 * twice. 1276 1276 */ 1277 1277 err = -EIO; 1278 - ext4_error(sb, "failed to insert inode %lu: doubly allocated?", 1278 + ext4_error(sb, "failed to insert inode %llu: doubly allocated?", 1279 1279 inode->i_ino); 1280 1280 ext4_mark_group_bitmap_corrupted(sb, group, 1281 1281 EXT4_GROUP_INFO_IBITMAP_CORRUPT); ··· 1344 1344 goto fail_free_drop; 1345 1345 } 1346 1346 1347 - ext4_debug("allocating inode %lu\n", inode->i_ino); 1347 + ext4_debug("allocating inode %llu\n", inode->i_ino); 1348 1348 trace_ext4_allocate_inode(inode, dir, mode); 1349 1349 brelse(inode_bitmap_bh); 1350 1350 return ret;
+1 -1
fs/ext4/indirect.c
··· 102 102 offsets[n++] = i_block & (ptrs - 1); 103 103 final = ptrs; 104 104 } else { 105 - ext4_warning(inode->i_sb, "block %lu > max in inode %lu", 105 + ext4_warning(inode->i_sb, "block %lu > max in inode %llu", 106 106 i_block + direct_blocks + 107 107 indirect_blocks + double_blocks, inode->i_ino); 108 108 }
+7 -7
fs/ext4/inline.c
··· 119 119 error = ext4_get_inode_loc(inode, &iloc); 120 120 if (error) { 121 121 ext4_error_inode_err(inode, __func__, __LINE__, 0, -error, 122 - "can't get inode location %lu", 122 + "can't get inode location %llu", 123 123 inode->i_ino); 124 124 return 0; 125 125 } ··· 512 512 BUG_ON(folio->index); 513 513 514 514 if (!EXT4_I(inode)->i_inline_off) { 515 - ext4_warning(inode->i_sb, "inode %lu doesn't have inline data.", 515 + ext4_warning(inode->i_sb, "inode %llu doesn't have inline data.", 516 516 inode->i_ino); 517 517 goto out; 518 518 } ··· 934 934 struct ext4_dir_entry_2 *de = inline_start; 935 935 void *dlimit = inline_start + inline_size; 936 936 937 - trace_printk("inode %lu\n", dir->i_ino); 937 + trace_printk("inode %llu\n", dir->i_ino); 938 938 offset = 0; 939 939 while ((void *)de < dlimit) { 940 940 de_len = ext4_rec_len_from_disk(de->rec_len, inline_size); ··· 1071 1071 ret = ext4_create_inline_data(handle, inode, inline_size); 1072 1072 if (ret) { 1073 1073 ext4_msg(inode->i_sb, KERN_EMERG, 1074 - "error restoring inline_data for inode -- potential data loss! (inode %lu, error %d)", 1074 + "error restoring inline_data for inode -- potential data loss! (inode %llu, error %d)", 1075 1075 inode->i_ino, ret); 1076 1076 return; 1077 1077 } ··· 1740 1740 err = ext4_get_inode_loc(dir, &iloc); 1741 1741 if (err) { 1742 1742 EXT4_ERROR_INODE_ERR(dir, -err, 1743 - "error %d getting inode %lu block", 1743 + "error %d getting inode %llu block", 1744 1744 err, dir->i_ino); 1745 1745 return false; 1746 1746 } ··· 1755 1755 de = (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; 1756 1756 if (!le32_to_cpu(de->inode)) { 1757 1757 ext4_warning(dir->i_sb, 1758 - "bad inline directory (dir #%lu) - no `..'", 1758 + "bad inline directory (dir #%llu) - no `..'", 1759 1759 dir->i_ino); 1760 1760 goto out; 1761 1761 } ··· 1769 1769 iloc.bh, inline_pos, 1770 1770 inline_size, offset)) { 1771 1771 ext4_warning(dir->i_sb, 1772 - "bad inline directory (dir #%lu) - " 1772 + "bad inline directory (dir #%llu) - " 1773 1773 "inode %u, rec_len %u, name_len %d" 1774 1774 "inline size %d", 1775 1775 dir->i_ino, le32_to_cpu(de->inode),
+11 -11
fs/ext4/inode.c
··· 262 262 err = ext4_truncate(inode); 263 263 if (err) { 264 264 ext4_error_err(inode->i_sb, -err, 265 - "couldn't truncate inode %lu (err %d)", 265 + "couldn't truncate inode %llu (err %d)", 266 266 inode->i_ino, err); 267 267 goto stop_handle; 268 268 } ··· 342 342 spin_lock(&ei->i_block_reservation_lock); 343 343 trace_ext4_da_update_reserve_space(inode, used, quota_claim); 344 344 if (unlikely(used > ei->i_reserved_data_blocks)) { 345 - ext4_warning(inode->i_sb, "%s: ino %lu, used %d " 345 + ext4_warning(inode->i_sb, "%s: ino %llu, used %d " 346 346 "with only %d reserved data blocks", 347 347 __func__, inode->i_ino, used, 348 348 ei->i_reserved_data_blocks); ··· 475 475 if (es_map->m_lblk != map->m_lblk || 476 476 es_map->m_flags != map->m_flags || 477 477 es_map->m_pblk != map->m_pblk) { 478 - printk("ES cache assertion failed for inode: %lu " 478 + printk("ES cache assertion failed for inode: %llu " 479 479 "es_cached ex [%d/%d/%llu/%x] != " 480 480 "found ex [%d/%d/%llu/%x] retval %d flags %x\n", 481 481 inode->i_ino, es_map->m_lblk, es_map->m_len, ··· 515 515 if (unlikely(retval != map2.m_len)) { 516 516 ext4_warning(inode->i_sb, 517 517 "ES len assertion failed for inode " 518 - "%lu: retval %d != map->m_len %d", 518 + "%llu: retval %d != map->m_len %d", 519 519 inode->i_ino, retval, map2.m_len); 520 520 WARN_ON(1); 521 521 } ··· 563 563 if (unlikely(retval != map->m_len)) { 564 564 ext4_warning(inode->i_sb, 565 565 "ES len assertion failed for inode " 566 - "%lu: retval %d != map->m_len %d", 566 + "%llu: retval %d != map->m_len %d", 567 567 inode->i_ino, retval, map->m_len); 568 568 WARN_ON(1); 569 569 } ··· 630 630 631 631 if (unlikely(retval != map->m_len)) { 632 632 ext4_warning(inode->i_sb, 633 - "ES len assertion failed for inode %lu: " 633 + "ES len assertion failed for inode %llu: " 634 634 "retval %d != map->m_len %d", 635 635 inode->i_ino, retval, map->m_len); 636 636 WARN_ON(1); ··· 937 937 { 938 938 int ret = 0; 939 939 940 - ext4_debug("ext4_get_block_unwritten: inode %lu, create flag %d\n", 940 + ext4_debug("ext4_get_block_unwritten: inode %llu, create flag %d\n", 941 941 inode->i_ino, create); 942 942 ret = _ext4_get_block(inode, iblock, bh_result, 943 943 EXT4_GET_BLOCKS_CREATE_UNWRIT_EXT); ··· 1659 1659 * harmless to return without any action. 1660 1660 */ 1661 1661 ext4_warning(inode->i_sb, "ext4_da_release_space: " 1662 - "ino %lu, to_free %d with only %d reserved " 1662 + "ino %llu, to_free %d with only %d reserved " 1663 1663 "data blocks", inode->i_ino, to_free, 1664 1664 ei->i_reserved_data_blocks); 1665 1665 WARN_ON(1); ··· 2491 2491 } 2492 2492 ext4_msg(sb, KERN_CRIT, 2493 2493 "Delayed block allocation failed for " 2494 - "inode %lu at logical offset %llu with" 2494 + "inode %llu at logical offset %llu with" 2495 2495 " max blocks %u with error %d", 2496 2496 inode->i_ino, 2497 2497 (unsigned long long)map->m_lblk, ··· 2535 2535 err2 = ext4_mark_inode_dirty(handle, inode); 2536 2536 if (err2) { 2537 2537 ext4_error_err(inode->i_sb, -err2, 2538 - "Failed to mark inode %lu dirty", 2538 + "Failed to mark inode %llu dirty", 2539 2539 inode->i_ino); 2540 2540 } 2541 2541 if (!err) ··· 2909 2909 if (IS_ERR(handle)) { 2910 2910 ret = PTR_ERR(handle); 2911 2911 ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: " 2912 - "%ld pages, ino %lu; err %d", __func__, 2912 + "%ld pages, ino %llu; err %d", __func__, 2913 2913 wbc->nr_to_write, inode->i_ino, ret); 2914 2914 /* Release allocated io_end */ 2915 2915 ext4_put_io_end(mpd->io_submit.io_end);
+2 -2
fs/ext4/ioctl.c
··· 477 477 if (err < 0) { 478 478 /* No need to update quota information. */ 479 479 ext4_warning(inode->i_sb, 480 - "couldn't mark inode #%lu dirty (err %d)", 480 + "couldn't mark inode #%llu dirty (err %d)", 481 481 inode->i_ino, err); 482 482 /* Revert all changes: */ 483 483 swap_inode_data(inode, inode_bl); ··· 493 493 if (err < 0) { 494 494 /* No need to update quota information. */ 495 495 ext4_warning(inode_bl->i_sb, 496 - "couldn't mark inode #%lu dirty (err %d)", 496 + "couldn't mark inode #%llu dirty (err %d)", 497 497 inode_bl->i_ino, err); 498 498 goto revert; 499 499 }
+3 -3
fs/ext4/mballoc.c
··· 2266 2266 folio_get(ac->ac_buddy_folio); 2267 2267 /* store last allocated for subsequent stream allocation */ 2268 2268 if (ac->ac_flags & EXT4_MB_STREAM_ALLOC) { 2269 - int hash = ac->ac_inode->i_ino % sbi->s_mb_nr_global_goals; 2269 + int hash = (unsigned int)ac->ac_inode->i_ino % sbi->s_mb_nr_global_goals; 2270 2270 2271 2271 WRITE_ONCE(sbi->s_mb_last_groups[hash], ac->ac_f_ex.fe_group); 2272 2272 } ··· 3032 3032 3033 3033 /* if stream allocation is enabled, use global goal */ 3034 3034 if (ac->ac_flags & EXT4_MB_STREAM_ALLOC) { 3035 - int hash = ac->ac_inode->i_ino % sbi->s_mb_nr_global_goals; 3035 + int hash = (unsigned int)ac->ac_inode->i_ino % sbi->s_mb_nr_global_goals; 3036 3036 3037 3037 ac->ac_g_ex.fe_group = READ_ONCE(sbi->s_mb_last_groups[hash]); 3038 3038 ac->ac_g_ex.fe_start = -1; ··· 5628 5628 if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) 5629 5629 return; 5630 5630 5631 - mb_debug(sb, "discard preallocation for inode %lu\n", 5631 + mb_debug(sb, "discard preallocation for inode %llu\n", 5632 5632 inode->i_ino); 5633 5633 trace_ext4_discard_preallocations(inode, 5634 5634 atomic_read(&ei->i_prealloc_active));
+1 -1
fs/ext4/migrate.c
··· 455 455 * log, so disable fast commits for this transaction. 456 456 */ 457 457 ext4_fc_mark_ineligible(inode->i_sb, EXT4_FC_REASON_MIGRATE, handle); 458 - goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * 458 + goal = ((((u32)inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * 459 459 EXT4_INODES_PER_GROUP(inode->i_sb)) + 1; 460 460 owner[0] = i_uid_read(inode); 461 461 owner[1] = i_gid_read(inode);
+10 -10
fs/ext4/move_extent.c
··· 420 420 421 421 /* origin and donor should be different inodes */ 422 422 if (orig_inode == donor_inode) { 423 - ext4_debug("ext4 move extent: The argument files should not be same inode [ino:orig %lu, donor %lu]\n", 423 + ext4_debug("ext4 move extent: The argument files should not be same inode [ino:orig %llu, donor %llu]\n", 424 424 orig_inode->i_ino, donor_inode->i_ino); 425 425 return -EINVAL; 426 426 } 427 427 428 428 /* origin and donor should belone to the same filesystem */ 429 429 if (orig_inode->i_sb != donor_inode->i_sb) { 430 - ext4_debug("ext4 move extent: The argument files should be in same FS [ino:orig %lu, donor %lu]\n", 430 + ext4_debug("ext4 move extent: The argument files should be in same FS [ino:orig %llu, donor %llu]\n", 431 431 orig_inode->i_ino, donor_inode->i_ino); 432 432 return -EINVAL; 433 433 } 434 434 435 435 /* Regular file check */ 436 436 if (!S_ISREG(orig_inode->i_mode) || !S_ISREG(donor_inode->i_mode)) { 437 - ext4_debug("ext4 move extent: The argument files should be regular file [ino:orig %lu, donor %lu]\n", 437 + ext4_debug("ext4 move extent: The argument files should be regular file [ino:orig %llu, donor %llu]\n", 438 438 orig_inode->i_ino, donor_inode->i_ino); 439 439 return -EINVAL; 440 440 } ··· 477 477 } 478 478 479 479 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { 480 - ext4_debug("ext4 move extent: suid or sgid is set to donor file [ino:orig %lu, donor %lu]\n", 480 + ext4_debug("ext4 move extent: suid or sgid is set to donor file [ino:orig %llu, donor %llu]\n", 481 481 orig_inode->i_ino, donor_inode->i_ino); 482 482 return -EINVAL; 483 483 } 484 484 485 485 if (IS_IMMUTABLE(donor_inode) || IS_APPEND(donor_inode)) { 486 - ext4_debug("ext4 move extent: donor should not be immutable or append file [ino:orig %lu, donor %lu]\n", 486 + ext4_debug("ext4 move extent: donor should not be immutable or append file [ino:orig %llu, donor %llu]\n", 487 487 orig_inode->i_ino, donor_inode->i_ino); 488 488 return -EPERM; 489 489 } 490 490 491 491 /* Ext4 move extent does not support swap files */ 492 492 if (IS_SWAPFILE(orig_inode) || IS_SWAPFILE(donor_inode)) { 493 - ext4_debug("ext4 move extent: The argument files should not be swap files [ino:orig %lu, donor %lu]\n", 493 + ext4_debug("ext4 move extent: The argument files should not be swap files [ino:orig %llu, donor %llu]\n", 494 494 orig_inode->i_ino, donor_inode->i_ino); 495 495 return -ETXTBSY; 496 496 } 497 497 498 498 if (ext4_is_quota_file(orig_inode) || ext4_is_quota_file(donor_inode)) { 499 - ext4_debug("ext4 move extent: The argument files should not be quota files [ino:orig %lu, donor %lu]\n", 499 + ext4_debug("ext4 move extent: The argument files should not be quota files [ino:orig %llu, donor %llu]\n", 500 500 orig_inode->i_ino, donor_inode->i_ino); 501 501 return -EOPNOTSUPP; 502 502 } ··· 523 523 /* Start offset should be same */ 524 524 if ((orig_start & ~(PAGE_MASK >> orig_inode->i_blkbits)) != 525 525 (donor_start & ~(PAGE_MASK >> orig_inode->i_blkbits))) { 526 - ext4_debug("ext4 move extent: orig and donor's start offsets are not aligned [ino:orig %lu, donor %lu]\n", 526 + ext4_debug("ext4 move extent: orig and donor's start offsets are not aligned [ino:orig %llu, donor %llu]\n", 527 527 orig_inode->i_ino, donor_inode->i_ino); 528 528 return -EINVAL; 529 529 } ··· 533 533 (*len > EXT_MAX_BLOCKS) || 534 534 (donor_start + *len >= EXT_MAX_BLOCKS) || 535 535 (orig_start + *len >= EXT_MAX_BLOCKS)) { 536 - ext4_debug("ext4 move extent: Can't handle over [%u] blocks [ino:orig %lu, donor %lu]\n", 536 + ext4_debug("ext4 move extent: Can't handle over [%u] blocks [ino:orig %llu, donor %llu]\n", 537 537 EXT_MAX_BLOCKS, 538 538 orig_inode->i_ino, donor_inode->i_ino); 539 539 return -EINVAL; ··· 550 550 else if (donor_eof < donor_start + *len - 1) 551 551 *len = donor_eof - donor_start; 552 552 if (!*len) { 553 - ext4_debug("ext4 move extent: len should not be 0 [ino:orig %lu, donor %lu]\n", 553 + ext4_debug("ext4 move extent: len should not be 0 [ino:orig %llu, donor %llu]\n", 554 554 orig_inode->i_ino, donor_inode->i_ino); 555 555 return -EINVAL; 556 556 }
+5 -5
fs/ext4/namei.c
··· 144 144 bh = ext4_bread(NULL, inode, block, 0); 145 145 if (IS_ERR(bh)) { 146 146 __ext4_warning(inode->i_sb, func, line, 147 - "inode #%lu: lblock %lu: comm %s: " 147 + "inode #%llu: lblock %lu: comm %s: " 148 148 "error %ld reading directory block", 149 149 inode->i_ino, (unsigned long)block, 150 150 current->comm, PTR_ERR(bh)); ··· 841 841 indirect = root->info.indirect_levels; 842 842 if (indirect >= ext4_dir_htree_level(dir->i_sb)) { 843 843 ext4_warning(dir->i_sb, 844 - "Directory (ino: %lu) htree depth %#06x exceed" 844 + "Directory (ino: %llu) htree depth %#06x exceed" 845 845 "supported value", dir->i_ino, 846 846 ext4_dir_htree_level(dir->i_sb)); 847 847 if (ext4_dir_htree_level(dir->i_sb) < EXT4_HTREE_LEVEL) { ··· 1793 1793 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && 1794 1794 !fscrypt_has_permitted_context(dir, inode)) { 1795 1795 ext4_warning(inode->i_sb, 1796 - "Inconsistent encryption contexts: %lu/%lu", 1796 + "Inconsistent encryption contexts: %llu/%llu", 1797 1797 dir->i_ino, inode->i_ino); 1798 1798 iput(inode); 1799 1799 return ERR_PTR(-EPERM); ··· 2227 2227 csum_size = sizeof(struct ext4_dir_entry_tail); 2228 2228 2229 2229 blocksize = dir->i_sb->s_blocksize; 2230 - dxtrace(printk(KERN_DEBUG "Creating index: inode %lu\n", dir->i_ino)); 2230 + dxtrace(printk(KERN_DEBUG "Creating index: inode %llu\n", dir->i_ino)); 2231 2231 BUFFER_TRACE(bh, "get_write_access"); 2232 2232 retval = ext4_journal_get_write_access(handle, dir->i_sb, bh, 2233 2233 EXT4_JTR_NONE); ··· 2523 2523 restart = 1; 2524 2524 } 2525 2525 if (add_level && levels == ext4_dir_htree_level(sb)) { 2526 - ext4_warning(sb, "Directory (ino: %lu) index full, " 2526 + ext4_warning(sb, "Directory (ino: %llu) index full, " 2527 2527 "reach max htree level :%d", 2528 2528 dir->i_ino, levels); 2529 2529 if (ext4_dir_htree_level(sb) < EXT4_HTREE_LEVEL) {
+8 -8
fs/ext4/orphan.c
··· 179 179 } else 180 180 brelse(iloc.bh); 181 181 182 - ext4_debug("superblock will point to %lu\n", inode->i_ino); 183 - ext4_debug("orphan inode %lu will point to %d\n", 182 + ext4_debug("superblock will point to %llu\n", inode->i_ino); 183 + ext4_debug("orphan inode %llu will point to %d\n", 184 184 inode->i_ino, NEXT_ORPHAN(inode)); 185 185 out: 186 186 ext4_std_error(sb, err); ··· 249 249 } 250 250 251 251 mutex_lock(&sbi->s_orphan_lock); 252 - ext4_debug("remove inode %lu from orphan list\n", inode->i_ino); 252 + ext4_debug("remove inode %llu from orphan list\n", inode->i_ino); 253 253 254 254 prev = ei->i_orphan.prev; 255 255 list_del_init(&ei->i_orphan); ··· 284 284 struct inode *i_prev = 285 285 &list_entry(prev, struct ext4_inode_info, i_orphan)->vfs_inode; 286 286 287 - ext4_debug("orphan inode %lu will point to %u\n", 287 + ext4_debug("orphan inode %llu will point to %u\n", 288 288 i_prev->i_ino, ino_next); 289 289 err = ext4_reserve_inode_write(handle, i_prev, &iloc2); 290 290 if (err) { ··· 328 328 if (inode->i_nlink) { 329 329 if (test_opt(sb, DEBUG)) 330 330 ext4_msg(sb, KERN_DEBUG, 331 - "%s: truncating inode %lu to %lld bytes", 331 + "%s: truncating inode %llu to %lld bytes", 332 332 __func__, inode->i_ino, inode->i_size); 333 - ext4_debug("truncating inode %lu to %lld bytes\n", 333 + ext4_debug("truncating inode %llu to %lld bytes\n", 334 334 inode->i_ino, inode->i_size); 335 335 inode_lock(inode); 336 336 truncate_inode_pages(inode->i_mapping, inode->i_size); ··· 349 349 } else { 350 350 if (test_opt(sb, DEBUG)) 351 351 ext4_msg(sb, KERN_DEBUG, 352 - "%s: deleting unreferenced inode %lu", 352 + "%s: deleting unreferenced inode %llu", 353 353 __func__, inode->i_ino); 354 - ext4_debug("deleting unreferenced inode %lu\n", 354 + ext4_debug("deleting unreferenced inode %llu\n", 355 355 inode->i_ino); 356 356 (*nr_orphans)++; 357 357 }
+5 -5
fs/ext4/page-io.c
··· 180 180 struct super_block *sb = inode->i_sb; 181 181 int ret = 0; 182 182 183 - ext4_debug("ext4_end_io_nolock: io_end 0x%p from inode %lu,list->next 0x%p," 183 + ext4_debug("ext4_end_io_nolock: io_end 0x%p from inode %llu,list->next 0x%p," 184 184 "list->prev 0x%p\n", 185 185 io_end, inode->i_ino, io_end->list.next, io_end->list.prev); 186 186 ··· 204 204 ext4_msg(sb, KERN_EMERG, 205 205 "failed to convert unwritten extents to written " 206 206 "extents -- potential data loss! " 207 - "(inode %lu, error %d)", inode->i_ino, ret); 207 + "(inode %llu, error %d)", inode->i_ino, ret); 208 208 } 209 209 210 210 ext4_clear_io_unwritten_flag(io_end); ··· 221 221 if (list_empty(head)) 222 222 return; 223 223 224 - ext4_debug("Dump inode %lu completed io list\n", inode->i_ino); 224 + ext4_debug("Dump inode %llu completed io list\n", inode->i_ino); 225 225 list_for_each_entry(io_end, head, list) { 226 226 cur = &io_end->list; 227 227 before = cur->prev; ··· 229 229 after = cur->next; 230 230 io_end1 = container_of(after, ext4_io_end_t, list); 231 231 232 - ext4_debug("io 0x%p from inode %lu,prev 0x%p,next 0x%p\n", 232 + ext4_debug("io 0x%p from inode %llu,prev 0x%p,next 0x%p\n", 233 233 io_end, inode->i_ino, io_end0, io_end1); 234 234 } 235 235 #endif ··· 366 366 if (bio->bi_status) { 367 367 struct inode *inode = io_end->inode; 368 368 369 - ext4_warning(inode->i_sb, "I/O error %d writing to inode %lu " 369 + ext4_warning(inode->i_sb, "I/O error %d writing to inode %llu " 370 370 "starting block %llu)", 371 371 bio->bi_status, inode->i_ino, 372 372 (unsigned long long)
+11 -11
fs/ext4/super.c
··· 848 848 vaf.va = &args; 849 849 if (block) 850 850 printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " 851 - "inode #%lu: block %llu: comm %s: %pV\n", 851 + "inode #%llu: block %llu: comm %s: %pV\n", 852 852 inode->i_sb->s_id, function, line, inode->i_ino, 853 853 block, current->comm, &vaf); 854 854 else 855 855 printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " 856 - "inode #%lu: comm %s: %pV\n", 856 + "inode #%llu: comm %s: %pV\n", 857 857 inode->i_sb->s_id, function, line, inode->i_ino, 858 858 current->comm, &vaf); 859 859 va_end(args); ··· 888 888 vaf.va = &args; 889 889 if (block) 890 890 printk(KERN_CRIT 891 - "EXT4-fs error (device %s): %s:%d: inode #%lu: " 891 + "EXT4-fs error (device %s): %s:%d: inode #%llu: " 892 892 "block %llu: comm %s: path %s: %pV\n", 893 893 inode->i_sb->s_id, function, line, inode->i_ino, 894 894 block, current->comm, path, &vaf); 895 895 else 896 896 printk(KERN_CRIT 897 - "EXT4-fs error (device %s): %s:%d: inode #%lu: " 897 + "EXT4-fs error (device %s): %s:%d: inode #%llu: " 898 898 "comm %s: path %s: %pV\n", 899 899 inode->i_sb->s_id, function, line, inode->i_ino, 900 900 current->comm, path, &vaf); ··· 1035 1035 vaf.fmt = fmt; 1036 1036 vaf.va = &args; 1037 1037 printk(KERN_WARNING "EXT4-fs warning (device %s): %s:%d: " 1038 - "inode #%lu: comm %s: %pV\n", inode->i_sb->s_id, 1038 + "inode #%llu: comm %s: %pV\n", inode->i_sb->s_id, 1039 1039 function, line, inode->i_ino, current->comm, &vaf); 1040 1040 va_end(args); 1041 1041 } 1042 1042 1043 1043 void __ext4_grp_locked_error(const char *function, unsigned int line, 1044 1044 struct super_block *sb, ext4_group_t grp, 1045 - unsigned long ino, ext4_fsblk_t block, 1045 + u64 ino, ext4_fsblk_t block, 1046 1046 const char *fmt, ...) 1047 1047 __releases(bitlock) 1048 1048 __acquires(bitlock) ··· 1061 1061 printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u, ", 1062 1062 sb->s_id, function, line, grp); 1063 1063 if (ino) 1064 - printk(KERN_CONT "inode %lu: ", ino); 1064 + printk(KERN_CONT "inode %llu: ", ino); 1065 1065 if (block) 1066 1066 printk(KERN_CONT "block %llu:", 1067 1067 (unsigned long long) block); ··· 1170 1170 list_for_each(l, &sbi->s_orphan) { 1171 1171 struct inode *inode = orphan_list_entry(l); 1172 1172 printk(KERN_ERR " " 1173 - "inode %s:%lu at %p: mode %o, nlink %d, next %d\n", 1173 + "inode %s:%llu at %p: mode %o, nlink %d, next %d\n", 1174 1174 inode->i_sb->s_id, inode->i_ino, inode, 1175 1175 inode->i_mode, inode->i_nlink, 1176 1176 NEXT_ORPHAN(inode)); ··· 1446 1446 { 1447 1447 fscrypt_free_inode(inode); 1448 1448 if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { 1449 - pr_warn("%s: inode %ld still in fc list", 1449 + pr_warn("%s: inode %llu still in fc list", 1450 1450 __func__, inode->i_ino); 1451 1451 } 1452 1452 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); ··· 1456 1456 { 1457 1457 if (ext4_inode_orphan_tracked(inode)) { 1458 1458 ext4_msg(inode->i_sb, KERN_ERR, 1459 - "Inode %lu (%p): inode tracked as orphan!", 1459 + "Inode %llu (%p): inode tracked as orphan!", 1460 1460 inode->i_ino, EXT4_I(inode)); 1461 1461 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 16, 4, 1462 1462 EXT4_I(inode), sizeof(struct ext4_inode_info), ··· 1467 1467 if (!(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_ERROR_FS) && 1468 1468 WARN_ON_ONCE(EXT4_I(inode)->i_reserved_data_blocks)) 1469 1469 ext4_msg(inode->i_sb, KERN_ERR, 1470 - "Inode %lu (%p): i_reserved_data_blocks (%u) not cleared!", 1470 + "Inode %llu (%p): i_reserved_data_blocks (%u) not cleared!", 1471 1471 inode->i_ino, EXT4_I(inode), 1472 1472 EXT4_I(inode)->i_reserved_data_blocks); 1473 1473 }
+5 -5
fs/ext4/xattr.c
··· 64 64 65 65 #ifdef EXT4_XATTR_DEBUG 66 66 # define ea_idebug(inode, fmt, ...) \ 67 - printk(KERN_DEBUG "inode %s:%lu: " fmt "\n", \ 67 + printk(KERN_DEBUG "inode %s:%llu: " fmt "\n", \ 68 68 inode->i_sb->s_id, inode->i_ino, ##__VA_ARGS__) 69 69 # define ea_bdebug(bh, fmt, ...) \ 70 70 printk(KERN_DEBUG "block %pg:%lu: " fmt "\n", \ ··· 1035 1035 ref_count = ext4_xattr_inode_get_ref(ea_inode); 1036 1036 if ((ref_count == 0 && ref_change < 0) || (ref_count == U64_MAX && ref_change > 0)) { 1037 1037 ext4_error_inode(ea_inode, __func__, __LINE__, 0, 1038 - "EA inode %lu ref wraparound: ref_count=%lld ref_change=%d", 1038 + "EA inode %llu ref wraparound: ref_count=%lld ref_change=%d", 1039 1039 ea_inode->i_ino, ref_count, ref_change); 1040 1040 brelse(iloc.bh); 1041 1041 ret = -EFSCORRUPTED; ··· 1046 1046 1047 1047 if (ref_change > 0) { 1048 1048 if (ref_count == 1) { 1049 - WARN_ONCE(ea_inode->i_nlink, "EA inode %lu i_nlink=%u", 1049 + WARN_ONCE(ea_inode->i_nlink, "EA inode %llu i_nlink=%u", 1050 1050 ea_inode->i_ino, ea_inode->i_nlink); 1051 1051 1052 1052 set_nlink(ea_inode, 1); ··· 1055 1055 } else { 1056 1056 if (ref_count == 0) { 1057 1057 WARN_ONCE(ea_inode->i_nlink != 1, 1058 - "EA inode %lu i_nlink=%u", 1058 + "EA inode %llu i_nlink=%u", 1059 1059 ea_inode->i_ino, ea_inode->i_nlink); 1060 1060 1061 1061 clear_nlink(ea_inode); ··· 2854 2854 2855 2855 cleanup: 2856 2856 if (error && (mnt_count != le16_to_cpu(sbi->s_es->s_mnt_count))) { 2857 - ext4_warning(inode->i_sb, "Unable to expand inode %lu. Delete some EAs or run e2fsck.", 2857 + ext4_warning(inode->i_sb, "Unable to expand inode %llu. Delete some EAs or run e2fsck.", 2858 2858 inode->i_ino); 2859 2859 mnt_count = le16_to_cpu(sbi->s_es->s_mnt_count); 2860 2860 }
+2 -2
fs/f2fs/compress.c
··· 773 773 if (!is_inode_flag_set(dic->inode, FI_COMPRESS_CORRUPT)) { 774 774 set_inode_flag(dic->inode, FI_COMPRESS_CORRUPT); 775 775 f2fs_info_ratelimited(sbi, 776 - "checksum invalid, nid = %lu, %x vs %x", 776 + "checksum invalid, nid = %llu, %x vs %x", 777 777 dic->inode->i_ino, 778 778 provided, calculated); 779 779 } ··· 932 932 933 933 return false; 934 934 out: 935 - f2fs_warn(sbi, "access invalid cluster, ino:%lu, nid:%u, ofs_in_node:%u, reason:%s", 935 + f2fs_warn(sbi, "access invalid cluster, ino:%llu, nid:%u, ofs_in_node:%u, reason:%s", 936 936 dn->inode->i_ino, dn->nid, dn->ofs_in_node, reason); 937 937 set_sbi_flag(sbi, SBI_NEED_FSCK); 938 938 return true;
+1 -1
fs/f2fs/dir.c
··· 368 368 369 369 max_depth = F2FS_I(dir)->i_current_depth; 370 370 if (unlikely(max_depth > MAX_DIR_HASH_DEPTH)) { 371 - f2fs_warn(F2FS_I_SB(dir), "Corrupted max_depth of %lu: %u", 371 + f2fs_warn(F2FS_I_SB(dir), "Corrupted max_depth of %llu: %u", 372 372 dir->i_ino, max_depth); 373 373 max_depth = MAX_DIR_HASH_DEPTH; 374 374 f2fs_i_depth_write(dir, max_depth);
+4 -4
fs/f2fs/extent_cache.c
··· 34 34 if (!f2fs_is_valid_blkaddr(sbi, ei.blk, DATA_GENERIC_ENHANCE) || 35 35 !f2fs_is_valid_blkaddr(sbi, ei.blk + ei.len - 1, 36 36 DATA_GENERIC_ENHANCE)) { 37 - f2fs_warn(sbi, "%s: inode (ino=%lx) extent info [%u, %u, %u] is incorrect, run fsck to fix", 37 + f2fs_warn(sbi, "%s: inode (ino=%llx) extent info [%u, %u, %u] is incorrect, run fsck to fix", 38 38 __func__, inode->i_ino, 39 39 ei.blk, ei.fofs, ei.len); 40 40 return false; ··· 50 50 51 51 if (devi == 0) { 52 52 f2fs_warn(sbi, 53 - "%s: inode (ino=%lx) is an alias of meta device", 53 + "%s: inode (ino=%llx) is an alias of meta device", 54 54 __func__, inode->i_ino); 55 55 return false; 56 56 } 57 57 58 58 if (bdev_is_zoned(FDEV(devi).bdev)) { 59 59 f2fs_warn(sbi, 60 - "%s: device alias inode (ino=%lx)'s extent info " 60 + "%s: device alias inode (ino=%llx)'s extent info " 61 61 "[%u, %u, %u] maps to zoned block device", 62 62 __func__, inode->i_ino, ei.blk, ei.fofs, ei.len); 63 63 return false; ··· 65 65 return true; 66 66 } 67 67 68 - f2fs_warn(sbi, "%s: device alias inode (ino=%lx)'s extent info " 68 + f2fs_warn(sbi, "%s: device alias inode (ino=%llx)'s extent info " 69 69 "[%u, %u, %u] is inconsistent w/ any devices", 70 70 __func__, inode->i_ino, ei.blk, ei.fofs, ei.len); 71 71 return false;
+3 -3
fs/f2fs/f2fs.h
··· 2706 2706 2707 2707 spin_lock(&sbi->stat_lock); 2708 2708 if (unlikely(sbi->total_valid_block_count < count)) { 2709 - f2fs_warn(sbi, "Inconsistent total_valid_block_count:%u, ino:%lu, count:%u", 2709 + f2fs_warn(sbi, "Inconsistent total_valid_block_count:%u, ino:%llu, count:%u", 2710 2710 sbi->total_valid_block_count, inode->i_ino, count); 2711 2711 sbi->total_valid_block_count = 0; 2712 2712 set_sbi_flag(sbi, SBI_NEED_FSCK); ··· 2719 2719 sbi->current_reserved_blocks + count); 2720 2720 spin_unlock(&sbi->stat_lock); 2721 2721 if (unlikely(inode->i_blocks < sectors)) { 2722 - f2fs_warn(sbi, "Inconsistent i_blocks, ino:%lu, iblocks:%llu, sectors:%llu", 2722 + f2fs_warn(sbi, "Inconsistent i_blocks, ino:%llu, iblocks:%llu, sectors:%llu", 2723 2723 inode->i_ino, 2724 2724 (unsigned long long)inode->i_blocks, 2725 2725 (unsigned long long)sectors); ··· 2993 2993 dquot_free_inode(inode); 2994 2994 } else { 2995 2995 if (unlikely(inode->i_blocks == 0)) { 2996 - f2fs_warn(sbi, "dec_valid_node_count: inconsistent i_blocks, ino:%lu, iblocks:%llu", 2996 + f2fs_warn(sbi, "dec_valid_node_count: inconsistent i_blocks, ino:%llu, iblocks:%llu", 2997 2997 inode->i_ino, 2998 2998 (unsigned long long)inode->i_blocks); 2999 2999 set_sbi_flag(sbi, SBI_NEED_FSCK);
+6 -6
fs/f2fs/file.c
··· 1917 1917 f2fs_up_write(&sbi->pin_sem); 1918 1918 err = -ENOSPC; 1919 1919 f2fs_warn_ratelimited(sbi, 1920 - "ino:%lu, start:%lu, end:%lu, need to trigger GC to " 1920 + "ino:%llu, start:%lu, end:%lu, need to trigger GC to " 1921 1921 "reclaim enough free segment when checkpoint is enabled", 1922 1922 inode->i_ino, pg_start, pg_end); 1923 1923 goto out_err; ··· 2307 2307 * f2fs_is_atomic_file. 2308 2308 */ 2309 2309 if (get_dirty_pages(inode)) 2310 - f2fs_warn(sbi, "Unexpected flush for atomic writes: ino=%lu, npages=%u", 2310 + f2fs_warn(sbi, "Unexpected flush for atomic writes: ino=%llu, npages=%u", 2311 2311 inode->i_ino, get_dirty_pages(inode)); 2312 2312 ret = filemap_write_and_wait_range(inode->i_mapping, 0, LLONG_MAX); 2313 2313 if (ret) ··· 3494 3494 return -EINVAL; 3495 3495 3496 3496 if (fi->i_gc_failures >= sbi->gc_pin_file_threshold) { 3497 - f2fs_warn(sbi, "%s: Enable GC = ino %lx after %x GC trials", 3497 + f2fs_warn(sbi, "%s: Enable GC = ino %llx after %x GC trials", 3498 3498 __func__, inode->i_ino, fi->i_gc_failures); 3499 3499 clear_inode_flag(inode, FI_PIN_FILE); 3500 3500 return -EAGAIN; ··· 3679 3679 3680 3680 if (!f2fs_sb_has_verity(F2FS_I_SB(inode))) { 3681 3681 f2fs_warn(F2FS_I_SB(inode), 3682 - "Can't enable fs-verity on inode %lu: the verity feature is not enabled on this filesystem", 3682 + "Can't enable fs-verity on inode %llu: the verity feature is not enabled on this filesystem", 3683 3683 inode->i_ino); 3684 3684 return -EOPNOTSUPP; 3685 3685 } ··· 3950 3950 } else if (released_blocks && 3951 3951 atomic_read(&fi->i_compr_blocks)) { 3952 3952 set_sbi_flag(sbi, SBI_NEED_FSCK); 3953 - f2fs_warn(sbi, "%s: partial blocks were released i_ino=%lx " 3953 + f2fs_warn(sbi, "%s: partial blocks were released i_ino=%llx " 3954 3954 "iblocks=%llu, released=%u, compr_blocks=%u, " 3955 3955 "run fsck to fix.", 3956 3956 __func__, inode->i_ino, inode->i_blocks, ··· 4133 4133 } else if (reserved_blocks && 4134 4134 atomic_read(&fi->i_compr_blocks)) { 4135 4135 set_sbi_flag(sbi, SBI_NEED_FSCK); 4136 - f2fs_warn(sbi, "%s: partial blocks were reserved i_ino=%lx " 4136 + f2fs_warn(sbi, "%s: partial blocks were reserved i_ino=%llx " 4137 4137 "iblocks=%llu, reserved=%u, compr_blocks=%u, " 4138 4138 "run fsck to fix.", 4139 4139 __func__, inode->i_ino, inode->i_blocks,
+1 -1
fs/f2fs/gc.c
··· 1622 1622 iput(inode); 1623 1623 set_sbi_flag(sbi, SBI_NEED_FSCK); 1624 1624 f2fs_err_ratelimited(sbi, 1625 - "inode %lx has both inline_data flag and " 1625 + "inode %llu has both inline_data flag and " 1626 1626 "data block, nid=%u, ofs_in_node=%u", 1627 1627 inode->i_ino, dni.nid, ofs_in_node); 1628 1628 continue;
+2 -2
fs/f2fs/inline.c
··· 176 176 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { 177 177 f2fs_put_dnode(dn); 178 178 set_sbi_flag(fio.sbi, SBI_NEED_FSCK); 179 - f2fs_warn(fio.sbi, "%s: corrupted inline inode ino=%lx, i_addr[0]:0x%x, run fsck to fix.", 179 + f2fs_warn(fio.sbi, "%s: corrupted inline inode ino=%llu, i_addr[0]:0x%x, run fsck to fix.", 180 180 __func__, dn->inode->i_ino, dn->data_blkaddr); 181 181 f2fs_handle_error(fio.sbi, ERROR_INVALID_BLKADDR); 182 182 return -EFSCORRUPTED; ··· 431 431 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { 432 432 f2fs_put_dnode(&dn); 433 433 set_sbi_flag(F2FS_F_SB(folio), SBI_NEED_FSCK); 434 - f2fs_warn(F2FS_F_SB(folio), "%s: corrupted inline inode ino=%lx, i_addr[0]:0x%x, run fsck to fix.", 434 + f2fs_warn(F2FS_F_SB(folio), "%s: corrupted inline inode ino=%llu, i_addr[0]:0x%x, run fsck to fix.", 435 435 __func__, dir->i_ino, dn.data_blkaddr); 436 436 f2fs_handle_error(F2FS_F_SB(folio), ERROR_INVALID_BLKADDR); 437 437 err = -EFSCORRUPTED;
+24 -24
fs/f2fs/inode.c
··· 203 203 204 204 if (ri->i_compress_algorithm >= COMPRESS_MAX) { 205 205 f2fs_warn(sbi, 206 - "%s: inode (ino=%lx) has unsupported compress algorithm: %u, run fsck to fix", 206 + "%s: inode (ino=%llx) has unsupported compress algorithm: %u, run fsck to fix", 207 207 __func__, inode->i_ino, ri->i_compress_algorithm); 208 208 return false; 209 209 } 210 210 if (le64_to_cpu(ri->i_compr_blocks) > 211 211 SECTOR_TO_BLOCK(inode->i_blocks)) { 212 212 f2fs_warn(sbi, 213 - "%s: inode (ino=%lx) has inconsistent i_compr_blocks:%llu, i_blocks:%llu, run fsck to fix", 213 + "%s: inode (ino=%llx) has inconsistent i_compr_blocks:%llu, i_blocks:%llu, run fsck to fix", 214 214 __func__, inode->i_ino, le64_to_cpu(ri->i_compr_blocks), 215 215 SECTOR_TO_BLOCK(inode->i_blocks)); 216 216 return false; ··· 218 218 if (ri->i_log_cluster_size < MIN_COMPRESS_LOG_SIZE || 219 219 ri->i_log_cluster_size > MAX_COMPRESS_LOG_SIZE) { 220 220 f2fs_warn(sbi, 221 - "%s: inode (ino=%lx) has unsupported log cluster size: %u, run fsck to fix", 221 + "%s: inode (ino=%llx) has unsupported log cluster size: %u, run fsck to fix", 222 222 __func__, inode->i_ino, ri->i_log_cluster_size); 223 223 return false; 224 224 } ··· 262 262 263 263 return true; 264 264 err_level: 265 - f2fs_warn(sbi, "%s: inode (ino=%lx) has unsupported compress level: %u, run fsck to fix", 265 + f2fs_warn(sbi, "%s: inode (ino=%llx) has unsupported compress level: %u, run fsck to fix", 266 266 __func__, inode->i_ino, clevel); 267 267 return false; 268 268 } ··· 276 276 277 277 iblocks = le64_to_cpu(F2FS_INODE(node_folio)->i_blocks); 278 278 if (!iblocks) { 279 - f2fs_warn(sbi, "%s: corrupted inode i_blocks i_ino=%lx iblocks=%llu, run fsck to fix.", 279 + f2fs_warn(sbi, "%s: corrupted inode i_blocks i_ino=%llx iblocks=%llu, run fsck to fix.", 280 280 __func__, inode->i_ino, iblocks); 281 281 return false; 282 282 } 283 283 284 284 if (ino_of_node(node_folio) != nid_of_node(node_folio)) { 285 - f2fs_warn(sbi, "%s: corrupted inode footer i_ino=%lx, ino,nid: [%u, %u] run fsck to fix.", 285 + f2fs_warn(sbi, "%s: corrupted inode footer i_ino=%llx, ino,nid: [%u, %u] run fsck to fix.", 286 286 __func__, inode->i_ino, 287 287 ino_of_node(node_folio), nid_of_node(node_folio)); 288 288 return false; 289 289 } 290 290 291 291 if (ino_of_node(node_folio) == fi->i_xattr_nid) { 292 - f2fs_warn(sbi, "%s: corrupted inode i_ino=%lx, xnid=%x, run fsck to fix.", 292 + f2fs_warn(sbi, "%s: corrupted inode i_ino=%llx, xnid=%x, run fsck to fix.", 293 293 __func__, inode->i_ino, fi->i_xattr_nid); 294 294 return false; 295 295 } 296 296 297 297 if (S_ISDIR(inode->i_mode) && unlikely(inode->i_nlink == 1)) { 298 - f2fs_warn(sbi, "%s: directory inode (ino=%lx) has a single i_nlink", 298 + f2fs_warn(sbi, "%s: directory inode (ino=%llx) has a single i_nlink", 299 299 __func__, inode->i_ino); 300 300 return false; 301 301 } 302 302 303 303 if (f2fs_has_extra_attr(inode)) { 304 304 if (!f2fs_sb_has_extra_attr(sbi)) { 305 - f2fs_warn(sbi, "%s: inode (ino=%lx) is with extra_attr, but extra_attr feature is off", 305 + f2fs_warn(sbi, "%s: inode (ino=%llx) is with extra_attr, but extra_attr feature is off", 306 306 __func__, inode->i_ino); 307 307 return false; 308 308 } 309 309 if (fi->i_extra_isize > F2FS_TOTAL_EXTRA_ATTR_SIZE || 310 310 fi->i_extra_isize < F2FS_MIN_EXTRA_ATTR_SIZE || 311 311 fi->i_extra_isize % sizeof(__le32)) { 312 - f2fs_warn(sbi, "%s: inode (ino=%lx) has corrupted i_extra_isize: %d, max: %zu", 312 + f2fs_warn(sbi, "%s: inode (ino=%llx) has corrupted i_extra_isize: %d, max: %zu", 313 313 __func__, inode->i_ino, fi->i_extra_isize, 314 314 F2FS_TOTAL_EXTRA_ATTR_SIZE); 315 315 return false; ··· 327 327 f2fs_has_inline_xattr(inode) && 328 328 (fi->i_inline_xattr_size < MIN_INLINE_XATTR_SIZE || 329 329 fi->i_inline_xattr_size > MAX_INLINE_XATTR_SIZE)) { 330 - f2fs_warn(sbi, "%s: inode (ino=%lx) has corrupted i_inline_xattr_size: %d, min: %zu, max: %lu", 330 + f2fs_warn(sbi, "%s: inode (ino=%llx) has corrupted i_inline_xattr_size: %d, min: %zu, max: %lu", 331 331 __func__, inode->i_ino, fi->i_inline_xattr_size, 332 332 MIN_INLINE_XATTR_SIZE, MAX_INLINE_XATTR_SIZE); 333 333 return false; ··· 335 335 336 336 if (!f2fs_sb_has_extra_attr(sbi)) { 337 337 if (f2fs_sb_has_project_quota(sbi)) { 338 - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, wrong feature flag: %u, run fsck to fix.", 338 + f2fs_warn(sbi, "%s: corrupted inode ino=%llx, wrong feature flag: %u, run fsck to fix.", 339 339 __func__, inode->i_ino, F2FS_FEATURE_PRJQUOTA); 340 340 return false; 341 341 } 342 342 if (f2fs_sb_has_inode_chksum(sbi)) { 343 - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, wrong feature flag: %u, run fsck to fix.", 343 + f2fs_warn(sbi, "%s: corrupted inode ino=%llx, wrong feature flag: %u, run fsck to fix.", 344 344 __func__, inode->i_ino, F2FS_FEATURE_INODE_CHKSUM); 345 345 return false; 346 346 } 347 347 if (f2fs_sb_has_flexible_inline_xattr(sbi)) { 348 - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, wrong feature flag: %u, run fsck to fix.", 348 + f2fs_warn(sbi, "%s: corrupted inode ino=%llx, wrong feature flag: %u, run fsck to fix.", 349 349 __func__, inode->i_ino, F2FS_FEATURE_FLEXIBLE_INLINE_XATTR); 350 350 return false; 351 351 } 352 352 if (f2fs_sb_has_inode_crtime(sbi)) { 353 - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, wrong feature flag: %u, run fsck to fix.", 353 + f2fs_warn(sbi, "%s: corrupted inode ino=%llx, wrong feature flag: %u, run fsck to fix.", 354 354 __func__, inode->i_ino, F2FS_FEATURE_INODE_CRTIME); 355 355 return false; 356 356 } 357 357 if (f2fs_sb_has_compression(sbi)) { 358 - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, wrong feature flag: %u, run fsck to fix.", 358 + f2fs_warn(sbi, "%s: corrupted inode ino=%llx, wrong feature flag: %u, run fsck to fix.", 359 359 __func__, inode->i_ino, F2FS_FEATURE_COMPRESSION); 360 360 return false; 361 361 } 362 362 } 363 363 364 364 if (f2fs_sanity_check_inline_data(inode, node_folio)) { 365 - f2fs_warn(sbi, "%s: inode (ino=%lx, mode=%u) should not have inline_data, run fsck to fix", 365 + f2fs_warn(sbi, "%s: inode (ino=%llx, mode=%u) should not have inline_data, run fsck to fix", 366 366 __func__, inode->i_ino, inode->i_mode); 367 367 return false; 368 368 } 369 369 370 370 if (f2fs_has_inline_dentry(inode) && !S_ISDIR(inode->i_mode)) { 371 - f2fs_warn(sbi, "%s: inode (ino=%lx, mode=%u) should not have inline_dentry, run fsck to fix", 371 + f2fs_warn(sbi, "%s: inode (ino=%llx, mode=%u) should not have inline_dentry, run fsck to fix", 372 372 __func__, inode->i_ino, inode->i_mode); 373 373 return false; 374 374 } 375 375 376 376 if ((fi->i_flags & F2FS_CASEFOLD_FL) && !f2fs_sb_has_casefold(sbi)) { 377 - f2fs_warn(sbi, "%s: inode (ino=%lx) has casefold flag, but casefold feature is off", 377 + f2fs_warn(sbi, "%s: inode (ino=%llx) has casefold flag, but casefold feature is off", 378 378 __func__, inode->i_ino); 379 379 return false; 380 380 } 381 381 382 382 if (fi->i_xattr_nid && f2fs_check_nid_range(sbi, fi->i_xattr_nid)) { 383 - f2fs_warn(sbi, "%s: inode (ino=%lx) has corrupted i_xattr_nid: %u, run fsck to fix.", 383 + f2fs_warn(sbi, "%s: inode (ino=%llx) has corrupted i_xattr_nid: %u, run fsck to fix.", 384 384 __func__, inode->i_ino, fi->i_xattr_nid); 385 385 return false; 386 386 } 387 387 388 388 if (IS_DEVICE_ALIASING(inode)) { 389 389 if (!f2fs_sb_has_device_alias(sbi)) { 390 - f2fs_warn(sbi, "%s: inode (ino=%lx) has device alias flag, but the feature is off", 390 + f2fs_warn(sbi, "%s: inode (ino=%llx) has device alias flag, but the feature is off", 391 391 __func__, inode->i_ino); 392 392 return false; 393 393 } 394 394 if (!f2fs_is_pinned_file(inode)) { 395 - f2fs_warn(sbi, "%s: inode (ino=%lx) has device alias flag, but is not pinned", 395 + f2fs_warn(sbi, "%s: inode (ino=%llx) has device alias flag, but is not pinned", 396 396 __func__, inode->i_ino); 397 397 return false; 398 398 } ··· 925 925 */ 926 926 if (is_inode_flag_set(inode, FI_DIRTY_INODE)) { 927 927 f2fs_warn(F2FS_I_SB(inode), 928 - "f2fs_evict_inode: inconsistent node id, ino:%lu", 928 + "f2fs_evict_inode: inconsistent node id, ino:%llu", 929 929 inode->i_ino); 930 930 f2fs_inode_synced(inode); 931 931 set_sbi_flag(sbi, SBI_NEED_FSCK); ··· 954 954 */ 955 955 if (is_inode_flag_set(inode, FI_DIRTY_INODE)) { 956 956 f2fs_warn(sbi, 957 - "f2fs_evict_inode: inode is dirty, ino:%lu", 957 + "f2fs_evict_inode: inode is dirty, ino:%llu", 958 958 inode->i_ino); 959 959 f2fs_inode_synced(inode); 960 960 set_sbi_flag(sbi, SBI_NEED_FSCK);
+4 -4
fs/f2fs/namei.c
··· 505 505 } 506 506 507 507 if (inode->i_nlink == 0) { 508 - f2fs_warn(F2FS_I_SB(inode), "%s: inode (ino=%lx) has zero i_nlink", 508 + f2fs_warn(F2FS_I_SB(inode), "%s: inode (ino=%llx) has zero i_nlink", 509 509 __func__, inode->i_ino); 510 510 err = -EFSCORRUPTED; 511 511 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); ··· 515 515 if (IS_ENCRYPTED(dir) && 516 516 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && 517 517 !fscrypt_has_permitted_context(dir, inode)) { 518 - f2fs_warn(F2FS_I_SB(inode), "Inconsistent encryption contexts: %lu/%lu", 518 + f2fs_warn(F2FS_I_SB(inode), "Inconsistent encryption contexts: %llu/%llu", 519 519 dir->i_ino, inode->i_ino); 520 520 err = -EPERM; 521 521 goto out_iput; ··· 573 573 } 574 574 575 575 if (unlikely(inode->i_nlink == 0)) { 576 - f2fs_warn(sbi, "%s: inode (ino=%lx) has zero i_nlink", 576 + f2fs_warn(sbi, "%s: inode (ino=%llx) has zero i_nlink", 577 577 __func__, inode->i_ino); 578 578 goto corrupted; 579 579 } else if (S_ISDIR(inode->i_mode) && unlikely(inode->i_nlink == 1)) { 580 - f2fs_warn(sbi, "%s: directory inode (ino=%lx) has a single i_nlink", 580 + f2fs_warn(sbi, "%s: directory inode (ino=%llx) has a single i_nlink", 581 581 __func__, inode->i_ino); 582 582 goto corrupted; 583 583 }
+5 -5
fs/f2fs/node.c
··· 847 847 err = -EFSCORRUPTED; 848 848 f2fs_err_ratelimited(sbi, 849 849 "inode mapping table is corrupted, run fsck to fix it, " 850 - "ino:%lu, nid:%u, level:%d, offset:%d", 850 + "ino:%llu, nid:%u, level:%d, offset:%d", 851 851 dn->inode->i_ino, nids[i], level, offset[level]); 852 852 set_sbi_flag(sbi, SBI_NEED_FSCK); 853 853 goto release_pages; ··· 1013 1013 return PTR_ERR(folio); 1014 1014 1015 1015 if (IS_INODE(folio) || ino_of_node(folio) != dn->inode->i_ino) { 1016 - f2fs_err(sbi, "incorrect node reference, ino: %lu, nid: %u, ino_of_node: %u", 1016 + f2fs_err(sbi, "incorrect node reference, ino: %llu, nid: %u, ino_of_node: %u", 1017 1017 dn->inode->i_ino, dn->nid, ino_of_node(folio)); 1018 1018 set_sbi_flag(sbi, SBI_NEED_FSCK); 1019 1019 f2fs_handle_error(sbi, ERROR_INVALID_NODE_REFERENCE); ··· 1194 1194 if (level <= 0) { 1195 1195 if (!level) { 1196 1196 level = -EFSCORRUPTED; 1197 - f2fs_err(sbi, "%s: inode ino=%lx has corrupted node block, from:%lu addrs:%u", 1197 + f2fs_err(sbi, "%s: inode ino=%llx has corrupted node block, from:%lu addrs:%u", 1198 1198 __func__, inode->i_ino, 1199 1199 from, ADDRS_PER_INODE(inode)); 1200 1200 set_sbi_flag(sbi, SBI_NEED_FSCK); ··· 1265 1265 set_sbi_flag(F2FS_F_SB(folio), SBI_NEED_FSCK); 1266 1266 f2fs_handle_error(sbi, ERROR_INVALID_BLKADDR); 1267 1267 f2fs_err_ratelimited(sbi, 1268 - "truncate node fail, ino:%lu, nid:%u, " 1268 + "truncate node fail, ino:%llu, nid:%u, " 1269 1269 "offset[0]:%d, offset[1]:%d, nofs:%d", 1270 1270 inode->i_ino, dn.nid, offset[0], 1271 1271 offset[1], nofs); ··· 1351 1351 1352 1352 if (unlikely(inode->i_blocks != 0 && inode->i_blocks != 8)) { 1353 1353 f2fs_warn(F2FS_I_SB(inode), 1354 - "f2fs_remove_inode_page: inconsistent i_blocks, ino:%lu, iblocks:%llu", 1354 + "f2fs_remove_inode_page: inconsistent i_blocks, ino:%llu, iblocks:%llu", 1355 1355 inode->i_ino, (unsigned long long)inode->i_blocks); 1356 1356 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); 1357 1357 }
+5 -5
fs/f2fs/recovery.c
··· 232 232 name = "<encrypted>"; 233 233 else 234 234 name = raw_inode->i_name; 235 - f2fs_notice(F2FS_I_SB(inode), "%s: ino = %x, name = %s, dir = %lx, err = %d", 235 + f2fs_notice(F2FS_I_SB(inode), "%s: ino = %x, name = %s, dir = %llu, err = %d", 236 236 __func__, ino_of_node(ifolio), name, 237 237 IS_ERR(dir) ? 0 : dir->i_ino, err); 238 238 return err; ··· 532 532 533 533 max_addrs = ADDRS_PER_PAGE(dn->node_folio, dn->inode); 534 534 if (ofs_in_node >= max_addrs) { 535 - f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%lu, nid:%u, max:%u", 535 + f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%llu, nid:%u, max:%u", 536 536 ofs_in_node, dn->inode->i_ino, nid, max_addrs); 537 537 f2fs_handle_error(sbi, ERROR_INCONSISTENT_SUMMARY); 538 538 return -EFSCORRUPTED; ··· 674 674 f2fs_bug_on(sbi, ni.ino != ino_of_node(folio)); 675 675 676 676 if (ofs_of_node(dn.node_folio) != ofs_of_node(folio)) { 677 - f2fs_warn(sbi, "Inconsistent ofs_of_node, ino:%lu, ofs:%u, %u", 677 + f2fs_warn(sbi, "Inconsistent ofs_of_node, ino:%llu, ofs:%u, %u", 678 678 inode->i_ino, ofs_of_node(dn.node_folio), 679 679 ofs_of_node(folio)); 680 680 err = -EFSCORRUPTED; ··· 748 748 749 749 if (f2fs_is_valid_blkaddr(sbi, dest, 750 750 DATA_GENERIC_ENHANCE_UPDATE)) { 751 - f2fs_err(sbi, "Inconsistent dest blkaddr:%u, ino:%lu, ofs:%u", 751 + f2fs_err(sbi, "Inconsistent dest blkaddr:%u, ino:%llu, ofs:%u", 752 752 dest, inode->i_ino, dn.ofs_in_node); 753 753 err = -EFSCORRUPTED; 754 754 goto err; ··· 768 768 err: 769 769 f2fs_put_dnode(&dn); 770 770 out: 771 - f2fs_notice(sbi, "recover_data: ino = %lx, nid = %x (i_size: %s), " 771 + f2fs_notice(sbi, "recover_data: ino = %llx, nid = %x (i_size: %s), " 772 772 "range (%u, %u), recovered = %d, err = %d", 773 773 inode->i_ino, nid_of_node(folio), 774 774 file_keep_isize(inode) ? "keep" : "recover",
+5 -5
fs/f2fs/xattr.c
··· 365 365 366 366 *xe = __find_xattr(cur_addr, last_txattr_addr, NULL, index, len, name); 367 367 if (!*xe) { 368 - f2fs_err(F2FS_I_SB(inode), "lookup inode (%lu) has corrupted xattr", 368 + f2fs_err(F2FS_I_SB(inode), "lookup inode (%llu) has corrupted xattr", 369 369 inode->i_ino); 370 370 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); 371 371 err = -ENODATA; ··· 585 585 586 586 if ((void *)(entry) + sizeof(__u32) > last_base_addr || 587 587 (void *)XATTR_NEXT_ENTRY(entry) > last_base_addr) { 588 - f2fs_err(F2FS_I_SB(inode), "list inode (%lu) has corrupted xattr", 588 + f2fs_err(F2FS_I_SB(inode), "list inode (%llu) has corrupted xattr", 589 589 inode->i_ino); 590 590 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); 591 591 f2fs_handle_error(F2FS_I_SB(inode), ··· 664 664 if (!F2FS_I(inode)->i_xattr_nid) { 665 665 error = f2fs_recover_xattr_data(inode, NULL); 666 666 f2fs_notice(F2FS_I_SB(inode), 667 - "recover xattr in inode (%lu), error(%d)", 667 + "recover xattr in inode (%llu), error(%d)", 668 668 inode->i_ino, error); 669 669 if (!error) { 670 670 kfree(base_addr); 671 671 goto retry; 672 672 } 673 673 } 674 - f2fs_err(F2FS_I_SB(inode), "set inode (%lu) has corrupted xattr", 674 + f2fs_err(F2FS_I_SB(inode), "set inode (%llu) has corrupted xattr", 675 675 inode->i_ino); 676 676 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); 677 677 error = -EFSCORRUPTED; ··· 699 699 while (!IS_XATTR_LAST_ENTRY(last)) { 700 700 if ((void *)(last) + sizeof(__u32) > last_base_addr || 701 701 (void *)XATTR_NEXT_ENTRY(last) > last_base_addr) { 702 - f2fs_err(F2FS_I_SB(inode), "inode (%lu) has invalid last xattr entry, entry_size: %zu", 702 + f2fs_err(F2FS_I_SB(inode), "inode (%llu) has invalid last xattr entry, entry_size: %zu", 703 703 inode->i_ino, ENTRY_SIZE(last)); 704 704 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); 705 705 error = -EFSCORRUPTED;
+2 -2
fs/freevxfs/vxfs_bmap.c
··· 260 260 if (VXFS_ISIMMED(vip)) 261 261 goto unsupp; 262 262 263 - printk(KERN_WARNING "vxfs: inode %ld has no valid orgtype (%x)\n", 263 + printk(KERN_WARNING "vxfs: inode %llu has no valid orgtype (%x)\n", 264 264 ip->i_ino, vip->vii_orgtype); 265 265 BUG(); 266 266 267 267 unsupp: 268 - printk(KERN_WARNING "vxfs: inode %ld has an unsupported orgtype (%x)\n", 268 + printk(KERN_WARNING "vxfs: inode %llu has an unsupported orgtype (%x)\n", 269 269 ip->i_ino, vip->vii_orgtype); 270 270 return 0; 271 271 }
+1 -1
fs/fserror.c
··· 176 176 lost: 177 177 if (inode) 178 178 pr_err_ratelimited( 179 - "%s: lost file I/O error report for ino %lu type %u pos 0x%llx len 0x%llx error %d", 179 + "%s: lost file I/O error report for ino %llu type %u pos 0x%llx len 0x%llx error %d", 180 180 sb->s_id, inode->i_ino, type, pos, len, error); 181 181 else 182 182 pr_err_ratelimited(
+1 -1
fs/hfs/catalog.c
··· 417 417 int entry_size, type; 418 418 int err; 419 419 420 - hfs_dbg("cnid %u - (ino %lu, name %s) - (ino %lu, name %s)\n", 420 + hfs_dbg("cnid %u - (ino %llu, name %s) - (ino %llu, name %s)\n", 421 421 cnid, src_dir->i_ino, src_name->name, 422 422 dst_dir->i_ino, dst_name->name); 423 423 sb = src_dir->i_sb;
+2 -2
fs/hfs/extent.c
··· 411 411 goto out; 412 412 } 413 413 414 - hfs_dbg("ino %lu, start %u, len %u\n", inode->i_ino, start, len); 414 + hfs_dbg("ino %llu, start %u, len %u\n", inode->i_ino, start, len); 415 415 if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) { 416 416 if (!HFS_I(inode)->first_blocks) { 417 417 hfs_dbg("first_extent: start %u, len %u\n", ··· 482 482 u32 size; 483 483 int res; 484 484 485 - hfs_dbg("ino %lu, phys_size %llu -> i_size %llu\n", 485 + hfs_dbg("ino %llu, phys_size %llu -> i_size %llu\n", 486 486 inode->i_ino, (long long)HFS_I(inode)->phys_size, 487 487 inode->i_size); 488 488 if (inode->i_size > HFS_I(inode)->phys_size) {
+2 -2
fs/hfs/inode.c
··· 270 270 { 271 271 struct super_block *sb = inode->i_sb; 272 272 273 - hfs_dbg("ino %lu\n", inode->i_ino); 273 + hfs_dbg("ino %llu\n", inode->i_ino); 274 274 if (S_ISDIR(inode->i_mode)) { 275 275 atomic64_dec(&HFS_SB(sb)->folder_count); 276 276 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) ··· 455 455 hfs_cat_rec rec; 456 456 int res; 457 457 458 - hfs_dbg("ino %lu\n", inode->i_ino); 458 + hfs_dbg("ino %llu\n", inode->i_ino); 459 459 res = hfs_ext_write_extent(inode); 460 460 if (res) 461 461 return res;
+5 -5
fs/hfsplus/attributes.c
··· 203 203 int entry_size; 204 204 int err; 205 205 206 - hfs_dbg("name %s, ino %ld\n", 206 + hfs_dbg("name %s, ino %llu\n", 207 207 name ? name : NULL, inode->i_ino); 208 208 209 209 if (name) { ··· 255 255 hfsplus_attr_entry *entry_ptr; 256 256 int err; 257 257 258 - hfs_dbg("name %s, ino %ld\n", 258 + hfs_dbg("name %s, ino %llu\n", 259 259 name ? name : NULL, inode->i_ino); 260 260 261 261 if (!HFSPLUS_SB(sb)->attr_tree) { ··· 337 337 struct super_block *sb = inode->i_sb; 338 338 int err; 339 339 340 - hfs_dbg("name %s, ino %ld\n", 340 + hfs_dbg("name %s, ino %llu\n", 341 341 name ? name : NULL, inode->i_ino); 342 342 343 343 if (name) { ··· 367 367 struct super_block *sb = inode->i_sb; 368 368 struct hfs_find_data fd; 369 369 370 - hfs_dbg("name %s, ino %ld\n", 370 + hfs_dbg("name %s, ino %llu\n", 371 371 name ? name : NULL, inode->i_ino); 372 372 373 373 if (!HFSPLUS_SB(sb)->attr_tree) { ··· 436 436 hfsplus_attr_entry *entry_ptr; 437 437 int err = 0; 438 438 439 - hfs_dbg("name %s, ino %ld\n", 439 + hfs_dbg("name %s, ino %llu\n", 440 440 name ? name : NULL, inode->i_ino); 441 441 442 442 if (!HFSPLUS_SB(sb)->attr_tree) {
+1 -1
fs/hfsplus/catalog.c
··· 441 441 int entry_size, type; 442 442 int err; 443 443 444 - hfs_dbg("cnid %u - ino %lu, name %s - ino %lu, name %s\n", 444 + hfs_dbg("cnid %u - ino %llu, name %s - ino %llu, name %s\n", 445 445 cnid, src_dir->i_ino, src_name->name, 446 446 dst_dir->i_ino, dst_name->name); 447 447 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &src_fd);
+3 -3
fs/hfsplus/dir.c
··· 313 313 if (!S_ISREG(inode->i_mode)) 314 314 return -EPERM; 315 315 316 - hfs_dbg("src_dir->i_ino %lu, dst_dir->i_ino %lu, inode->i_ino %lu\n", 316 + hfs_dbg("src_dir->i_ino %llu, dst_dir->i_ino %llu, inode->i_ino %llu\n", 317 317 src_dir->i_ino, dst_dir->i_ino, inode->i_ino); 318 318 319 319 mutex_lock(&sbi->vh_mutex); ··· 385 385 if (HFSPLUS_IS_RSRC(inode)) 386 386 return -EPERM; 387 387 388 - hfs_dbg("dir->i_ino %lu, inode->i_ino %lu\n", 388 + hfs_dbg("dir->i_ino %llu, inode->i_ino %llu\n", 389 389 dir->i_ino, inode->i_ino); 390 390 391 391 mutex_lock(&sbi->vh_mutex); ··· 393 393 if (inode->i_ino == cnid && 394 394 atomic_read(&HFSPLUS_I(inode)->opencnt)) { 395 395 str.name = name; 396 - str.len = sprintf(name, "temp%lu", inode->i_ino); 396 + str.len = sprintf(name, "temp%llu", inode->i_ino); 397 397 res = hfsplus_rename_cat(inode->i_ino, 398 398 dir, &dentry->d_name, 399 399 sbi->hidden_dir, &str);
+3 -3
fs/hfsplus/extents.c
··· 275 275 mutex_unlock(&hip->extents_lock); 276 276 277 277 done: 278 - hfs_dbg("ino %lu, iblock %llu - dblock %u\n", 278 + hfs_dbg("ino %llu, iblock %llu - dblock %u\n", 279 279 inode->i_ino, (long long)iblock, dblock); 280 280 281 281 mask = (1 << sbi->fs_shift) - 1; ··· 476 476 goto out; 477 477 } 478 478 479 - hfs_dbg("ino %lu, start %u, len %u\n", inode->i_ino, start, len); 479 + hfs_dbg("ino %llu, start %u, len %u\n", inode->i_ino, start, len); 480 480 481 481 if (hip->alloc_blocks <= hip->first_blocks) { 482 482 if (!hip->first_blocks) { ··· 545 545 u32 alloc_cnt, blk_cnt, start; 546 546 int res; 547 547 548 - hfs_dbg("ino %lu, phys_size %llu -> i_size %llu\n", 548 + hfs_dbg("ino %llu, phys_size %llu -> i_size %llu\n", 549 549 inode->i_ino, (long long)hip->phys_size, inode->i_size); 550 550 551 551 if (inode->i_size > hip->phys_size) {
+4 -4
fs/hfsplus/inode.c
··· 230 230 inode->i_flags &= ~S_APPEND; 231 231 return 0; 232 232 bad_type: 233 - pr_err("invalid file type 0%04o for inode %lu\n", mode, inode->i_ino); 233 + pr_err("invalid file type 0%04o for inode %llu\n", mode, inode->i_ino); 234 234 return -EIO; 235 235 } 236 236 ··· 328 328 struct hfsplus_vh *vhdr = sbi->s_vhdr; 329 329 int error = 0, error2; 330 330 331 - hfs_dbg("inode->i_ino %lu, start %llu, end %llu\n", 331 + hfs_dbg("inode->i_ino %llu, start %llu, end %llu\n", 332 332 inode->i_ino, start, end); 333 333 334 334 error = file_write_and_wait_range(file, start, end); ··· 639 639 hfsplus_cat_entry entry; 640 640 int res = 0; 641 641 642 - hfs_dbg("inode->i_ino %lu\n", inode->i_ino); 642 + hfs_dbg("inode->i_ino %llu\n", inode->i_ino); 643 643 644 644 if (HFSPLUS_IS_RSRC(inode)) 645 645 main_inode = HFSPLUS_I(inode)->rsrc_inode; ··· 716 716 if (!res) { 717 717 res = hfs_btree_write(tree); 718 718 if (res) { 719 - pr_err("b-tree write err: %d, ino %lu\n", 719 + pr_err("b-tree write err: %d, ino %llu\n", 720 720 res, inode->i_ino); 721 721 } 722 722 }
+3 -3
fs/hfsplus/super.c
··· 156 156 int err = hfs_btree_write(tree); 157 157 158 158 if (err) { 159 - pr_err("b-tree write err: %d, ino %lu\n", 159 + pr_err("b-tree write err: %d, ino %llu\n", 160 160 err, inode->i_ino); 161 161 return err; 162 162 } ··· 169 169 { 170 170 int err; 171 171 172 - hfs_dbg("ino %lu\n", inode->i_ino); 172 + hfs_dbg("ino %llu\n", inode->i_ino); 173 173 174 174 err = hfsplus_ext_write_extent(inode); 175 175 if (err) ··· 184 184 185 185 static void hfsplus_evict_inode(struct inode *inode) 186 186 { 187 - hfs_dbg("ino %lu\n", inode->i_ino); 187 + hfs_dbg("ino %llu\n", inode->i_ino); 188 188 truncate_inode_pages_final(&inode->i_data); 189 189 clear_inode(inode); 190 190 if (HFSPLUS_IS_RSRC(inode)) {
+5 -5
fs/hfsplus/xattr.c
··· 277 277 u16 folder_finderinfo_len = sizeof(DInfo) + sizeof(DXInfo); 278 278 u16 file_finderinfo_len = sizeof(FInfo) + sizeof(FXInfo); 279 279 280 - hfs_dbg("ino %lu, name %s, value %p, size %zu\n", 280 + hfs_dbg("ino %llu, name %s, value %p, size %zu\n", 281 281 inode->i_ino, name ? name : NULL, 282 282 value, size); 283 283 ··· 447 447 NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1; 448 448 int res; 449 449 450 - hfs_dbg("ino %lu, name %s, prefix %s, prefixlen %zu, " 450 + hfs_dbg("ino %llu, name %s, prefix %s, prefixlen %zu, " 451 451 "value %p, size %zu\n", 452 452 inode->i_ino, name ? name : NULL, 453 453 prefix ? prefix : NULL, prefixlen, ··· 607 607 int res; 608 608 char *xattr_name; 609 609 610 - hfs_dbg("ino %lu, name %s, prefix %s\n", 610 + hfs_dbg("ino %llu, name %s, prefix %s\n", 611 611 inode->i_ino, name ? name : NULL, 612 612 prefix ? prefix : NULL); 613 613 ··· 717 717 size_t strbuf_size; 718 718 int xattr_name_len; 719 719 720 - hfs_dbg("ino %lu\n", inode->i_ino); 720 + hfs_dbg("ino %llu\n", inode->i_ino); 721 721 722 722 if (!is_xattr_operation_supported(inode)) 723 723 return -EOPNOTSUPP; ··· 819 819 int is_xattr_acl_deleted; 820 820 int is_all_xattrs_deleted; 821 821 822 - hfs_dbg("ino %lu, name %s\n", 822 + hfs_dbg("ino %llu, name %s\n", 823 823 inode->i_ino, name ? name : NULL); 824 824 825 825 if (!HFSPLUS_SB(inode->i_sb)->attr_tree)
+2 -2
fs/hpfs/dir.c
··· 96 96 } 97 97 if (!fnode_is_dir(fno)) { 98 98 e = 1; 99 - hpfs_error(inode->i_sb, "not a directory, fnode %08lx", 100 - (unsigned long)inode->i_ino); 99 + hpfs_error(inode->i_sb, "not a directory, fnode %08llx", 100 + inode->i_ino); 101 101 } 102 102 if (hpfs_inode->i_dno != le32_to_cpu(fno->u.external[0].disk_secno)) { 103 103 e = 1;
+2 -2
fs/hpfs/dnode.c
··· 550 550 if (hpfs_sb(i->i_sb)->sb_chk) 551 551 if (up != i->i_ino) { 552 552 hpfs_error(i->i_sb, 553 - "bad pointer to fnode, dnode %08x, pointing to %08x, should be %08lx", 553 + "bad pointer to fnode, dnode %08x, pointing to %08x, should be %08llx", 554 554 dno, up, 555 - (unsigned long)i->i_ino); 555 + i->i_ino); 556 556 return; 557 557 } 558 558 if ((d1 = hpfs_map_dnode(i->i_sb, down, &qbh1))) {
+2 -2
fs/hpfs/ea.c
··· 245 245 fnode->ea_offs = cpu_to_le16(0xc4); 246 246 } 247 247 if (le16_to_cpu(fnode->ea_offs) < 0xc4 || le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) > 0x200) { 248 - hpfs_error(s, "fnode %08lx: ea_offs == %03x, ea_size_s == %03x", 249 - (unsigned long)inode->i_ino, 248 + hpfs_error(s, "fnode %08llx: ea_offs == %03x, ea_size_s == %03x", 249 + inode->i_ino, 250 250 le16_to_cpu(fnode->ea_offs), le16_to_cpu(fnode->ea_size_s)); 251 251 return; 252 252 }
+2 -2
fs/hpfs/inode.c
··· 250 250 hpfs_brelse4(&qbh); 251 251 } else 252 252 hpfs_error(i->i_sb, 253 - "directory %08lx doesn't have '.' entry", 254 - (unsigned long)i->i_ino); 253 + "directory %08llx doesn't have '.' entry", 254 + i->i_ino); 255 255 } 256 256 mark_buffer_dirty(bh); 257 257 brelse(bh);
+6 -7
fs/inode.c
··· 726 726 struct dentry *dentry_ptr; 727 727 struct dentry dentry; 728 728 char fname[64] = {}; 729 - unsigned long ino; 729 + u64 ino; 730 730 731 731 /* 732 732 * If mapping is an invalid pointer, we don't want to crash ··· 750 750 } 751 751 752 752 if (!dentry_first) { 753 - pr_warn("aops:%ps ino:%lx\n", a_ops, ino); 753 + pr_warn("aops:%ps ino:%llx\n", a_ops, ino); 754 754 return; 755 755 } 756 756 757 757 dentry_ptr = container_of(dentry_first, struct dentry, d_u.d_alias); 758 758 if (get_kernel_nofault(dentry, dentry_ptr) || 759 759 !dentry.d_parent || !dentry.d_name.name) { 760 - pr_warn("aops:%ps ino:%lx invalid dentry:%px\n", 760 + pr_warn("aops:%ps ino:%llx invalid dentry:%px\n", 761 761 a_ops, ino, dentry_ptr); 762 762 return; 763 763 } ··· 768 768 * Even if strncpy_from_kernel_nofault() succeeded, 769 769 * the fname could be unreliable 770 770 */ 771 - pr_warn("aops:%ps ino:%lx dentry name(?):\"%s\"\n", 771 + pr_warn("aops:%ps ino:%llx dentry name(?):\"%s\"\n", 772 772 a_ops, ino, fname); 773 773 } 774 774 ··· 2641 2641 /* leave it no_open_fops */ 2642 2642 break; 2643 2643 default: 2644 - printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for" 2645 - " inode %s:%lu\n", mode, inode->i_sb->s_id, 2646 - inode->i_ino); 2644 + pr_debug("init_special_inode: bogus i_mode (%o) for inode %s:%llu\n", 2645 + mode, inode->i_sb->s_id, inode->i_ino); 2647 2646 break; 2648 2647 } 2649 2648 }
+1 -1
fs/iomap/ioend.c
··· 48 48 mapping_set_error(inode->i_mapping, ioend->io_error); 49 49 if (!bio_flagged(bio, BIO_QUIET)) { 50 50 pr_err_ratelimited( 51 - "%s: writeback error on inode %lu, offset %lld, sector %llu", 51 + "%s: writeback error on inode %llu, offset %lld, sector %llu", 52 52 inode->i_sb->s_id, inode->i_ino, 53 53 ioend->io_offset, ioend->io_sector); 54 54 }
+1 -1
fs/isofs/compress.c
··· 156 156 else { 157 157 printk(KERN_DEBUG 158 158 "zisofs: zisofs_inflate returned" 159 - " %d, inode = %lu," 159 + " %d, inode = %llu," 160 160 " page idx = %d, bh idx = %d," 161 161 " avail_in = %ld," 162 162 " avail_out = %ld\n",
+1 -1
fs/isofs/dir.c
··· 152 152 de_len < de->name_len[0] + 153 153 sizeof(struct iso_directory_record)) { 154 154 printk(KERN_NOTICE "iso9660: Corrupted directory entry" 155 - " in block %lu of inode %lu\n", block, 155 + " in block %lu of inode %llu\n", block, 156 156 inode->i_ino); 157 157 brelse(bh); 158 158 return -EIO;
+3 -3
fs/isofs/inode.c
··· 1261 1261 1262 1262 out_toomany: 1263 1263 printk(KERN_INFO "%s: More than 100 file sections ?!?, aborting...\n" 1264 - "isofs_read_level3_size: inode=%lu\n", 1264 + "isofs_read_level3_size: inode=%llu\n", 1265 1265 __func__, inode->i_ino); 1266 1266 goto out; 1267 1267 } ··· 1380 1380 /* I have no idea what file_unit_size is used for, so 1381 1381 we will flag it for now */ 1382 1382 if (de->file_unit_size[0] != 0) { 1383 - printk(KERN_DEBUG "ISOFS: File unit size != 0 for ISO file (%ld).\n", 1383 + printk(KERN_DEBUG "ISOFS: File unit size != 0 for ISO file (%llu).\n", 1384 1384 inode->i_ino); 1385 1385 } 1386 1386 ··· 1450 1450 /* XXX - parse_rock_ridge_inode() had already set i_rdev. */ 1451 1451 init_special_inode(inode, inode->i_mode, inode->i_rdev); 1452 1452 } else { 1453 - printk(KERN_DEBUG "ISOFS: Invalid file type 0%04o for inode %lu.\n", 1453 + printk(KERN_DEBUG "ISOFS: Invalid file type 0%04o for inode %llu.\n", 1454 1454 inode->i_mode, inode->i_ino); 1455 1455 ret = -EIO; 1456 1456 goto fail;
+1 -1
fs/isofs/namei.c
··· 100 100 /* Basic sanity check, whether name doesn't exceed dir entry */ 101 101 if (de_len < dlen + sizeof(struct iso_directory_record)) { 102 102 printk(KERN_NOTICE "iso9660: Corrupted directory entry" 103 - " in block %lu of inode %lu\n", block, 103 + " in block %lu of inode %llu\n", block, 104 104 dir->i_ino); 105 105 brelse(bh); 106 106 return 0;
+2 -2
fs/jbd2/journal.c
··· 1677 1677 return err ? ERR_PTR(err) : ERR_PTR(-EINVAL); 1678 1678 } 1679 1679 1680 - jbd2_debug(1, "JBD2: inode %s/%ld, size %lld, bits %d, blksize %ld\n", 1680 + jbd2_debug(1, "JBD2: inode %s/%llu, size %lld, bits %d, blksize %ld\n", 1681 1681 inode->i_sb->s_id, inode->i_ino, (long long) inode->i_size, 1682 1682 inode->i_sb->s_blocksize_bits, inode->i_sb->s_blocksize); 1683 1683 ··· 1689 1689 1690 1690 journal->j_inode = inode; 1691 1691 snprintf(journal->j_devname, sizeof(journal->j_devname), 1692 - "%pg-%lu", journal->j_dev, journal->j_inode->i_ino); 1692 + "%pg-%llu", journal->j_dev, journal->j_inode->i_ino); 1693 1693 strreplace(journal->j_devname, '/', '!'); 1694 1694 jbd2_stats_proc_init(journal); 1695 1695
+1 -1
fs/jbd2/transaction.c
··· 2651 2651 return -EROFS; 2652 2652 journal = transaction->t_journal; 2653 2653 2654 - jbd2_debug(4, "Adding inode %lu, tid:%d\n", jinode->i_vfs_inode->i_ino, 2654 + jbd2_debug(4, "Adding inode %llu, tid:%d\n", jinode->i_vfs_inode->i_ino, 2655 2655 transaction->t_tid); 2656 2656 2657 2657 spin_lock(&journal->j_list_lock);
+2 -2
fs/jffs2/dir.c
··· 129 129 struct jffs2_full_dirent *fd; 130 130 unsigned long curofs = 1; 131 131 132 - jffs2_dbg(1, "jffs2_readdir() for dir_i #%lu\n", inode->i_ino); 132 + jffs2_dbg(1, "jffs2_readdir() for dir_i #%llu\n", inode->i_ino); 133 133 134 134 if (!dir_emit_dots(file, ctx)) 135 135 return 0; ··· 211 211 212 212 jffs2_free_raw_inode(ri); 213 213 214 - jffs2_dbg(1, "%s(): Created ino #%lu with mode %o, nlink %d(%d). nrpages %ld\n", 214 + jffs2_dbg(1, "%s(): Created ino #%llu with mode %o, nlink %d(%d). nrpages %ld\n", 215 215 __func__, inode->i_ino, inode->i_mode, inode->i_nlink, 216 216 f->inocache->pino_nlink, inode->i_mapping->nrpages); 217 217
+2 -2
fs/jffs2/file.c
··· 88 88 unsigned char *kaddr; 89 89 int ret; 90 90 91 - jffs2_dbg(2, "%s(): ino #%lu, page at offset 0x%lx\n", 91 + jffs2_dbg(2, "%s(): ino #%llu, page at offset 0x%lx\n", 92 92 __func__, inode->i_ino, folio->index << PAGE_SHIFT); 93 93 94 94 BUG_ON(!folio_test_locked(folio)); ··· 259 259 uint32_t writtenlen = 0; 260 260 void *buf; 261 261 262 - jffs2_dbg(1, "%s(): ino #%lu, page at 0x%llx, range %d-%d, flags %lx\n", 262 + jffs2_dbg(1, "%s(): ino #%llu, page at 0x%llx, range %d-%d, flags %lx\n", 263 263 __func__, inode->i_ino, folio_pos(folio), 264 264 start, end, folio->flags.f); 265 265
+9 -9
fs/jffs2/fs.c
··· 43 43 int ret; 44 44 int alloc_type = ALLOC_NORMAL; 45 45 46 - jffs2_dbg(1, "%s(): ino #%lu\n", __func__, inode->i_ino); 46 + jffs2_dbg(1, "%s(): ino #%llu\n", __func__, inode->i_ino); 47 47 48 48 /* Special cases - we don't want more than one data node 49 49 for these types on the medium at any time. So setattr ··· 243 243 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); 244 244 struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); 245 245 246 - jffs2_dbg(1, "%s(): ino #%lu mode %o\n", 246 + jffs2_dbg(1, "%s(): ino #%llu mode %o\n", 247 247 __func__, inode->i_ino, inode->i_mode); 248 248 truncate_inode_pages_final(&inode->i_data); 249 249 clear_inode(inode); ··· 334 334 ret = jffs2_read_dnode(c, f, f->metadata, (char *)&jdev, 0, f->metadata->size); 335 335 if (ret < 0) { 336 336 /* Eep */ 337 - pr_notice("Read device numbers for inode %lu failed\n", 338 - (unsigned long)inode->i_ino); 337 + pr_notice("Read device numbers for inode %llu failed\n", 338 + inode->i_ino); 339 339 goto error; 340 340 } 341 341 if (f->metadata->size == sizeof(jdev.old_id)) ··· 351 351 break; 352 352 353 353 default: 354 - pr_warn("%s(): Bogus i_mode %o for ino %lu\n", 355 - __func__, inode->i_mode, (unsigned long)inode->i_ino); 354 + pr_warn("%s(): Bogus i_mode %o for ino %llu\n", 355 + __func__, inode->i_mode, inode->i_ino); 356 356 } 357 357 358 358 mutex_unlock(&f->sem); ··· 374 374 struct iattr iattr; 375 375 376 376 if (!(inode_state_read_once(inode) & I_DIRTY_DATASYNC)) { 377 - jffs2_dbg(2, "%s(): not calling setattr() for ino #%lu\n", 377 + jffs2_dbg(2, "%s(): not calling setattr() for ino #%llu\n", 378 378 __func__, inode->i_ino); 379 379 return; 380 380 } 381 381 382 - jffs2_dbg(1, "%s(): calling setattr() for ino #%lu\n", 382 + jffs2_dbg(1, "%s(): calling setattr() for ino #%llu\n", 383 383 __func__, inode->i_ino); 384 384 385 385 iattr.ia_valid = ATTR_MODE|ATTR_UID|ATTR_GID|ATTR_ATIME|ATTR_MTIME|ATTR_CTIME; ··· 428 428 struct jffs2_inode_info *f; 429 429 int ret; 430 430 431 - jffs2_dbg(1, "%s(): dir_i %ld, mode 0x%x\n", 431 + jffs2_dbg(1, "%s(): dir_i %llu, mode 0x%x\n", 432 432 __func__, dir_i->i_ino, mode); 433 433 434 434 c = JFFS2_SB_INFO(sb);
+1 -1
fs/jfs/inode.c
··· 64 64 inode->i_op = &jfs_file_inode_operations; 65 65 init_special_inode(inode, inode->i_mode, inode->i_rdev); 66 66 } else { 67 - printk(KERN_DEBUG "JFS: Invalid file type 0%04o for inode %lu.\n", 67 + printk(KERN_DEBUG "JFS: Invalid file type 0%04o for inode %llu.\n", 68 68 inode->i_mode, inode->i_ino); 69 69 iget_failed(inode); 70 70 return ERR_PTR(-EIO);
+1 -1
fs/jfs/jfs_imap.c
··· 302 302 unsigned long pageno; 303 303 int rel_inode; 304 304 305 - jfs_info("diRead: ino = %ld", ip->i_ino); 305 + jfs_info("diRead: ino = %llu", ip->i_ino); 306 306 307 307 ipimap = sbi->ipimap; 308 308 JFS_IP(ip)->ipimap = ipimap;
+1 -1
fs/jfs/jfs_metapage.c
··· 692 692 unsigned long page_index; 693 693 unsigned long page_offset; 694 694 695 - jfs_info("__get_metapage: ino = %ld, lblock = 0x%lx, abs=%d", 695 + jfs_info("__get_metapage: ino = %llu, lblock = 0x%lx, abs=%d", 696 696 inode->i_ino, lblock, absolute); 697 697 698 698 l2bsize = inode->i_blkbits;
+4 -4
fs/lockd/svclock.c
··· 487 487 int async_block = 0; 488 488 __be32 ret; 489 489 490 - dprintk("lockd: nlmsvc_lock(%s/%ld, ty=%d, pi=%d, %Ld-%Ld, bl=%d)\n", 490 + dprintk("lockd: nlmsvc_lock(%s/%llu, ty=%d, pi=%d, %Ld-%Ld, bl=%d)\n", 491 491 inode->i_sb->s_id, inode->i_ino, 492 492 lock->fl.c.flc_type, 493 493 lock->fl.c.flc_pid, ··· 617 617 int mode; 618 618 __be32 ret; 619 619 620 - dprintk("lockd: nlmsvc_testlock(%s/%ld, ty=%d, %Ld-%Ld)\n", 620 + dprintk("lockd: nlmsvc_testlock(%s/%llu, ty=%d, %Ld-%Ld)\n", 621 621 nlmsvc_file_inode(file)->i_sb->s_id, 622 622 nlmsvc_file_inode(file)->i_ino, 623 623 lock->fl.c.flc_type, ··· 676 676 { 677 677 int error = 0; 678 678 679 - dprintk("lockd: nlmsvc_unlock(%s/%ld, pi=%d, %Ld-%Ld)\n", 679 + dprintk("lockd: nlmsvc_unlock(%s/%llu, pi=%d, %Ld-%Ld)\n", 680 680 nlmsvc_file_inode(file)->i_sb->s_id, 681 681 nlmsvc_file_inode(file)->i_ino, 682 682 lock->fl.c.flc_pid, ··· 716 716 int status = 0; 717 717 int mode; 718 718 719 - dprintk("lockd: nlmsvc_cancel(%s/%ld, pi=%d, %Ld-%Ld)\n", 719 + dprintk("lockd: nlmsvc_cancel(%s/%llu, pi=%d, %Ld-%Ld)\n", 720 720 nlmsvc_file_inode(file)->i_sb->s_id, 721 721 nlmsvc_file_inode(file)->i_ino, 722 722 lock->fl.c.flc_pid,
+1 -1
fs/lockd/svcsubs.c
··· 47 47 { 48 48 struct inode *inode = nlmsvc_file_inode(file); 49 49 50 - dprintk("lockd: %s %s/%ld\n", 50 + dprintk("lockd: %s %s/%llu\n", 51 51 msg, inode->i_sb->s_id, inode->i_ino); 52 52 } 53 53 #else
+3 -3
fs/locks.c
··· 234 234 if (unlikely(!list_empty(&ctx->flc_flock) || 235 235 !list_empty(&ctx->flc_posix) || 236 236 !list_empty(&ctx->flc_lease))) { 237 - pr_warn("Leaked locks on dev=0x%x:0x%x ino=0x%lx:\n", 237 + pr_warn("Leaked locks on dev=0x%x:0x%x ino=0x%llx:\n", 238 238 MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), 239 239 inode->i_ino); 240 240 locks_dump_ctx_list(&ctx->flc_flock, "FLOCK"); ··· 251 251 252 252 list_for_each_entry(flc, list, flc_list) 253 253 if (flc->flc_file == filp) 254 - pr_warn("Leaked %s lock on dev=0x%x:0x%x ino=0x%lx " 254 + pr_warn("Leaked %s lock on dev=0x%x:0x%x ino=0x%llx " 255 255 " fl_owner=%p fl_flags=0x%x fl_type=0x%x fl_pid=%u\n", 256 256 list_type, MAJOR(inode->i_sb->s_dev), 257 257 MINOR(inode->i_sb->s_dev), inode->i_ino, ··· 2896 2896 (type == F_RDLCK) ? "READ" : "UNLCK"); 2897 2897 if (inode) { 2898 2898 /* userspace relies on this representation of dev_t */ 2899 - seq_printf(f, "%d %02x:%02x:%lu ", pid, 2899 + seq_printf(f, "%d %02x:%02x:%llu ", pid, 2900 2900 MAJOR(inode->i_sb->s_dev), 2901 2901 MINOR(inode->i_sb->s_dev), inode->i_ino); 2902 2902 } else {
+5 -5
fs/minix/inode.c
··· 36 36 vaf.fmt = fmt; 37 37 vaf.va = &args; 38 38 printk(KERN_CRIT "minix-fs error (device %s): %s:%d: " 39 - "inode #%lu: comm %s: %pV\n", 39 + "inode #%llu: comm %s: %pV\n", 40 40 inode->i_sb->s_id, function, line, inode->i_ino, 41 41 current->comm, &vaf); 42 42 va_end(args); ··· 520 520 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { 521 521 init_special_inode(inode, inode->i_mode, rdev); 522 522 } else { 523 - printk(KERN_DEBUG "MINIX-fs: Invalid file type 0%04o for inode %lu.\n", 523 + printk(KERN_DEBUG "MINIX-fs: Invalid file type 0%04o for inode %llu.\n", 524 524 inode->i_mode, inode->i_ino); 525 525 make_bad_inode(inode); 526 526 } ··· 542 542 return ERR_PTR(-EIO); 543 543 } 544 544 if (raw_inode->i_nlinks == 0) { 545 - printk("MINIX-fs: deleted inode referenced: %lu\n", 545 + printk("MINIX-fs: deleted inode referenced: %llu\n", 546 546 inode->i_ino); 547 547 brelse(bh); 548 548 iget_failed(inode); ··· 580 580 return ERR_PTR(-EIO); 581 581 } 582 582 if (raw_inode->i_nlinks == 0) { 583 - printk("MINIX-fs: deleted inode referenced: %lu\n", 583 + printk("MINIX-fs: deleted inode referenced: %llu\n", 584 584 inode->i_ino); 585 585 brelse(bh); 586 586 iget_failed(inode); ··· 692 692 if (wbc->sync_mode == WB_SYNC_ALL && buffer_dirty(bh)) { 693 693 sync_dirty_buffer(bh); 694 694 if (buffer_req(bh) && !buffer_uptodate(bh)) { 695 - printk("IO error syncing minix inode [%s:%08lx]\n", 695 + printk("IO error syncing minix inode [%s:%08llx]\n", 696 696 inode->i_sb->s_id, inode->i_ino); 697 697 err = -EIO; 698 698 }
+10 -10
fs/nfs/dir.c
··· 1906 1906 } 1907 1907 1908 1908 error = nfs_lookup_verify_inode(inode, flags); 1909 - dfprintk(LOOKUPCACHE, "NFS: %s: inode %lu is %s\n", 1909 + dfprintk(LOOKUPCACHE, "NFS: %s: inode %llu is %s\n", 1910 1910 __func__, inode->i_ino, error ? "invalid" : "valid"); 1911 1911 return !error; 1912 1912 } ··· 2121 2121 /* Expect a negative dentry */ 2122 2122 BUG_ON(d_inode(dentry)); 2123 2123 2124 - dfprintk(VFS, "NFS: atomic_open(%s/%lu), %pd\n", 2124 + dfprintk(VFS, "NFS: atomic_open(%s/%llu), %pd\n", 2125 2125 dir->i_sb->s_id, dir->i_ino, dentry); 2126 2126 2127 2127 err = nfs_check_flags(open_flags); ··· 2404 2404 2405 2405 open_flags |= O_CREAT; 2406 2406 2407 - dfprintk(VFS, "NFS: create(%s/%lu), %pd\n", 2407 + dfprintk(VFS, "NFS: create(%s/%llu), %pd\n", 2408 2408 dir->i_sb->s_id, dir->i_ino, dentry); 2409 2409 2410 2410 attr.ia_mode = mode; ··· 2442 2442 struct iattr attr; 2443 2443 int status; 2444 2444 2445 - dfprintk(VFS, "NFS: mknod(%s/%lu), %pd\n", 2445 + dfprintk(VFS, "NFS: mknod(%s/%llu), %pd\n", 2446 2446 dir->i_sb->s_id, dir->i_ino, dentry); 2447 2447 2448 2448 attr.ia_mode = mode; ··· 2469 2469 struct iattr attr; 2470 2470 struct dentry *ret; 2471 2471 2472 - dfprintk(VFS, "NFS: mkdir(%s/%lu), %pd\n", 2472 + dfprintk(VFS, "NFS: mkdir(%s/%llu), %pd\n", 2473 2473 dir->i_sb->s_id, dir->i_ino, dentry); 2474 2474 2475 2475 attr.ia_valid = ATTR_MODE; ··· 2507 2507 { 2508 2508 int error; 2509 2509 2510 - dfprintk(VFS, "NFS: rmdir(%s/%lu), %pd\n", 2510 + dfprintk(VFS, "NFS: rmdir(%s/%llu), %pd\n", 2511 2511 dir->i_sb->s_id, dir->i_ino, dentry); 2512 2512 2513 2513 trace_nfs_rmdir_enter(dir, dentry); ··· 2578 2578 { 2579 2579 int error; 2580 2580 2581 - dfprintk(VFS, "NFS: unlink(%s/%lu, %pd)\n", dir->i_sb->s_id, 2581 + dfprintk(VFS, "NFS: unlink(%s/%llu, %pd)\n", dir->i_sb->s_id, 2582 2582 dir->i_ino, dentry); 2583 2583 2584 2584 trace_nfs_unlink_enter(dir, dentry); ··· 2638 2638 unsigned int pathlen = strlen(symname); 2639 2639 int error; 2640 2640 2641 - dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s)\n", dir->i_sb->s_id, 2641 + dfprintk(VFS, "NFS: symlink(%s/%llu, %pd, %s)\n", dir->i_sb->s_id, 2642 2642 dir->i_ino, dentry, symname); 2643 2643 2644 2644 if (pathlen > PAGE_SIZE) ··· 2660 2660 error = NFS_PROTO(dir)->symlink(dir, dentry, folio, pathlen, &attr); 2661 2661 trace_nfs_symlink_exit(dir, dentry, error); 2662 2662 if (error != 0) { 2663 - dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s) error %d\n", 2663 + dfprintk(VFS, "NFS: symlink(%s/%llu, %pd, %s) error %d\n", 2664 2664 dir->i_sb->s_id, dir->i_ino, 2665 2665 dentry, symname, error); 2666 2666 d_drop(dentry); ··· 3414 3414 if (!res && (mask & MAY_EXEC)) 3415 3415 res = nfs_execute_ok(inode, mask); 3416 3416 3417 - dfprintk(VFS, "NFS: permission(%s/%lu), mask=0x%x, res=%d\n", 3417 + dfprintk(VFS, "NFS: permission(%s/%llu), mask=0x%x, res=%d\n", 3418 3418 inode->i_sb->s_id, inode->i_ino, mask, res); 3419 3419 return res; 3420 3420 out_notsup:
+4 -4
fs/nfs/file.c
··· 391 391 392 392 trace_nfs_write_begin(file_inode(file), pos, len); 393 393 394 - dfprintk(PAGECACHE, "NFS: write_begin(%pD2(%lu), %u@%lld)\n", 394 + dfprintk(PAGECACHE, "NFS: write_begin(%pD2(%llu), %u@%lld)\n", 395 395 file, mapping->host->i_ino, len, (long long) pos); 396 396 nfs_truncate_last_folio(mapping, i_size_read(mapping->host), pos); 397 397 ··· 432 432 int status; 433 433 434 434 trace_nfs_write_end(file_inode(file), pos, len); 435 - dfprintk(PAGECACHE, "NFS: write_end(%pD2(%lu), %u@%lld)\n", 435 + dfprintk(PAGECACHE, "NFS: write_end(%pD2(%llu), %u@%lld)\n", 436 436 file, mapping->host->i_ino, len, (long long) pos); 437 437 438 438 /* ··· 557 557 struct inode *inode = folio->mapping->host; 558 558 int ret; 559 559 560 - dfprintk(PAGECACHE, "NFS: launder_folio(%ld, %llu)\n", 560 + dfprintk(PAGECACHE, "NFS: launder_folio(%llu, %llu)\n", 561 561 inode->i_ino, folio_pos(folio)); 562 562 563 563 folio_wait_private_2(folio); /* [DEPRECATED] */ ··· 647 647 struct address_space *mapping; 648 648 struct folio *folio = page_folio(vmf->page); 649 649 650 - dfprintk(PAGECACHE, "NFS: vm_page_mkwrite(%pD2(%lu), offset %lld)\n", 650 + dfprintk(PAGECACHE, "NFS: vm_page_mkwrite(%pD2(%llu), offset %lld)\n", 651 651 filp, filp->f_mapping->host->i_ino, 652 652 (long long)folio_pos(folio)); 653 653
+4 -4
fs/nfs/filelayout/filelayout.c
··· 241 241 242 242 /* Note: if the write is unstable, don't set end_offs until commit */ 243 243 pnfs_set_layoutcommit(hdr->inode, hdr->lseg, end_offs); 244 - dprintk("%s inode %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino, 244 + dprintk("%s inode %llu pls_end_pos %lu\n", __func__, hdr->inode->i_ino, 245 245 (unsigned long) NFS_I(hdr->inode)->layout->plh_lwb); 246 246 } 247 247 ··· 456 456 u32 j, idx; 457 457 struct nfs_fh *fh; 458 458 459 - dprintk("--> %s ino %lu pgbase %u req %zu@%llu\n", 459 + dprintk("--> %s ino %llu pgbase %u req %zu@%llu\n", 460 460 __func__, hdr->inode->i_ino, 461 461 hdr->args.pgbase, (size_t)hdr->args.count, offset); 462 462 ··· 514 514 if (IS_ERR(ds_clnt)) 515 515 return PNFS_NOT_ATTEMPTED; 516 516 517 - dprintk("%s ino %lu sync %d req %zu@%llu DS: %s cl_count %d\n", 517 + dprintk("%s ino %llu sync %d req %zu@%llu DS: %s cl_count %d\n", 518 518 __func__, hdr->inode->i_ino, sync, (size_t) hdr->args.count, 519 519 offset, ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count)); 520 520 ··· 1001 1001 if (IS_ERR(ds_clnt)) 1002 1002 goto out_err; 1003 1003 1004 - dprintk("%s ino %lu, how %d cl_count %d\n", __func__, 1004 + dprintk("%s ino %llu, how %d cl_count %d\n", __func__, 1005 1005 data->inode->i_ino, how, refcount_read(&ds->ds_clp->cl_count)); 1006 1006 data->commit_done_cb = filelayout_commit_done_cb; 1007 1007 refcount_inc(&ds->ds_clp->cl_count);
+4 -4
fs/nfs/flexfilelayout/flexfilelayout.c
··· 1631 1631 return; 1632 1632 1633 1633 pnfs_set_layoutcommit(inode, lseg, end_offset); 1634 - dprintk("%s inode %lu pls_end_pos %llu\n", __func__, inode->i_ino, 1634 + dprintk("%s inode %llu pls_end_pos %llu\n", __func__, inode->i_ino, 1635 1635 (unsigned long long) NFS_I(inode)->layout->plh_lwb); 1636 1636 } 1637 1637 ··· 2136 2136 u32 dss_id; 2137 2137 bool ds_fatal_error = false; 2138 2138 2139 - dprintk("--> %s ino %lu pgbase %u req %zu@%llu\n", 2139 + dprintk("--> %s ino %llu pgbase %u req %zu@%llu\n", 2140 2140 __func__, hdr->inode->i_ino, 2141 2141 hdr->args.pgbase, (size_t)hdr->args.count, offset); 2142 2142 ··· 2245 2245 2246 2246 vers = nfs4_ff_layout_ds_version(mirror, dss_id); 2247 2247 2248 - dprintk("%s ino %lu sync %d req %zu@%llu DS: %s cl_count %d vers %d\n", 2248 + dprintk("%s ino %llu sync %d req %zu@%llu DS: %s cl_count %d vers %d\n", 2249 2249 __func__, hdr->inode->i_ino, sync, (size_t) hdr->args.count, 2250 2250 offset, ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count), 2251 2251 vers); ··· 2336 2336 2337 2337 vers = nfs4_ff_layout_ds_version(mirror, dss_id); 2338 2338 2339 - dprintk("%s ino %lu, how %d cl_count %d vers %d\n", __func__, 2339 + dprintk("%s ino %llu, how %d cl_count %d vers %d\n", __func__, 2340 2340 data->inode->i_ino, how, refcount_read(&ds->ds_clp->cl_count), 2341 2341 vers); 2342 2342 data->commit_done_cb = ff_layout_commit_done_cb;
+3 -3
fs/nfs/inode.c
··· 2258 2258 bool attr_changed = false; 2259 2259 bool have_delegation; 2260 2260 2261 - dfprintk(VFS, "NFS: %s(%s/%lu fh_crc=0x%08x ct=%d info=0x%llx)\n", 2261 + dfprintk(VFS, "NFS: %s(%s/%llu fh_crc=0x%08x ct=%d info=0x%llx)\n", 2262 2262 __func__, inode->i_sb->s_id, inode->i_ino, 2263 2263 nfs_display_fhandle_hash(NFS_FH(inode)), 2264 2264 icount_read(inode), fattr->valid); ··· 2288 2288 /* 2289 2289 * Big trouble! The inode has become a different object. 2290 2290 */ 2291 - printk(KERN_DEBUG "NFS: %s: inode %lu mode changed, %07o to %07o\n", 2291 + printk(KERN_DEBUG "NFS: %s: inode %llu mode changed, %07o to %07o\n", 2292 2292 __func__, inode->i_ino, inode->i_mode, fattr->mode); 2293 2293 goto out_err; 2294 2294 } ··· 2358 2358 if (S_ISDIR(inode->i_mode)) 2359 2359 nfs_force_lookup_revalidate(inode); 2360 2360 attr_changed = true; 2361 - dprintk("NFS: change_attr change on server for file %s/%ld\n", 2361 + dprintk("NFS: change_attr change on server for file %s/%llu\n", 2362 2362 inode->i_sb->s_id, 2363 2363 inode->i_ino); 2364 2364 } else if (!have_delegation) {
+2 -2
fs/nfs/nfs4proc.c
··· 4714 4714 nfs_fattr_init(fattr); 4715 4715 nfs4_init_sequence(server->nfs_client, &args.seq_args, &res.seq_res, 0, 0); 4716 4716 4717 - dprintk("NFS call lookupp ino=0x%lx\n", inode->i_ino); 4717 + dprintk("NFS call lookupp ino=0x%llx\n", inode->i_ino); 4718 4718 status = nfs4_do_call_sync(clnt, server, &msg, &args.seq_args, 4719 4719 &res.seq_res, task_flags); 4720 4720 dprintk("NFS reply lookupp: %d\n", status); ··· 10019 10019 int status = 0; 10020 10020 10021 10021 dprintk("NFS: initiating layoutcommit call. sync %d " 10022 - "lbw: %llu inode %lu\n", sync, 10022 + "lbw: %llu inode %llu\n", sync, 10023 10023 data->args.lastbytewritten, 10024 10024 data->args.inode->i_ino); 10025 10025
+6 -6
fs/nfs/pnfs.c
··· 891 891 while (!list_empty(layout_list)) { 892 892 lo = list_entry(layout_list->next, struct pnfs_layout_hdr, 893 893 plh_bulk_destroy); 894 - dprintk("%s freeing layout for inode %lu\n", __func__, 894 + dprintk("%s freeing layout for inode %llu\n", __func__, 895 895 lo->plh_inode->i_ino); 896 896 inode = lo->plh_inode; 897 897 ··· 1440 1440 int status = 0; 1441 1441 bool send, valid_layout; 1442 1442 1443 - dprintk("NFS: %s for inode %lu\n", __func__, ino->i_ino); 1443 + dprintk("NFS: %s for inode %llu\n", __func__, ino->i_ino); 1444 1444 1445 1445 spin_lock(&ino->i_lock); 1446 1446 lo = nfsi->layout; ··· 3055 3055 3056 3056 hdr->mds_ops = call_ops; 3057 3057 3058 - dprintk("%s: Writing ino:%lu %u@%llu (how %d)\n", __func__, 3058 + dprintk("%s: Writing ino:%llu %u@%llu (how %d)\n", __func__, 3059 3059 inode->i_ino, hdr->args.count, hdr->args.offset, how); 3060 3060 trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how); 3061 3061 if (trypnfs != PNFS_NOT_ATTEMPTED) ··· 3181 3181 3182 3182 hdr->mds_ops = call_ops; 3183 3183 3184 - dprintk("%s: Reading ino:%lu %u@%llu\n", 3184 + dprintk("%s: Reading ino:%llu %u@%llu\n", 3185 3185 __func__, inode->i_ino, hdr->args.count, hdr->args.offset); 3186 3186 3187 3187 trypnfs = nfss->pnfs_curr_ld->read_pagelist(hdr); ··· 3314 3314 if (!test_and_set_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) { 3315 3315 nfsi->layout->plh_lwb = end_pos; 3316 3316 mark_as_dirty = true; 3317 - dprintk("%s: Set layoutcommit for inode %lu ", 3317 + dprintk("%s: Set layoutcommit for inode %llu ", 3318 3318 __func__, inode->i_ino); 3319 3319 } else if (end_pos > nfsi->layout->plh_lwb) 3320 3320 nfsi->layout->plh_lwb = end_pos; ··· 3363 3363 if (!pnfs_layoutcommit_outstanding(inode)) 3364 3364 return 0; 3365 3365 3366 - dprintk("--> %s inode %lu\n", __func__, inode->i_ino); 3366 + dprintk("--> %s inode %llu\n", __func__, inode->i_ino); 3367 3367 3368 3368 status = -EAGAIN; 3369 3369 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) {
+1 -1
fs/nfsd/export.c
··· 1039 1039 } 1040 1040 inode = d_inode(path.dentry); 1041 1041 1042 - dprintk("nfsd: exp_rootfh(%s [%p] %s:%s/%ld)\n", 1042 + dprintk("nfsd: exp_rootfh(%s [%p] %s:%s/%llu)\n", 1043 1043 name, path.dentry, clp->name, 1044 1044 inode->i_sb->s_id, inode->i_ino); 1045 1045 exp = exp_parent(cd, clp, &path);
+2 -2
fs/nfsd/nfs4state.c
··· 1253 1253 if (ret) { 1254 1254 struct inode *inode = file_inode(f); 1255 1255 1256 - pr_notice_ratelimited("nfsd: Unable to update timestamps on inode %02x:%02x:%lu: %d\n", 1256 + pr_notice_ratelimited("nfsd: Unable to update timestamps on inode %02x:%02x:%llu: %d\n", 1257 1257 MAJOR(inode->i_sb->s_dev), 1258 1258 MINOR(inode->i_sb->s_dev), 1259 1259 inode->i_ino, ret); ··· 2888 2888 { 2889 2889 struct inode *inode = file_inode(f->nf_file); 2890 2890 2891 - seq_printf(s, "superblock: \"%02x:%02x:%ld\"", 2891 + seq_printf(s, "superblock: \"%02x:%02x:%llu\"", 2892 2892 MAJOR(inode->i_sb->s_dev), 2893 2893 MINOR(inode->i_sb->s_dev), 2894 2894 inode->i_ino);
+2 -2
fs/nfsd/nfsfh.c
··· 601 601 struct inode * inode = d_inode(dentry); 602 602 dev_t ex_dev = exp_sb(exp)->s_dev; 603 603 604 - dprintk("nfsd: fh_compose(exp %02x:%02x/%ld %pd2, ino=%ld)\n", 604 + dprintk("nfsd: fh_compose(exp %02x:%02x/%llu %pd2, ino=%llu)\n", 605 605 MAJOR(ex_dev), MINOR(ex_dev), 606 - (long) d_inode(exp->ex_path.dentry)->i_ino, 606 + d_inode(exp->ex_path.dentry)->i_ino, 607 607 dentry, 608 608 (inode ? inode->i_ino : 0)); 609 609
+1 -1
fs/nfsd/vfs.c
··· 1163 1163 } else if (unlikely(host_err == -EINVAL)) { 1164 1164 struct inode *inode = d_inode(fhp->fh_dentry); 1165 1165 1166 - pr_info_ratelimited("nfsd: Direct I/O alignment failure on %s/%ld\n", 1166 + pr_info_ratelimited("nfsd: Direct I/O alignment failure on %s/%llu\n", 1167 1167 inode->i_sb->s_id, inode->i_ino); 1168 1168 host_err = -ESERVERFAULT; 1169 1169 }
+5 -5
fs/nilfs2/alloc.c
··· 707 707 708 708 if (!nilfs_clear_bit_atomic(lock, group_offset, bitmap)) 709 709 nilfs_warn(inode->i_sb, 710 - "%s (ino=%lu): entry number %llu already freed", 710 + "%s (ino=%llu): entry number %llu already freed", 711 711 __func__, inode->i_ino, 712 712 (unsigned long long)req->pr_entry_nr); 713 713 else ··· 748 748 749 749 if (!nilfs_clear_bit_atomic(lock, group_offset, bitmap)) 750 750 nilfs_warn(inode->i_sb, 751 - "%s (ino=%lu): entry number %llu already freed", 751 + "%s (ino=%llu): entry number %llu already freed", 752 752 __func__, inode->i_ino, 753 753 (unsigned long long)req->pr_entry_nr); 754 754 else ··· 861 861 if (!nilfs_clear_bit_atomic(lock, group_offset, 862 862 bitmap)) { 863 863 nilfs_warn(inode->i_sb, 864 - "%s (ino=%lu): entry number %llu already freed", 864 + "%s (ino=%llu): entry number %llu already freed", 865 865 __func__, inode->i_ino, 866 866 (unsigned long long)entry_nrs[j]); 867 867 } else { ··· 906 906 last_nrs[k]); 907 907 if (ret && ret != -ENOENT) 908 908 nilfs_warn(inode->i_sb, 909 - "error %d deleting block that object (entry=%llu, ino=%lu) belongs to", 909 + "error %d deleting block that object (entry=%llu, ino=%llu) belongs to", 910 910 ret, (unsigned long long)last_nrs[k], 911 911 inode->i_ino); 912 912 } ··· 923 923 ret = nilfs_palloc_delete_bitmap_block(inode, group); 924 924 if (ret && ret != -ENOENT) 925 925 nilfs_warn(inode->i_sb, 926 - "error %d deleting bitmap block of group=%lu, ino=%lu", 926 + "error %d deleting bitmap block of group=%lu, ino=%llu", 927 927 ret, group, inode->i_ino); 928 928 } 929 929 }
+1 -1
fs/nilfs2/bmap.c
··· 33 33 34 34 if (err == -EINVAL) { 35 35 __nilfs_error(inode->i_sb, fname, 36 - "broken bmap (inode number=%lu)", inode->i_ino); 36 + "broken bmap (inode number=%llu)", inode->i_ino); 37 37 err = -EIO; 38 38 } 39 39 return err;
+1 -1
fs/nilfs2/btnode.c
··· 64 64 * clearing of an abandoned b-tree node is missing somewhere). 65 65 */ 66 66 nilfs_error(inode->i_sb, 67 - "state inconsistency probably due to duplicate use of b-tree node block address %llu (ino=%lu)", 67 + "state inconsistency probably due to duplicate use of b-tree node block address %llu (ino=%llu)", 68 68 (unsigned long long)blocknr, inode->i_ino); 69 69 goto failed; 70 70 }
+6 -6
fs/nilfs2/btree.c
··· 353 353 nchildren <= 0 || 354 354 nchildren > NILFS_BTREE_NODE_NCHILDREN_MAX(size))) { 355 355 nilfs_crit(inode->i_sb, 356 - "bad btree node (ino=%lu, blocknr=%llu): level = %d, flags = 0x%x, nchildren = %d", 356 + "bad btree node (ino=%llu, blocknr=%llu): level = %d, flags = 0x%x, nchildren = %d", 357 357 inode->i_ino, (unsigned long long)blocknr, level, 358 358 flags, nchildren); 359 359 ret = 1; ··· 384 384 nchildren > NILFS_BTREE_ROOT_NCHILDREN_MAX || 385 385 (nchildren == 0 && level > NILFS_BTREE_LEVEL_NODE_MIN))) { 386 386 nilfs_crit(inode->i_sb, 387 - "bad btree root (ino=%lu): level = %d, flags = 0x%x, nchildren = %d", 387 + "bad btree root (ino=%llu): level = %d, flags = 0x%x, nchildren = %d", 388 388 inode->i_ino, level, flags, nchildren); 389 389 ret = 1; 390 390 } ··· 453 453 if (unlikely(nilfs_btree_node_get_level(node) != level)) { 454 454 dump_stack(); 455 455 nilfs_crit(btree->b_inode->i_sb, 456 - "btree level mismatch (ino=%lu): %d != %d", 456 + "btree level mismatch (ino=%llu): %d != %d", 457 457 btree->b_inode->i_ino, 458 458 nilfs_btree_node_get_level(node), level); 459 459 return 1; ··· 521 521 out_no_wait: 522 522 if (!buffer_uptodate(bh)) { 523 523 nilfs_err(btree->b_inode->i_sb, 524 - "I/O error reading b-tree node block (ino=%lu, blocknr=%llu)", 524 + "I/O error reading b-tree node block (ino=%llu, blocknr=%llu)", 525 525 btree->b_inode->i_ino, (unsigned long long)ptr); 526 526 brelse(bh); 527 527 return -EIO; ··· 2104 2104 if (ret < 0) { 2105 2105 if (unlikely(ret == -ENOENT)) { 2106 2106 nilfs_crit(btree->b_inode->i_sb, 2107 - "writing node/leaf block does not appear in b-tree (ino=%lu) at key=%llu, level=%d", 2107 + "writing node/leaf block does not appear in b-tree (ino=%llu) at key=%llu, level=%d", 2108 2108 btree->b_inode->i_ino, 2109 2109 (unsigned long long)key, level); 2110 2110 ret = -EINVAL; ··· 2146 2146 level >= NILFS_BTREE_LEVEL_MAX) { 2147 2147 dump_stack(); 2148 2148 nilfs_warn(btree->b_inode->i_sb, 2149 - "invalid btree level: %d (key=%llu, ino=%lu, blocknr=%llu)", 2149 + "invalid btree level: %d (key=%llu, ino=%llu, blocknr=%llu)", 2150 2150 level, (unsigned long long)key, 2151 2151 btree->b_inode->i_ino, 2152 2152 (unsigned long long)bh->b_blocknr);
+6 -6
fs/nilfs2/dir.c
··· 150 150 151 151 Ebadsize: 152 152 nilfs_error(sb, 153 - "size of directory #%lu is not a multiple of chunk size", 153 + "size of directory #%llu is not a multiple of chunk size", 154 154 dir->i_ino); 155 155 goto fail; 156 156 Eshort: ··· 169 169 error = "disallowed inode number"; 170 170 bad_entry: 171 171 nilfs_error(sb, 172 - "bad entry in directory #%lu: %s - offset=%lu, inode=%lu, rec_len=%zd, name_len=%d", 172 + "bad entry in directory #%llu: %s - offset=%lu, inode=%lu, rec_len=%zd, name_len=%d", 173 173 dir->i_ino, error, (folio->index << PAGE_SHIFT) + offs, 174 174 (unsigned long)le64_to_cpu(p->inode), 175 175 rec_len, p->name_len); ··· 177 177 Eend: 178 178 p = (struct nilfs_dir_entry *)(kaddr + offs); 179 179 nilfs_error(sb, 180 - "entry in directory #%lu spans the page boundary offset=%lu, inode=%lu", 180 + "entry in directory #%llu spans the page boundary offset=%lu, inode=%lu", 181 181 dir->i_ino, (folio->index << PAGE_SHIFT) + offs, 182 182 (unsigned long)le64_to_cpu(p->inode)); 183 183 fail: ··· 251 251 252 252 kaddr = nilfs_get_folio(inode, n, &folio); 253 253 if (IS_ERR(kaddr)) { 254 - nilfs_error(sb, "bad page in #%lu", inode->i_ino); 254 + nilfs_error(sb, "bad page in #%llu", inode->i_ino); 255 255 ctx->pos += PAGE_SIZE - offset; 256 256 return -EIO; 257 257 } ··· 336 336 /* next folio is past the blocks we've got */ 337 337 if (unlikely(n > (dir->i_blocks >> (PAGE_SHIFT - 9)))) { 338 338 nilfs_error(dir->i_sb, 339 - "dir %lu size %lld exceeds block count %llu", 339 + "dir %llu size %lld exceeds block count %llu", 340 340 dir->i_ino, dir->i_size, 341 341 (unsigned long long)dir->i_blocks); 342 342 goto out; ··· 382 382 return next_de; 383 383 384 384 fail: 385 - nilfs_error(dir->i_sb, "directory #%lu %s", dir->i_ino, msg); 385 + nilfs_error(dir->i_sb, "directory #%llu %s", dir->i_ino, msg); 386 386 folio_release_kmap(folio, de); 387 387 return NULL; 388 388 }
+2 -2
fs/nilfs2/direct.c
··· 338 338 key = nilfs_bmap_data_get_key(bmap, *bh); 339 339 if (unlikely(key > NILFS_DIRECT_KEY_MAX)) { 340 340 nilfs_crit(bmap->b_inode->i_sb, 341 - "%s (ino=%lu): invalid key: %llu", 341 + "%s (ino=%llu): invalid key: %llu", 342 342 __func__, 343 343 bmap->b_inode->i_ino, (unsigned long long)key); 344 344 return -EINVAL; ··· 346 346 ptr = nilfs_direct_get_ptr(bmap, key); 347 347 if (unlikely(ptr == NILFS_BMAP_INVALID_PTR)) { 348 348 nilfs_crit(bmap->b_inode->i_sb, 349 - "%s (ino=%lu): invalid pointer: %llu", 349 + "%s (ino=%llu): invalid pointer: %llu", 350 350 __func__, 351 351 bmap->b_inode->i_ino, (unsigned long long)ptr); 352 352 return -EINVAL;
+1 -1
fs/nilfs2/gcinode.c
··· 137 137 struct inode *inode = bh->b_folio->mapping->host; 138 138 139 139 nilfs_err(inode->i_sb, 140 - "I/O error reading %s block for GC (ino=%lu, vblocknr=%llu)", 140 + "I/O error reading %s block for GC (ino=%llu, vblocknr=%llu)", 141 141 buffer_nilfs_node(bh) ? "node" : "data", 142 142 inode->i_ino, (unsigned long long)bh->b_blocknr); 143 143 return -EIO;
+4 -4
fs/nilfs2/inode.c
··· 108 108 * be locked in this case. 109 109 */ 110 110 nilfs_warn(inode->i_sb, 111 - "%s (ino=%lu): a race condition while inserting a data block at offset=%llu", 111 + "%s (ino=%llu): a race condition while inserting a data block at offset=%llu", 112 112 __func__, inode->i_ino, 113 113 (unsigned long long)blkoff); 114 114 err = -EAGAIN; ··· 789 789 goto repeat; 790 790 791 791 failed: 792 - nilfs_warn(ii->vfs_inode.i_sb, "error %d truncating bmap (ino=%lu)", 792 + nilfs_warn(ii->vfs_inode.i_sb, "error %d truncating bmap (ino=%llu)", 793 793 ret, ii->vfs_inode.i_ino); 794 794 } 795 795 ··· 1026 1026 * this inode. 1027 1027 */ 1028 1028 nilfs_warn(inode->i_sb, 1029 - "cannot set file dirty (ino=%lu): the file is being freed", 1029 + "cannot set file dirty (ino=%llu): the file is being freed", 1030 1030 inode->i_ino); 1031 1031 spin_unlock(&nilfs->ns_inode_lock); 1032 1032 return -EINVAL; /* ··· 1057 1057 err = nilfs_load_inode_block(inode, &ibh); 1058 1058 if (unlikely(err)) { 1059 1059 nilfs_warn(inode->i_sb, 1060 - "cannot mark inode dirty (ino=%lu): error %d loading inode block", 1060 + "cannot mark inode dirty (ino=%llu): error %d loading inode block", 1061 1061 inode->i_ino, err); 1062 1062 return err; 1063 1063 }
+1 -1
fs/nilfs2/mdt.c
··· 203 203 err = -EIO; 204 204 if (!buffer_uptodate(first_bh)) { 205 205 nilfs_err(inode->i_sb, 206 - "I/O error reading meta-data file (ino=%lu, block-offset=%lu)", 206 + "I/O error reading meta-data file (ino=%llu, block-offset=%lu)", 207 207 inode->i_ino, block); 208 208 goto failed_bh; 209 209 }
+1 -1
fs/nilfs2/namei.c
··· 292 292 293 293 if (!inode->i_nlink) { 294 294 nilfs_warn(inode->i_sb, 295 - "deleting nonexistent file (ino=%lu), %d", 295 + "deleting nonexistent file (ino=%llu), %d", 296 296 inode->i_ino, inode->i_nlink); 297 297 set_nlink(inode, 1); 298 298 }
+1 -1
fs/nilfs2/segment.c
··· 2024 2024 ifile, ii->vfs_inode.i_ino, &ibh); 2025 2025 if (unlikely(err)) { 2026 2026 nilfs_warn(sci->sc_super, 2027 - "log writer: error %d getting inode block (ino=%lu)", 2027 + "log writer: error %d getting inode block (ino=%llu)", 2028 2028 err, ii->vfs_inode.i_ino); 2029 2029 return err; 2030 2030 }
+2 -2
fs/notify/fdinfo.c
··· 84 84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); 85 85 inode = igrab(fsnotify_conn_inode(mark->connector)); 86 86 if (inode) { 87 - seq_printf(m, "inotify wd:%x ino:%lx sdev:%x mask:%x ignored_mask:0 ", 87 + seq_printf(m, "inotify wd:%x ino:%llx sdev:%x mask:%x ignored_mask:0 ", 88 88 inode_mark->wd, inode->i_ino, inode->i_sb->s_dev, 89 89 inotify_mark_user_mask(mark)); 90 90 show_mark_fhandle(m, inode); ··· 111 111 inode = igrab(fsnotify_conn_inode(mark->connector)); 112 112 if (!inode) 113 113 return; 114 - seq_printf(m, "fanotify ino:%lx sdev:%x mflags:%x mask:%x ignored_mask:%x ", 114 + seq_printf(m, "fanotify ino:%llx sdev:%x mflags:%x mask:%x ignored_mask:%x ", 115 115 inode->i_ino, inode->i_sb->s_dev, 116 116 mflags, mark->mask, mark->ignore_mask); 117 117 show_mark_fhandle(m, inode);
+2 -2
fs/nsfs.c
··· 46 46 struct ns_common *ns = inode->i_private; 47 47 const struct proc_ns_operations *ns_ops = ns->ops; 48 48 49 - return dynamic_dname(buffer, buflen, "%s:[%lu]", 49 + return dynamic_dname(buffer, buflen, "%s:[%llu]", 50 50 ns_ops->name, inode->i_ino); 51 51 } 52 52 ··· 394 394 const struct ns_common *ns = inode->i_private; 395 395 const struct proc_ns_operations *ns_ops = ns->ops; 396 396 397 - seq_printf(seq, "%s:[%lu]", ns_ops->name, inode->i_ino); 397 + seq_printf(seq, "%s:[%llu]", ns_ops->name, inode->i_ino); 398 398 return 0; 399 399 } 400 400
+1 -1
fs/ntfs3/super.c
··· 153 153 vaf.fmt = printk_skip_level(fmt); 154 154 vaf.va = &args; 155 155 156 - printk("%c%cntfs3(%s): ino=%lx,%s %pV\n", KERN_SOH_ASCII, level, 156 + printk("%c%cntfs3(%s): ino=%llx,%s %pV\n", KERN_SOH_ASCII, level, 157 157 sb->s_id, inode->i_ino, name ? name : "", &vaf); 158 158 159 159 va_end(args);
+1 -1
fs/ocfs2/alloc.c
··· 7318 7318 * to check it up here before changing the tree. 7319 7319 */ 7320 7320 if (root_el->l_tree_depth && rec->e_int_clusters == 0) { 7321 - mlog(ML_ERROR, "Inode %lu has an empty " 7321 + mlog(ML_ERROR, "Inode %llu has an empty " 7322 7322 "extent record, depth %u\n", inode->i_ino, 7323 7323 le16_to_cpu(root_el->l_tree_depth)); 7324 7324 status = ocfs2_remove_rightmost_empty_extent(osb,
+2 -2
fs/ocfs2/aops.c
··· 137 137 (unsigned long long)iblock, bh_result, create); 138 138 139 139 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) 140 - mlog(ML_NOTICE, "get_block on system inode 0x%p (%lu)\n", 140 + mlog(ML_NOTICE, "get_block on system inode 0x%p (%llu)\n", 141 141 inode, inode->i_ino); 142 142 143 143 if (S_ISLNK(inode->i_mode)) { ··· 2146 2146 ((iblock + ((len - 1) >> i_blkbits)) > endblk)) 2147 2147 len = (endblk - iblock + 1) << i_blkbits; 2148 2148 2149 - mlog(0, "get block of %lu at %llu:%u req %u\n", 2149 + mlog(0, "get block of %llu at %llu:%u req %u\n", 2150 2150 inode->i_ino, pos, len, total_len); 2151 2151 2152 2152 /*
+4 -4
fs/ocfs2/dir.c
··· 794 794 if (le16_to_cpu(el->l_count) != 795 795 ocfs2_extent_recs_per_dx_root(inode->i_sb)) { 796 796 ret = ocfs2_error(inode->i_sb, 797 - "Inode %lu has invalid extent list length %u\n", 797 + "Inode %llu has invalid extent list length %u\n", 798 798 inode->i_ino, le16_to_cpu(el->l_count)); 799 799 goto out; 800 800 } ··· 812 812 813 813 if (el->l_tree_depth) { 814 814 ret = ocfs2_error(inode->i_sb, 815 - "Inode %lu has non zero tree depth in btree tree block %llu\n", 815 + "Inode %llu has non zero tree depth in btree tree block %llu\n", 816 816 inode->i_ino, 817 817 (unsigned long long)eb_bh->b_blocknr); 818 818 goto out; ··· 821 821 822 822 if (le16_to_cpu(el->l_next_free_rec) == 0) { 823 823 ret = ocfs2_error(inode->i_sb, 824 - "Inode %lu has empty extent list at depth %u\n", 824 + "Inode %llu has empty extent list at depth %u\n", 825 825 inode->i_ino, 826 826 le16_to_cpu(el->l_tree_depth)); 827 827 goto out; ··· 839 839 840 840 if (!found) { 841 841 ret = ocfs2_error(inode->i_sb, 842 - "Inode %lu has bad extent record (%u, %u, 0) in btree\n", 842 + "Inode %llu has bad extent record (%u, %u, 0) in btree\n", 843 843 inode->i_ino, 844 844 le32_to_cpu(rec->e_cpos), 845 845 ocfs2_rec_clusters(el, rec));
+5 -5
fs/ocfs2/dlmfs/dlmfs.c
··· 123 123 if (S_ISDIR(inode->i_mode)) 124 124 BUG(); 125 125 126 - mlog(0, "open called on inode %lu, flags 0x%x\n", inode->i_ino, 126 + mlog(0, "open called on inode %llu, flags 0x%x\n", inode->i_ino, 127 127 file->f_flags); 128 128 129 129 status = dlmfs_decode_open_flags(file->f_flags, &level, &flags); ··· 170 170 if (S_ISDIR(inode->i_mode)) 171 171 BUG(); 172 172 173 - mlog(0, "close called on inode %lu\n", inode->i_ino); 173 + mlog(0, "close called on inode %llu\n", inode->i_ino); 174 174 175 175 if (fp) { 176 176 level = fp->fp_lock_level; ··· 242 242 int bytes_left; 243 243 struct inode *inode = file_inode(filp); 244 244 245 - mlog(0, "inode %lu, count = %zu, *ppos = %llu\n", 245 + mlog(0, "inode %llu, count = %zu, *ppos = %llu\n", 246 246 inode->i_ino, count, *ppos); 247 247 248 248 if (*ppos >= DLM_LVB_LEN) ··· 301 301 302 302 clear_inode(inode); 303 303 304 - mlog(0, "inode %lu\n", inode->i_ino); 304 + mlog(0, "inode %llu\n", inode->i_ino); 305 305 306 306 ip = DLMFS_I(inode); 307 307 lockres = &ip->ip_lockres; ··· 490 490 int status; 491 491 struct inode *inode = d_inode(dentry); 492 492 493 - mlog(0, "unlink inode %lu\n", inode->i_ino); 493 + mlog(0, "unlink inode %llu\n", inode->i_ino); 494 494 495 495 /* if there are no current holders, or none that are waiting 496 496 * to acquire a lock, this basically destroys our lockres. */
+6 -6
fs/ocfs2/extent_map.c
··· 291 291 292 292 if (el->l_tree_depth) { 293 293 ocfs2_error(inode->i_sb, 294 - "Inode %lu has non zero tree depth in leaf block %llu\n", 294 + "Inode %llu has non zero tree depth in leaf block %llu\n", 295 295 inode->i_ino, 296 296 (unsigned long long)eb_bh->b_blocknr); 297 297 ret = -EROFS; ··· 427 427 428 428 if (el->l_tree_depth) { 429 429 ocfs2_error(inode->i_sb, 430 - "Inode %lu has non zero tree depth in leaf block %llu\n", 430 + "Inode %llu has non zero tree depth in leaf block %llu\n", 431 431 inode->i_ino, 432 432 (unsigned long long)eb_bh->b_blocknr); 433 433 ret = -EROFS; ··· 437 437 438 438 if (le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)) { 439 439 ocfs2_error(inode->i_sb, 440 - "Inode %lu has an invalid extent (next_free_rec %u, count %u)\n", 440 + "Inode %llu has an invalid extent (next_free_rec %u, count %u)\n", 441 441 inode->i_ino, 442 442 le16_to_cpu(el->l_next_free_rec), 443 443 le16_to_cpu(el->l_count)); ··· 472 472 473 473 if (!rec->e_blkno) { 474 474 ocfs2_error(inode->i_sb, 475 - "Inode %lu has bad extent record (%u, %u, 0)\n", 475 + "Inode %llu has bad extent record (%u, %u, 0)\n", 476 476 inode->i_ino, 477 477 le32_to_cpu(rec->e_cpos), 478 478 ocfs2_rec_clusters(el, rec)); ··· 561 561 562 562 if (el->l_tree_depth) { 563 563 ocfs2_error(inode->i_sb, 564 - "Inode %lu has non zero tree depth in xattr leaf block %llu\n", 564 + "Inode %llu has non zero tree depth in xattr leaf block %llu\n", 565 565 inode->i_ino, 566 566 (unsigned long long)eb_bh->b_blocknr); 567 567 ret = -EROFS; ··· 580 580 581 581 if (!rec->e_blkno) { 582 582 ocfs2_error(inode->i_sb, 583 - "Inode %lu has bad extent record (%u, %u, 0) in xattr\n", 583 + "Inode %llu has bad extent record (%u, %u, 0) in xattr\n", 584 584 inode->i_ino, 585 585 le32_to_cpu(rec->e_cpos), 586 586 ocfs2_rec_clusters(el, rec));
+1 -1
fs/ocfs2/inode.c
··· 1196 1196 inode->i_nlink); 1197 1197 1198 1198 mlog_bug_on_msg(osb == NULL, 1199 - "Inode=%lu\n", inode->i_ino); 1199 + "Inode=%llu\n", inode->i_ino); 1200 1200 1201 1201 dquot_drop(inode); 1202 1202
+1 -1
fs/ocfs2/quota_local.c
··· 471 471 qsize_t spacechange, inodechange; 472 472 unsigned int memalloc; 473 473 474 - trace_ocfs2_recover_local_quota_file((unsigned long)lqinode->i_ino, type); 474 + trace_ocfs2_recover_local_quota_file(lqinode->i_ino, type); 475 475 476 476 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) { 477 477 chunk = rchunk->rc_chunk;
+5 -5
fs/ocfs2/refcounttree.c
··· 2341 2341 cpos, len, phys); 2342 2342 2343 2343 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { 2344 - ret = ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not set in the super block\n", 2344 + ret = ocfs2_error(inode->i_sb, "Inode %llu want to use refcount tree, but the feature bit is not set in the super block\n", 2345 2345 inode->i_ino); 2346 2346 goto out; 2347 2347 } ··· 2524 2524 u64 start_cpos = ocfs2_blocks_to_clusters(inode->i_sb, phys_blkno); 2525 2525 2526 2526 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { 2527 - ret = ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not set in the super block\n", 2527 + ret = ocfs2_error(inode->i_sb, "Inode %llu want to use refcount tree, but the feature bit is not set in the super block\n", 2528 2528 inode->i_ino); 2529 2529 goto out; 2530 2530 } ··· 2650 2650 2651 2651 if (el->l_tree_depth) { 2652 2652 ret = ocfs2_error(inode->i_sb, 2653 - "Inode %lu has non zero tree depth in leaf block %llu\n", 2653 + "Inode %llu has non zero tree depth in leaf block %llu\n", 2654 2654 inode->i_ino, 2655 2655 (unsigned long long)eb_bh->b_blocknr); 2656 2656 goto out; ··· 2662 2662 rec = &el->l_recs[i]; 2663 2663 2664 2664 if (ocfs2_is_empty_extent(rec)) { 2665 - mlog_bug_on_msg(i != 0, "Inode %lu has empty record in " 2665 + mlog_bug_on_msg(i != 0, "Inode %llu has empty record in " 2666 2666 "index %d\n", inode->i_ino, i); 2667 2667 continue; 2668 2668 } ··· 3325 3325 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 3326 3326 3327 3327 if (!ocfs2_refcount_tree(osb)) { 3328 - return ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not set in the super block\n", 3328 + return ocfs2_error(inode->i_sb, "Inode %llu want to use refcount tree, but the feature bit is not set in the super block\n", 3329 3329 inode->i_ino); 3330 3330 } 3331 3331
+2 -2
fs/ocfs2/xattr.c
··· 3741 3741 3742 3742 if (el->l_tree_depth) { 3743 3743 ret = ocfs2_error(inode->i_sb, 3744 - "Inode %lu has non zero tree depth in xattr tree block %llu\n", 3744 + "Inode %llu has non zero tree depth in xattr tree block %llu\n", 3745 3745 inode->i_ino, 3746 3746 (unsigned long long)eb_bh->b_blocknr); 3747 3747 goto out; ··· 3758 3758 } 3759 3759 3760 3760 if (!e_blkno) { 3761 - ret = ocfs2_error(inode->i_sb, "Inode %lu has bad extent record (%u, %u, 0) in xattr\n", 3761 + ret = ocfs2_error(inode->i_sb, "Inode %llu has bad extent record (%u, %u, 0) in xattr\n", 3762 3762 inode->i_ino, 3763 3763 le32_to_cpu(rec->e_cpos), 3764 3764 ocfs2_rec_clusters(el, rec));
+1 -1
fs/orangefs/inode.c
··· 1062 1062 unlock_new_inode(inode); 1063 1063 1064 1064 gossip_debug(GOSSIP_INODE_DEBUG, 1065 - "iget handle %pU, fsid %d hash %ld i_ino %lu\n", 1065 + "iget handle %pU, fsid %d hash %ld i_ino %llu\n", 1066 1066 &ref->khandle, 1067 1067 ref->fs_id, 1068 1068 hash,
+1 -1
fs/overlayfs/export.c
··· 262 262 return err; 263 263 264 264 fail: 265 - pr_warn_ratelimited("failed to encode file handle (ino=%lu, err=%i)\n", 265 + pr_warn_ratelimited("failed to encode file handle (ino=%llu, err=%i)\n", 266 266 inode->i_ino, err); 267 267 goto out; 268 268 }
+2 -2
fs/overlayfs/namei.c
··· 591 591 592 592 fail: 593 593 inode = d_inode(real); 594 - pr_warn_ratelimited("failed to verify %s (%pd2, ino=%lu, err=%i)\n", 594 + pr_warn_ratelimited("failed to verify %s (%pd2, ino=%llu, err=%i)\n", 595 595 is_upper ? "upper" : "origin", real, 596 596 inode ? inode->i_ino : 0, err); 597 597 goto out; ··· 831 831 index = NULL; 832 832 goto out; 833 833 } 834 - pr_warn_ratelimited("failed inode index lookup (ino=%lu, key=%.*s, err=%i);\n" 834 + pr_warn_ratelimited("failed inode index lookup (ino=%llu, key=%.*s, err=%i);\n" 835 835 "overlayfs: mount with '-o index=off' to disable inodes index.\n", 836 836 d_inode(origin)->i_ino, name.len, name.name, 837 837 err);
+1 -1
fs/overlayfs/util.c
··· 1092 1092 got_write = true; 1093 1093 inode = d_inode(upperdentry); 1094 1094 if (!S_ISDIR(inode->i_mode) && inode->i_nlink != 1) { 1095 - pr_warn_ratelimited("cleanup linked index (%pd2, ino=%lu, nlink=%u)\n", 1095 + pr_warn_ratelimited("cleanup linked index (%pd2, ino=%llu, nlink=%u)\n", 1096 1096 upperdentry, inode->i_ino, inode->i_nlink); 1097 1097 /* 1098 1098 * We either have a bug with persistent union nlink or a lower
+1 -1
fs/pipe.c
··· 873 873 */ 874 874 static char *pipefs_dname(struct dentry *dentry, char *buffer, int buflen) 875 875 { 876 - return dynamic_dname(buffer, buflen, "pipe:[%lu]", 876 + return dynamic_dname(buffer, buflen, "pipe:[%llu]", 877 877 d_inode(dentry)->i_ino); 878 878 } 879 879
+1 -1
fs/proc/fd.c
··· 54 54 if (ret) 55 55 return ret; 56 56 57 - seq_printf(m, "pos:\t%lli\nflags:\t0%o\nmnt_id:\t%i\nino:\t%lu\n", 57 + seq_printf(m, "pos:\t%lli\nflags:\t0%o\nmnt_id:\t%i\nino:\t%llu\n", 58 58 (long long)file->f_pos, f_flags, 59 59 real_mount(file->f_path.mnt)->mnt_id, 60 60 file_inode(file)->i_ino);
+2 -2
fs/proc/task_mmu.c
··· 442 442 static void show_vma_header_prefix(struct seq_file *m, 443 443 unsigned long start, unsigned long end, 444 444 vm_flags_t flags, unsigned long long pgoff, 445 - dev_t dev, unsigned long ino) 445 + dev_t dev, u64 ino) 446 446 { 447 447 seq_setwidth(m, 25 + sizeof(void *) * 6 - 1); 448 448 seq_put_hex_ll(m, NULL, start, 8); ··· 465 465 const struct path *path; 466 466 const char *name_fmt, *name; 467 467 vm_flags_t flags = vma->vm_flags; 468 - unsigned long ino = 0; 468 + u64 ino = 0; 469 469 unsigned long long pgoff = 0; 470 470 unsigned long start, end; 471 471 dev_t dev = 0;
+2 -2
fs/qnx4/inode.c
··· 62 62 { 63 63 unsigned long phys; 64 64 65 - QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); 65 + QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%llu] iblock=[%ld]\n", inode->i_ino, iblock)); 66 66 67 67 phys = qnx4_block_map( inode, iblock ); 68 68 if ( phys ) { ··· 128 128 brelse( bh ); 129 129 } 130 130 131 - QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); 131 + QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %llu = %ld\n", iblock, inode->i_ino, block)); 132 132 return block; 133 133 } 134 134
+1 -1
fs/qnx6/inode.c
··· 75 75 { 76 76 unsigned phys; 77 77 78 - pr_debug("qnx6_get_block inode=[%ld] iblock=[%ld]\n", 78 + pr_debug("qnx6_get_block inode=[%llu] iblock=[%ld]\n", 79 79 inode->i_ino, (unsigned long)iblock); 80 80 81 81 phys = qnx6_block_map(inode, iblock);
+4 -4
fs/ubifs/debug.c
··· 230 230 int count = 2; 231 231 232 232 pr_err("Dump in-memory inode:"); 233 - pr_err("\tinode %lu\n", inode->i_ino); 233 + pr_err("\tinode %llu\n", inode->i_ino); 234 234 pr_err("\tsize %llu\n", 235 235 (unsigned long long)i_size_read(inode)); 236 236 pr_err("\tnlink %u\n", inode->i_nlink); ··· 1101 1101 if (ui->ui_size != ui->synced_i_size && !ui->dirty) { 1102 1102 ubifs_err(c, "ui_size is %lld, synced_i_size is %lld, but inode is clean", 1103 1103 ui->ui_size, ui->synced_i_size); 1104 - ubifs_err(c, "i_ino %lu, i_mode %#x, i_size %lld", inode->i_ino, 1104 + ubifs_err(c, "i_ino %llu, i_mode %#x, i_size %lld", inode->i_ino, 1105 1105 inode->i_mode, i_size_read(inode)); 1106 1106 dump_stack(); 1107 1107 err = -EINVAL; ··· 1163 1163 kfree(pdent); 1164 1164 1165 1165 if (i_size_read(dir) != size) { 1166 - ubifs_err(c, "directory inode %lu has size %llu, but calculated size is %llu", 1166 + ubifs_err(c, "directory inode %llu has size %llu, but calculated size is %llu", 1167 1167 dir->i_ino, (unsigned long long)i_size_read(dir), 1168 1168 (unsigned long long)size); 1169 1169 ubifs_dump_inode(c, dir); ··· 1171 1171 return -EINVAL; 1172 1172 } 1173 1173 if (dir->i_nlink != nlink) { 1174 - ubifs_err(c, "directory inode %lu has nlink %u, but calculated nlink is %u", 1174 + ubifs_err(c, "directory inode %llu has nlink %u, but calculated nlink is %u", 1175 1175 dir->i_ino, dir->i_nlink, nlink); 1176 1176 ubifs_dump_inode(c, dir); 1177 1177 dump_stack();
+14 -14
fs/ubifs/dir.c
··· 223 223 struct ubifs_info *c = dir->i_sb->s_fs_info; 224 224 struct fscrypt_name nm; 225 225 226 - dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino); 226 + dbg_gen("'%pd' in dir ino %llu", dentry, dir->i_ino); 227 227 228 228 err = fscrypt_prepare_lookup(dir, dentry, &nm); 229 229 if (err == -ENOENT) ··· 281 281 if (IS_ENCRYPTED(dir) && 282 282 (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && 283 283 !fscrypt_has_permitted_context(dir, inode)) { 284 - ubifs_warn(c, "Inconsistent encryption contexts: %lu/%lu", 284 + ubifs_warn(c, "Inconsistent encryption contexts: %llu/%llu", 285 285 dir->i_ino, inode->i_ino); 286 286 iput(inode); 287 287 inode = ERR_PTR(-EPERM); ··· 318 318 * parent directory inode. 319 319 */ 320 320 321 - dbg_gen("dent '%pd', mode %#hx in dir ino %lu", 321 + dbg_gen("dent '%pd', mode %#hx in dir ino %llu", 322 322 dentry, mode, dir->i_ino); 323 323 324 324 err = ubifs_budget_space(c, &req); ··· 386 386 * atomically. 387 387 */ 388 388 389 - dbg_gen("dent '%pd', mode %#hx in dir ino %lu", 389 + dbg_gen("dent '%pd', mode %#hx in dir ino %llu", 390 390 dentry, mode, dir->i_ino); 391 391 392 392 inode = ubifs_new_inode(c, dir, mode, false); ··· 460 460 * be released via writeback. 461 461 */ 462 462 463 - dbg_gen("dent '%pd', mode %#hx in dir ino %lu", 463 + dbg_gen("dent '%pd', mode %#hx in dir ino %llu", 464 464 dentry, mode, dir->i_ino); 465 465 466 466 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); ··· 589 589 bool encrypted = IS_ENCRYPTED(dir); 590 590 struct ubifs_dir_data *data = file->private_data; 591 591 592 - dbg_gen("dir ino %lu, f_pos %#llx", dir->i_ino, ctx->pos); 592 + dbg_gen("dir ino %llu, f_pos %#llx", dir->i_ino, ctx->pos); 593 593 594 594 if (ctx->pos > UBIFS_S_KEY_HASH_MASK || ctx->pos == 2) 595 595 /* ··· 764 764 * changing the parent inode. 765 765 */ 766 766 767 - dbg_gen("dent '%pd' to ino %lu (nlink %d) in dir ino %lu", 767 + dbg_gen("dent '%pd' to ino %llu (nlink %d) in dir ino %llu", 768 768 dentry, inode->i_ino, 769 769 inode->i_nlink, dir->i_ino); 770 770 ubifs_assert(c, inode_is_locked(dir)); ··· 836 836 * deletions. 837 837 */ 838 838 839 - dbg_gen("dent '%pd' from ino %lu (nlink %d) in dir ino %lu", 839 + dbg_gen("dent '%pd' from ino %llu (nlink %d) in dir ino %llu", 840 840 dentry, inode->i_ino, 841 841 inode->i_nlink, dir->i_ino); 842 842 ··· 941 941 * because we have extra space reserved for deletions. 942 942 */ 943 943 944 - dbg_gen("directory '%pd', ino %lu in dir ino %lu", dentry, 944 + dbg_gen("directory '%pd', ino %llu in dir ino %llu", dentry, 945 945 inode->i_ino, dir->i_ino); 946 946 ubifs_assert(c, inode_is_locked(dir)); 947 947 ubifs_assert(c, inode_is_locked(inode)); ··· 1018 1018 * directory inode. 1019 1019 */ 1020 1020 1021 - dbg_gen("dent '%pd', mode %#hx in dir ino %lu", 1021 + dbg_gen("dent '%pd', mode %#hx in dir ino %llu", 1022 1022 dentry, mode, dir->i_ino); 1023 1023 1024 1024 err = ubifs_budget_space(c, &req); ··· 1096 1096 * directory inode. 1097 1097 */ 1098 1098 1099 - dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino); 1099 + dbg_gen("dent '%pd' in dir ino %llu", dentry, dir->i_ino); 1100 1100 1101 1101 if (S_ISBLK(mode) || S_ISCHR(mode)) { 1102 1102 dev = kmalloc_obj(union ubifs_dev_desc, GFP_NOFS); ··· 1183 1183 .dirtied_ino = 1 }; 1184 1184 struct fscrypt_name nm; 1185 1185 1186 - dbg_gen("dent '%pd', target '%s' in dir ino %lu", dentry, 1186 + dbg_gen("dent '%pd', target '%s' in dir ino %llu", dentry, 1187 1187 symname, dir->i_ino); 1188 1188 1189 1189 err = fscrypt_prepare_symlink(dir, symname, len, UBIFS_MAX_INO_DATA, ··· 1349 1349 * ino_req: marks the target inode as dirty and does not write it. 1350 1350 */ 1351 1351 1352 - dbg_gen("dent '%pd' ino %lu in dir ino %lu to dent '%pd' in dir ino %lu flags 0x%x", 1352 + dbg_gen("dent '%pd' ino %llu in dir ino %llu to dent '%pd' in dir ino %llu flags 0x%x", 1353 1353 old_dentry, old_inode->i_ino, old_dir->i_ino, 1354 1354 new_dentry, new_dir->i_ino, flags); 1355 1355 ··· 1597 1597 * parent directory inodes. 1598 1598 */ 1599 1599 1600 - dbg_gen("dent '%pd' ino %lu in dir ino %lu exchange dent '%pd' ino %lu in dir ino %lu", 1600 + dbg_gen("dent '%pd' ino %llu in dir ino %llu exchange dent '%pd' ino %llu in dir ino %llu", 1601 1601 old_dentry, fst_inode->i_ino, old_dir->i_ino, 1602 1602 new_dentry, snd_inode->i_ino, new_dir->i_ino); 1603 1603
+14 -14
fs/ubifs/file.c
··· 90 90 return 0; 91 91 92 92 dump: 93 - ubifs_err(c, "bad data node (block %u, inode %lu)", 93 + ubifs_err(c, "bad data node (block %u, inode %llu)", 94 94 block, inode->i_ino); 95 95 ubifs_dump_node(c, dn, UBIFS_MAX_DATA_NODE_SZ); 96 96 return -EINVAL; ··· 106 106 loff_t i_size = i_size_read(inode); 107 107 size_t offset = 0; 108 108 109 - dbg_gen("ino %lu, pg %lu, i_size %lld, flags %#lx", 109 + dbg_gen("ino %llu, pg %lu, i_size %lld, flags %#lx", 110 110 inode->i_ino, folio->index, i_size, folio->flags.f); 111 111 ubifs_assert(c, !folio_test_checked(folio)); 112 112 ubifs_assert(c, !folio->private); ··· 162 162 dbg_gen("hole"); 163 163 err = 0; 164 164 } else { 165 - ubifs_err(c, "cannot read page %lu of inode %lu, error %d", 165 + ubifs_err(c, "cannot read page %lu of inode %llu, error %d", 166 166 folio->index, inode->i_ino, err); 167 167 } 168 168 } ··· 212 212 int err, appending = !!(pos + len > inode->i_size); 213 213 struct folio *folio; 214 214 215 - dbg_gen("ino %lu, pos %llu, len %u, i_size %lld", 215 + dbg_gen("ino %llu, pos %llu, len %u, i_size %lld", 216 216 inode->i_ino, pos, len, inode->i_size); 217 217 218 218 /* ··· 526 526 loff_t end_pos = pos + len; 527 527 int appending = !!(end_pos > inode->i_size); 528 528 529 - dbg_gen("ino %lu, pos %llu, pg %lu, len %u, copied %d, i_size %lld", 529 + dbg_gen("ino %llu, pos %llu, pg %lu, len %u, copied %d, i_size %lld", 530 530 inode->i_ino, pos, folio->index, len, copied, inode->i_size); 531 531 532 532 if (unlikely(copied < len && !folio_test_uptodate(folio))) { ··· 599 599 size_t offset = 0; 600 600 pgoff_t end_index; 601 601 602 - dbg_gen("ino %lu, pg %lu, i_size %lld, flags %#lx", 602 + dbg_gen("ino %llu, pg %lu, i_size %lld, flags %#lx", 603 603 inode->i_ino, folio->index, i_size, folio->flags.f); 604 604 605 605 end_index = (i_size - 1) >> PAGE_SHIFT; ··· 680 680 return 0; 681 681 682 682 out_err: 683 - ubifs_err(c, "bad data node (block %u, inode %lu)", 683 + ubifs_err(c, "bad data node (block %u, inode %llu)", 684 684 page_block, inode->i_ino); 685 685 return -EINVAL; 686 686 } ··· 913 913 } 914 914 if (err) { 915 915 mapping_set_error(folio->mapping, err); 916 - ubifs_err(c, "cannot write folio %lu of inode %lu, error %d", 916 + ubifs_err(c, "cannot write folio %lu of inode %llu, error %d", 917 917 folio->index, inode->i_ino, err); 918 918 ubifs_ro_mode(c, err); 919 919 } ··· 987 987 loff_t i_size = i_size_read(inode), synced_i_size; 988 988 int err, len = folio_size(folio); 989 989 990 - dbg_gen("ino %lu, pg %lu, pg flags %#lx", 990 + dbg_gen("ino %llu, pg %lu, pg flags %#lx", 991 991 inode->i_ino, folio->index, folio->flags.f); 992 992 ubifs_assert(c, folio->private != NULL); 993 993 ··· 1106 1106 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; 1107 1107 struct ubifs_inode *ui = ubifs_inode(inode); 1108 1108 1109 - dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); 1109 + dbg_gen("ino %llu, size %lld -> %lld", inode->i_ino, old_size, new_size); 1110 1110 memset(&req, 0, sizeof(struct ubifs_budget_req)); 1111 1111 1112 1112 /* ··· 1258 1258 struct inode *inode = d_inode(dentry); 1259 1259 struct ubifs_info *c = inode->i_sb->s_fs_info; 1260 1260 1261 - dbg_gen("ino %lu, mode %#x, ia_valid %#x", 1261 + dbg_gen("ino %llu, mode %#x, ia_valid %#x", 1262 1262 inode->i_ino, inode->i_mode, attr->ia_valid); 1263 1263 err = setattr_prepare(&nop_mnt_idmap, dentry, attr); 1264 1264 if (err) ··· 1308 1308 struct ubifs_info *c = inode->i_sb->s_fs_info; 1309 1309 int err; 1310 1310 1311 - dbg_gen("syncing inode %lu", inode->i_ino); 1311 + dbg_gen("syncing inode %llu", inode->i_ino); 1312 1312 1313 1313 if (c->ro_mount) 1314 1314 /* ··· 1495 1495 struct ubifs_budget_req req = { .new_page = 1 }; 1496 1496 int err, update_time; 1497 1497 1498 - dbg_gen("ino %lu, pg %lu, i_size %lld", inode->i_ino, folio->index, 1498 + dbg_gen("ino %llu, pg %lu, i_size %lld", inode->i_ino, folio->index, 1499 1499 i_size_read(inode)); 1500 1500 ubifs_assert(c, !c->ro_media && !c->ro_mount); 1501 1501 ··· 1531 1531 err = ubifs_budget_space(c, &req); 1532 1532 if (unlikely(err)) { 1533 1533 if (err == -ENOSPC) 1534 - ubifs_warn(c, "out of space for mmapped file (inode number %lu)", 1534 + ubifs_warn(c, "out of space for mmapped file (inode number %llu)", 1535 1535 inode->i_ino); 1536 1536 return VM_FAULT_SIGBUS; 1537 1537 }
+3 -3
fs/ubifs/journal.c
··· 982 982 int kill_xattrs = ui->xattr_cnt && last_reference; 983 983 u8 hash[UBIFS_HASH_ARR_SZ]; 984 984 985 - dbg_jnl("ino %lu, nlink %u", inode->i_ino, inode->i_nlink); 985 + dbg_jnl("ino %llu, nlink %u", inode->i_ino, inode->i_nlink); 986 986 987 987 if (kill_xattrs && ui->xattr_cnt > ubifs_xattr_max_cnt(c)) { 988 988 ubifs_err(c, "Cannot delete inode, it has too many xattrs!"); ··· 1743 1743 int dn_len = le32_to_cpu(dn->size); 1744 1744 1745 1745 if (dn_len <= 0 || dn_len > UBIFS_BLOCK_SIZE) { 1746 - ubifs_err(c, "bad data node (block %u, inode %lu)", 1746 + ubifs_err(c, "bad data node (block %u, inode %llu)", 1747 1747 blk, inode->i_ino); 1748 1748 ubifs_dump_node(c, dn, dn_size); 1749 1749 err = -EUCLEAN; ··· 1987 1987 u8 hash_host[UBIFS_HASH_ARR_SZ]; 1988 1988 u8 hash[UBIFS_HASH_ARR_SZ]; 1989 1989 1990 - dbg_jnl("ino %lu, ino %lu", host->i_ino, inode->i_ino); 1990 + dbg_jnl("ino %llu, ino %llu", host->i_ino, inode->i_ino); 1991 1991 ubifs_assert(c, inode->i_nlink > 0); 1992 1992 ubifs_assert(c, mutex_is_locked(&host_ui->ui_mutex)); 1993 1993
+8 -8
fs/ubifs/super.c
··· 92 92 return 5; 93 93 94 94 if (!ubifs_compr_present(c, ui->compr_type)) { 95 - ubifs_warn(c, "inode %lu uses '%s' compression, but it was not compiled in", 95 + ubifs_warn(c, "inode %llu uses '%s' compression, but it was not compiled in", 96 96 inode->i_ino, ubifs_compr_name(c, ui->compr_type)); 97 97 } 98 98 ··· 248 248 return inode; 249 249 250 250 out_invalid: 251 - ubifs_err(c, "inode %lu validation failed, error %d", inode->i_ino, err); 251 + ubifs_err(c, "inode %llu validation failed, error %d", inode->i_ino, err); 252 252 ubifs_dump_node(c, ino, UBIFS_MAX_INO_NODE_SZ); 253 253 ubifs_dump_inode(c, inode); 254 254 err = -EINVAL; 255 255 out_ino: 256 256 kfree(ino); 257 257 out: 258 - ubifs_err(c, "failed to read inode %lu, error %d", inode->i_ino, err); 258 + ubifs_err(c, "failed to read inode %llu, error %d", inode->i_ino, err); 259 259 iget_failed(inode); 260 260 return ERR_PTR(err); 261 261 } ··· 316 316 * As an optimization, do not write orphan inodes to the media just 317 317 * because this is not needed. 318 318 */ 319 - dbg_gen("inode %lu, mode %#x, nlink %u", 319 + dbg_gen("inode %llu, mode %#x, nlink %u", 320 320 inode->i_ino, (int)inode->i_mode, inode->i_nlink); 321 321 if (inode->i_nlink) { 322 322 err = ubifs_jnl_write_inode(c, inode); 323 323 if (err) 324 - ubifs_err(c, "can't write inode %lu, error %d", 324 + ubifs_err(c, "can't write inode %llu, error %d", 325 325 inode->i_ino, err); 326 326 else 327 327 err = dbg_check_inode_size(c, inode, ui->ui_size); ··· 357 357 */ 358 358 goto out; 359 359 360 - dbg_gen("inode %lu, mode %#x", inode->i_ino, (int)inode->i_mode); 360 + dbg_gen("inode %llu, mode %#x", inode->i_ino, (int)inode->i_mode); 361 361 ubifs_assert(c, !icount_read(inode)); 362 362 363 363 truncate_inode_pages_final(&inode->i_data); ··· 375 375 * Worst case we have a lost orphan inode wasting space, so a 376 376 * simple error message is OK here. 377 377 */ 378 - ubifs_err(c, "can't delete inode %lu, error %d", 378 + ubifs_err(c, "can't delete inode %llu, error %d", 379 379 inode->i_ino, err); 380 380 381 381 out: ··· 399 399 ubifs_assert(c, mutex_is_locked(&ui->ui_mutex)); 400 400 if (!ui->dirty) { 401 401 ui->dirty = 1; 402 - dbg_gen("inode %lu", inode->i_ino); 402 + dbg_gen("inode %llu", inode->i_ino); 403 403 } 404 404 } 405 405
+2 -2
fs/ubifs/tnc.c
··· 3561 3561 3562 3562 out_dump: 3563 3563 block = key_block(c, key); 3564 - ubifs_err(c, "inode %lu has size %lld, but there are data at offset %lld", 3565 - (unsigned long)inode->i_ino, size, 3564 + ubifs_err(c, "inode %llu has size %lld, but there are data at offset %lld", 3565 + inode->i_ino, size, 3566 3566 ((loff_t)block) << UBIFS_BLOCK_SHIFT); 3567 3567 mutex_unlock(&c->tnc_mutex); 3568 3568 ubifs_dump_inode(c, inode);
+7 -7
fs/ubifs/xattr.c
··· 76 76 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; 77 77 78 78 if (host_ui->xattr_cnt >= ubifs_xattr_max_cnt(c)) { 79 - ubifs_err(c, "inode %lu already has too many xattrs (%d), cannot create more", 79 + ubifs_err(c, "inode %llu already has too many xattrs (%d), cannot create more", 80 80 host->i_ino, host_ui->xattr_cnt); 81 81 return -ENOSPC; 82 82 } ··· 88 88 */ 89 89 names_len = host_ui->xattr_names + host_ui->xattr_cnt + fname_len(nm) + 1; 90 90 if (names_len > XATTR_LIST_MAX) { 91 - ubifs_err(c, "cannot add one more xattr name to inode %lu, total names length would become %d, max. is %d", 91 + ubifs_err(c, "cannot add one more xattr name to inode %llu, total names length would become %d, max. is %d", 92 92 host->i_ino, names_len, XATTR_LIST_MAX); 93 93 return -ENOSPC; 94 94 } ··· 390 390 int err, len, written = 0; 391 391 struct fscrypt_name nm = {0}; 392 392 393 - dbg_gen("ino %lu ('%pd'), buffer size %zd", host->i_ino, 393 + dbg_gen("ino %llu ('%pd'), buffer size %zd", host->i_ino, 394 394 dentry, size); 395 395 396 396 down_read(&host_ui->xattr_sem); ··· 498 498 if (ubifs_inode(host)->xattr_cnt <= ubifs_xattr_max_cnt(c)) 499 499 return 0; 500 500 501 - ubifs_warn(c, "inode %lu has too many xattrs, doing a non-atomic deletion", 501 + ubifs_warn(c, "inode %llu has too many xattrs, doing a non-atomic deletion", 502 502 host->i_ino); 503 503 504 504 down_write(&ubifs_inode(host)->xattr_sem); ··· 641 641 &init_xattrs, NULL); 642 642 if (err) { 643 643 struct ubifs_info *c = dentry->i_sb->s_fs_info; 644 - ubifs_err(c, "cannot initialize security for inode %lu, error %d", 644 + ubifs_err(c, "cannot initialize security for inode %llu, error %d", 645 645 inode->i_ino, err); 646 646 } 647 647 return err; ··· 652 652 struct dentry *dentry, struct inode *inode, 653 653 const char *name, void *buffer, size_t size) 654 654 { 655 - dbg_gen("xattr '%s', ino %lu ('%pd'), buf size %zd", name, 655 + dbg_gen("xattr '%s', ino %llu ('%pd'), buf size %zd", name, 656 656 inode->i_ino, dentry, size); 657 657 658 658 name = xattr_full_name(handler, name); ··· 665 665 const char *name, const void *value, 666 666 size_t size, int flags) 667 667 { 668 - dbg_gen("xattr '%s', host ino %lu ('%pd'), size %zd", 668 + dbg_gen("xattr '%s', host ino %llu ('%pd'), size %zd", 669 669 name, inode->i_ino, dentry, size); 670 670 671 671 name = xattr_full_name(handler, name);
+9 -9
fs/udf/directory.c
··· 22 22 23 23 if (iter->fi.descTag.tagIdent != cpu_to_le16(TAG_IDENT_FID)) { 24 24 udf_err(iter->dir->i_sb, 25 - "directory (ino %lu) has entry at pos %llu with incorrect tag %x\n", 25 + "directory (ino %llu) has entry at pos %llu with incorrect tag %x\n", 26 26 iter->dir->i_ino, (unsigned long long)iter->pos, 27 27 le16_to_cpu(iter->fi.descTag.tagIdent)); 28 28 return -EFSCORRUPTED; ··· 30 30 len = udf_dir_entry_len(&iter->fi); 31 31 if (le16_to_cpu(iter->fi.lengthOfImpUse) & 3) { 32 32 udf_err(iter->dir->i_sb, 33 - "directory (ino %lu) has entry at pos %llu with unaligned length of impUse field\n", 33 + "directory (ino %llu) has entry at pos %llu with unaligned length of impUse field\n", 34 34 iter->dir->i_ino, (unsigned long long)iter->pos); 35 35 return -EFSCORRUPTED; 36 36 } ··· 41 41 */ 42 42 if (len > 1 << iter->dir->i_blkbits) { 43 43 udf_err(iter->dir->i_sb, 44 - "directory (ino %lu) has too big (%u) entry at pos %llu\n", 44 + "directory (ino %llu) has too big (%u) entry at pos %llu\n", 45 45 iter->dir->i_ino, len, (unsigned long long)iter->pos); 46 46 return -EFSCORRUPTED; 47 47 } 48 48 if (iter->pos + len > iter->dir->i_size) { 49 49 udf_err(iter->dir->i_sb, 50 - "directory (ino %lu) has entry past directory size at pos %llu\n", 50 + "directory (ino %llu) has entry past directory size at pos %llu\n", 51 51 iter->dir->i_ino, (unsigned long long)iter->pos); 52 52 return -EFSCORRUPTED; 53 53 } 54 54 if (udf_dir_entry_len(&iter->fi) != 55 55 sizeof(struct tag) + le16_to_cpu(iter->fi.descTag.descCRCLength)) { 56 56 udf_err(iter->dir->i_sb, 57 - "directory (ino %lu) has entry where CRC length (%u) does not match entry length (%u)\n", 57 + "directory (ino %llu) has entry where CRC length (%u) does not match entry length (%u)\n", 58 58 iter->dir->i_ino, 59 59 (unsigned)le16_to_cpu(iter->fi.descTag.descCRCLength), 60 60 (unsigned)(udf_dir_entry_len(&iter->fi) - ··· 78 78 } 79 79 if (iter->dir->i_size < iter->pos + sizeof(struct fileIdentDesc)) { 80 80 udf_err(iter->dir->i_sb, 81 - "directory (ino %lu) has entry straddling EOF\n", 81 + "directory (ino %llu) has entry straddling EOF\n", 82 82 iter->dir->i_ino); 83 83 return -EFSCORRUPTED; 84 84 } ··· 184 184 return 0; 185 185 } 186 186 udf_err(iter->dir->i_sb, 187 - "extent after position %llu not allocated in directory (ino %lu)\n", 187 + "extent after position %llu not allocated in directory (ino %llu)\n", 188 188 (unsigned long long)iter->pos, iter->dir->i_ino); 189 189 return -EFSCORRUPTED; 190 190 } ··· 272 272 if (pos == dir->i_size) 273 273 return 0; 274 274 udf_err(dir->i_sb, 275 - "position %llu not allocated in directory (ino %lu)\n", 275 + "position %llu not allocated in directory (ino %llu)\n", 276 276 (unsigned long long)pos, dir->i_ino); 277 277 err = -EFSCORRUPTED; 278 278 goto out; ··· 483 483 &iter->loffset, &etype); 484 484 if (err <= 0 || etype != (EXT_RECORDED_ALLOCATED >> 30)) { 485 485 udf_err(iter->dir->i_sb, 486 - "block %llu not allocated in directory (ino %lu)\n", 486 + "block %llu not allocated in directory (ino %llu)\n", 487 487 (unsigned long long)block, iter->dir->i_ino); 488 488 return -EFSCORRUPTED; 489 489 }
+1 -1
fs/udf/file.c
··· 133 133 int result; 134 134 135 135 if (file_permission(filp, MAY_READ) != 0) { 136 - udf_debug("no permission to access inode %lu\n", inode->i_ino); 136 + udf_debug("no permission to access inode %llu\n", inode->i_ino); 137 137 return -EPERM; 138 138 } 139 139
+6 -6
fs/udf/inode.c
··· 147 147 if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB && 148 148 inode->i_size != iinfo->i_lenExtents) { 149 149 udf_warn(inode->i_sb, 150 - "Inode %lu (mode %o) has inode size %llu different from extent length %llu. Filesystem need not be standards compliant.\n", 150 + "Inode %llu (mode %o) has inode size %llu different from extent length %llu. Filesystem need not be standards compliant.\n", 151 151 inode->i_ino, inode->i_mode, 152 152 (unsigned long long)inode->i_size, 153 153 (unsigned long long)iinfo->i_lenExtents); ··· 1386 1386 */ 1387 1387 bh = udf_read_ptagged(inode->i_sb, iloc, 0, &ident); 1388 1388 if (!bh) { 1389 - udf_err(inode->i_sb, "(ino %lu) failed !bh\n", inode->i_ino); 1389 + udf_err(inode->i_sb, "(ino %llu) failed !bh\n", inode->i_ino); 1390 1390 return -EIO; 1391 1391 } 1392 1392 1393 1393 if (ident != TAG_IDENT_FE && ident != TAG_IDENT_EFE && 1394 1394 ident != TAG_IDENT_USE) { 1395 - udf_err(inode->i_sb, "(ino %lu) failed ident=%u\n", 1395 + udf_err(inode->i_sb, "(ino %llu) failed ident=%u\n", 1396 1396 inode->i_ino, ident); 1397 1397 goto out; 1398 1398 } ··· 1641 1641 udf_debug("METADATA BITMAP FILE-----\n"); 1642 1642 break; 1643 1643 default: 1644 - udf_err(inode->i_sb, "(ino %lu) failed unknown file type=%u\n", 1644 + udf_err(inode->i_sb, "(ino %llu) failed unknown file type=%u\n", 1645 1645 inode->i_ino, fe->icbTag.fileType); 1646 1646 goto out; 1647 1647 } ··· 1942 1942 if (do_sync) { 1943 1943 sync_dirty_buffer(bh); 1944 1944 if (buffer_write_io_error(bh)) { 1945 - udf_warn(inode->i_sb, "IO error syncing udf inode [%08lx]\n", 1945 + udf_warn(inode->i_sb, "IO error syncing udf inode [%08llx]\n", 1946 1946 inode->i_ino); 1947 1947 err = -EIO; 1948 1948 } ··· 2224 2224 2225 2225 if (++indirections > UDF_MAX_INDIR_EXTS) { 2226 2226 udf_err(inode->i_sb, 2227 - "too many indirect extents in inode %lu\n", 2227 + "too many indirect extents in inode %llu\n", 2228 2228 inode->i_ino); 2229 2229 return -EFSCORRUPTED; 2230 2230 }
+4 -4
fs/udf/namei.c
··· 550 550 goto end_unlink; 551 551 552 552 if (!inode->i_nlink) { 553 - udf_debug("Deleting nonexistent file (%lu), %u\n", 553 + udf_debug("Deleting nonexistent file (%llu), %u\n", 554 554 inode->i_ino, inode->i_nlink); 555 555 set_nlink(inode, 1); 556 556 } ··· 809 809 &diriter); 810 810 if (retval == -ENOENT) { 811 811 udf_err(old_inode->i_sb, 812 - "directory (ino %lu) has no '..' entry\n", 812 + "directory (ino %llu) has no '..' entry\n", 813 813 old_inode->i_ino); 814 814 retval = -EFSCORRUPTED; 815 815 } ··· 821 821 old_dir->i_ino) { 822 822 retval = -EFSCORRUPTED; 823 823 udf_err(old_inode->i_sb, 824 - "directory (ino %lu) has parent entry pointing to another inode (%lu != %u)\n", 824 + "directory (ino %llu) has parent entry pointing to another inode (%llu != %u)\n", 825 825 old_inode->i_ino, old_dir->i_ino, 826 826 udf_get_lb_pblock(old_inode->i_sb, &tloc, 0)); 827 827 goto out_oiter; ··· 869 869 retval = udf_fiiter_find_entry(old_dir, &old_dentry->d_name, &oiter); 870 870 if (retval) { 871 871 udf_err(old_dir->i_sb, 872 - "failed to find renamed entry again in directory (ino %lu)\n", 872 + "failed to find renamed entry again in directory (ino %llu)\n", 873 873 old_dir->i_ino); 874 874 } else { 875 875 udf_fiiter_delete_entry(&oiter);
+1 -1
fs/udf/super.c
··· 1166 1166 } 1167 1167 map->s_uspace.s_table = inode; 1168 1168 map->s_partition_flags |= UDF_PART_FLAG_UNALLOC_TABLE; 1169 - udf_debug("unallocSpaceTable (part %d) @ %lu\n", 1169 + udf_debug("unallocSpaceTable (part %d) @ %llu\n", 1170 1170 p_index, map->s_uspace.s_table->i_ino); 1171 1171 } 1172 1172
+3 -3
fs/ufs/balloc.c
··· 245 245 sector_t end, i; 246 246 struct buffer_head *head, *bh; 247 247 248 - UFSD("ENTER, ino %lu, count %u, oldb %llu, newb %llu\n", 248 + UFSD("ENTER, ino %llu, count %u, oldb %llu, newb %llu\n", 249 249 inode->i_ino, count, 250 250 (unsigned long long)oldb, (unsigned long long)newb); 251 251 ··· 340 340 unsigned cgno, oldcount, newcount; 341 341 u64 tmp, request, result; 342 342 343 - UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n", 343 + UFSD("ENTER, ino %llu, fragment %llu, goal %llu, count %u\n", 344 344 inode->i_ino, (unsigned long long)fragment, 345 345 (unsigned long long)goal, count); 346 346 ··· 583 583 unsigned oldcg, i, j, k, allocsize; 584 584 u64 result; 585 585 586 - UFSD("ENTER, ino %lu, cgno %u, goal %llu, count %u\n", 586 + UFSD("ENTER, ino %llu, cgno %u, goal %llu, count %u\n", 587 587 inode->i_ino, cgno, (unsigned long long)goal, count); 588 588 589 589 sb = inode->i_sb;
+5 -5
fs/ufs/dir.c
··· 150 150 151 151 Ebadsize: 152 152 ufs_error(sb, __func__, 153 - "size of directory #%lu is not a multiple of chunk size", 153 + "size of directory #%llu is not a multiple of chunk size", 154 154 dir->i_ino 155 155 ); 156 156 goto fail; ··· 169 169 Einumber: 170 170 error = "inode out of bounds"; 171 171 bad_entry: 172 - ufs_error(sb, __func__, "bad entry in directory #%lu: %s - " 172 + ufs_error(sb, __func__, "bad entry in directory #%llu: %s - " 173 173 "offset=%llu, rec_len=%d, name_len=%d", 174 174 dir->i_ino, error, folio_pos(folio) + offs, 175 175 rec_len, ufs_get_de_namlen(sb, p)); ··· 177 177 Eend: 178 178 p = (struct ufs_dir_entry *)(kaddr + offs); 179 179 ufs_error(sb, __func__, 180 - "entry in directory #%lu spans the page boundary" 180 + "entry in directory #%llu spans the page boundary" 181 181 "offset=%llu", 182 182 dir->i_ino, folio_pos(folio) + offs); 183 183 fail: ··· 258 258 struct ufs_inode_info *ui = UFS_I(dir); 259 259 struct ufs_dir_entry *de; 260 260 261 - UFSD("ENTER, dir_ino %lu, name %s, namlen %u\n", dir->i_ino, name, namelen); 261 + UFSD("ENTER, dir_ino %llu, name %s, namlen %u\n", dir->i_ino, name, namelen); 262 262 263 263 if (npages == 0 || namelen > UFS_MAXNAMLEN) 264 264 goto out; ··· 434 434 435 435 if (IS_ERR(kaddr)) { 436 436 ufs_error(sb, __func__, 437 - "bad page in #%lu", 437 + "bad page in #%llu", 438 438 inode->i_ino); 439 439 ctx->pos += PAGE_SIZE - offset; 440 440 return PTR_ERR(kaddr);
+3 -3
fs/ufs/ialloc.c
··· 63 63 int is_directory; 64 64 unsigned ino, cg, bit; 65 65 66 - UFSD("ENTER, ino %lu\n", inode->i_ino); 66 + UFSD("ENTER, ino %llu\n", inode->i_ino); 67 67 68 68 sb = inode->i_sb; 69 69 uspi = UFS_SB(sb)->s_uspi; ··· 317 317 bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino)); 318 318 if (!bh) { 319 319 ufs_warning(sb, "ufs_read_inode", 320 - "unable to read inode %lu\n", 320 + "unable to read inode %llu\n", 321 321 inode->i_ino); 322 322 err = -EIO; 323 323 goto fail_remove_inode; ··· 336 336 } 337 337 mutex_unlock(&sbi->s_lock); 338 338 339 - UFSD("allocating inode %lu\n", inode->i_ino); 339 + UFSD("allocating inode %llu\n", inode->i_ino); 340 340 UFSD("EXIT\n"); 341 341 return inode; 342 342
+9 -9
fs/ufs/inode.c
··· 400 400 401 401 mutex_lock(&UFS_I(inode)->truncate_mutex); 402 402 403 - UFSD("ENTER, ino %lu, fragment %llu\n", inode->i_ino, (unsigned long long)fragment); 403 + UFSD("ENTER, ino %llu, fragment %llu\n", inode->i_ino, (unsigned long long)fragment); 404 404 if (unlikely(!depth)) { 405 405 ufs_warning(sb, "ufs_get_block", "block > big"); 406 406 err = -EIO; ··· 595 595 struct super_block *sb = inode->i_sb; 596 596 umode_t mode; 597 597 598 - UFSD("Reading ufs2 inode, ino %lu\n", inode->i_ino); 598 + UFSD("Reading ufs2 inode, ino %llu\n", inode->i_ino); 599 599 /* 600 600 * Copy data to the in-core inode. 601 601 */ ··· 662 662 663 663 bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino)); 664 664 if (!bh) { 665 - ufs_warning(sb, "ufs_read_inode", "unable to read inode %lu\n", 665 + ufs_warning(sb, "ufs_read_inode", "unable to read inode %llu\n", 666 666 inode->i_ino); 667 667 goto bad_inode; 668 668 } ··· 793 793 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; 794 794 struct buffer_head * bh; 795 795 796 - UFSD("ENTER, ino %lu\n", inode->i_ino); 796 + UFSD("ENTER, ino %llu\n", inode->i_ino); 797 797 798 798 if (inode->i_ino < UFS_ROOTINO || 799 799 inode->i_ino > (uspi->s_ncg * uspi->s_ipg)) { 800 - ufs_warning (sb, "ufs_read_inode", "bad inode number (%lu)\n", inode->i_ino); 800 + ufs_warning (sb, "ufs_read_inode", "bad inode number (%llu)\n", inode->i_ino); 801 801 return -1; 802 802 } 803 803 804 804 bh = sb_bread(sb, ufs_inotofsba(inode->i_ino)); 805 805 if (!bh) { 806 - ufs_warning (sb, "ufs_read_inode", "unable to read inode %lu\n", inode->i_ino); 806 + ufs_warning (sb, "ufs_read_inode", "unable to read inode %llu\n", inode->i_ino); 807 807 return -1; 808 808 } 809 809 if (uspi->fs_magic == UFS2_MAGIC) { ··· 891 891 unsigned int old_tail, new_tail; 892 892 struct to_free ctx = {.inode = inode}; 893 893 894 - UFSD("ENTER: ino %lu\n", inode->i_ino); 894 + UFSD("ENTER: ino %llu\n", inode->i_ino); 895 895 896 896 new_frags = DIRECT_FRAGMENT; 897 897 // new_frags = first fragment past the new EOF ··· 956 956 } 957 957 } 958 958 done: 959 - UFSD("EXIT: ino %lu\n", inode->i_ino); 959 + UFSD("EXIT: ino %llu\n", inode->i_ino); 960 960 } 961 961 962 962 static void free_full_branch(struct inode *inode, u64 ind_block, int depth) ··· 1169 1169 { 1170 1170 int err = 0; 1171 1171 1172 - UFSD("ENTER: ino %lu, i_size: %llu, old_i_size: %llu\n", 1172 + UFSD("ENTER: ino %llu, i_size: %llu, old_i_size: %llu\n", 1173 1173 inode->i_ino, (unsigned long long)size, 1174 1174 (unsigned long long)i_size_read(inode)); 1175 1175
+3 -3
fs/ufs/ufs_fs.h
··· 226 226 * inode number to cylinder group number. 227 227 * inode number to file system block address. 228 228 */ 229 - #define ufs_inotocg(x) ((x) / uspi->s_ipg) 230 - #define ufs_inotocgoff(x) ((x) % uspi->s_ipg) 229 + #define ufs_inotocg(x) ((unsigned int)(x) / uspi->s_ipg) 230 + #define ufs_inotocgoff(x) ((unsigned int)(x) % uspi->s_ipg) 231 231 #define ufs_inotofsba(x) (((u64)ufs_cgimin(ufs_inotocg(x))) + ufs_inotocgoff(x) / uspi->s_inopf) 232 - #define ufs_inotofsbo(x) ((x) % uspi->s_inopf) 232 + #define ufs_inotofsbo(x) ((unsigned int)(x) % uspi->s_inopf) 233 233 234 234 /* 235 235 * Compute the cylinder and rotational position of a cyl block addr.
+1 -1
fs/ufs/util.c
··· 203 203 folio = read_mapping_folio(mapping, index, NULL); 204 204 205 205 if (IS_ERR(folio)) { 206 - printk(KERN_ERR "ufs_change_blocknr: read_mapping_folio error: ino %lu, index: %lu\n", 206 + printk(KERN_ERR "ufs_change_blocknr: read_mapping_folio error: ino %llu, index: %lu\n", 207 207 mapping->host->i_ino, index); 208 208 return folio; 209 209 }
+1 -1
fs/verity/init.c
··· 50 50 vaf.fmt = fmt; 51 51 vaf.va = &args; 52 52 if (inode) 53 - printk("%sfs-verity (%s, inode %lu): %pV\n", 53 + printk("%sfs-verity (%s, inode %llu): %pV\n", 54 54 level, inode->i_sb->s_id, inode->i_ino, &vaf); 55 55 else 56 56 printk("%sfs-verity: %pV\n", level, &vaf);
+4 -4
fs/zonefs/super.c
··· 297 297 */ 298 298 if (isize != data_size) 299 299 zonefs_warn(sb, 300 - "inode %lu: invalid size %lld (should be %lld)\n", 300 + "inode %llu: invalid size %lld (should be %lld)\n", 301 301 inode->i_ino, isize, data_size); 302 302 303 303 /* ··· 308 308 */ 309 309 if ((z->z_flags & ZONEFS_ZONE_OFFLINE) || 310 310 (sbi->s_mount_opts & ZONEFS_MNTOPT_ERRORS_ZOL)) { 311 - zonefs_warn(sb, "inode %lu: read/write access disabled\n", 311 + zonefs_warn(sb, "inode %llu: read/write access disabled\n", 312 312 inode->i_ino); 313 313 if (!(z->z_flags & ZONEFS_ZONE_OFFLINE)) 314 314 z->z_flags |= ZONEFS_ZONE_OFFLINE; ··· 316 316 data_size = 0; 317 317 } else if ((z->z_flags & ZONEFS_ZONE_READONLY) || 318 318 (sbi->s_mount_opts & ZONEFS_MNTOPT_ERRORS_ZRO)) { 319 - zonefs_warn(sb, "inode %lu: write access disabled\n", 319 + zonefs_warn(sb, "inode %llu: write access disabled\n", 320 320 inode->i_ino); 321 321 if (!(z->z_flags & ZONEFS_ZONE_READONLY)) 322 322 z->z_flags |= ZONEFS_ZONE_READONLY; ··· 402 402 memalloc_noio_restore(noio_flag); 403 403 404 404 if (ret != 1) { 405 - zonefs_err(sb, "Get inode %lu zone information failed %d\n", 405 + zonefs_err(sb, "Get inode %llu zone information failed %d\n", 406 406 inode->i_ino, ret); 407 407 zonefs_warn(sb, "remounting filesystem read-only\n"); 408 408 sb->s_flags |= SB_RDONLY;
+1 -1
include/linux/fs.h
··· 783 783 #endif 784 784 785 785 /* Stat data, not accessed from path walking */ 786 - unsigned long i_ino; 786 + u64 i_ino; 787 787 /* 788 788 * Filesystems may only read i_nlink directly. They shall use the 789 789 * following functions for modification:
+2 -2
kernel/events/uprobes.c
··· 344 344 static void update_ref_ctr_warn(struct uprobe *uprobe, 345 345 struct mm_struct *mm, short d) 346 346 { 347 - pr_warn("ref_ctr %s failed for inode: 0x%lx offset: " 347 + pr_warn("ref_ctr %s failed for inode: 0x%llx offset: " 348 348 "0x%llx ref_ctr_offset: 0x%llx of mm: 0x%p\n", 349 349 d > 0 ? "increment" : "decrement", uprobe->inode->i_ino, 350 350 (unsigned long long) uprobe->offset, ··· 982 982 static void 983 983 ref_ctr_mismatch_warn(struct uprobe *cur_uprobe, struct uprobe *uprobe) 984 984 { 985 - pr_warn("ref_ctr_offset mismatch. inode: 0x%lx offset: 0x%llx " 985 + pr_warn("ref_ctr_offset mismatch. inode: 0x%llx offset: 0x%llx " 986 986 "ref_ctr_offset(old): 0x%llx ref_ctr_offset(new): 0x%llx\n", 987 987 uprobe->inode->i_ino, (unsigned long long) uprobe->offset, 988 988 (unsigned long long) cur_uprobe->ref_ctr_offset,
+2 -2
net/netrom/af_netrom.c
··· 1305 1305 seq_printf(seq, "%-9s ", ax2asc(buf, &nr->user_addr)); 1306 1306 seq_printf(seq, "%-9s ", ax2asc(buf, &nr->dest_addr)); 1307 1307 seq_printf(seq, 1308 - "%-9s %-3s %02X/%02X %02X/%02X %2d %3d %3d %3d %3lu/%03lu %2lu/%02lu %3lu/%03lu %3lu/%03lu %2d/%02d %3d %5d %5d %ld\n", 1308 + "%-9s %-3s %02X/%02X %02X/%02X %2d %3d %3d %3d %3lu/%03lu %2lu/%02lu %3lu/%03lu %3lu/%03lu %2d/%02d %3d %5d %5d %llu\n", 1309 1309 ax2asc(buf, &nr->source_addr), 1310 1310 devname, 1311 1311 nr->my_index, ··· 1329 1329 nr->window, 1330 1330 sk_wmem_alloc_get(s), 1331 1331 sk_rmem_alloc_get(s), 1332 - s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); 1332 + s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : (u64)0); 1333 1333 1334 1334 bh_unlock_sock(s); 1335 1335 }
+2 -2
net/rose/af_rose.c
··· 1479 1479 callsign = ax2asc(buf, &rose->source_call); 1480 1480 1481 1481 seq_printf(seq, 1482 - "%-10s %-9s %-5s %3.3X %05d %d %d %d %d %3lu %3lu %3lu %3lu %3lu %3lu/%03lu %5d %5d %ld\n", 1482 + "%-10s %-9s %-5s %3.3X %05d %d %d %d %d %3lu %3lu %3lu %3lu %3lu %3lu/%03lu %5d %5d %llu\n", 1483 1483 rose2asc(rsbuf, &rose->source_addr), 1484 1484 callsign, 1485 1485 devname, ··· 1498 1498 rose->idle / (60 * HZ), 1499 1499 sk_wmem_alloc_get(s), 1500 1500 sk_rmem_alloc_get(s), 1501 - s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); 1501 + s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : (u64)0); 1502 1502 } 1503 1503 1504 1504 return 0;
+1 -1
net/socket.c
··· 373 373 */ 374 374 static char *sockfs_dname(struct dentry *dentry, char *buffer, int buflen) 375 375 { 376 - return dynamic_dname(buffer, buflen, "socket:[%lu]", 376 + return dynamic_dname(buffer, buflen, "socket:[%llu]", 377 377 d_inode(dentry)->i_ino); 378 378 } 379 379
+2 -2
net/x25/x25_proc.c
··· 96 96 devname = x25->neighbour->dev->name; 97 97 98 98 seq_printf(seq, "%-10s %-10s %-5s %3.3X %d %d %d %d %3lu %3lu " 99 - "%3lu %3lu %3lu %5d %5d %ld\n", 99 + "%3lu %3lu %3lu %5d %5d %llu\n", 100 100 !x25->dest_addr.x25_addr[0] ? "*" : x25->dest_addr.x25_addr, 101 101 !x25->source_addr.x25_addr[0] ? "*" : x25->source_addr.x25_addr, 102 102 devname, x25->lci & 0x0FFF, x25->state, x25->vs, x25->vr, ··· 104 104 x25->t21 / HZ, x25->t22 / HZ, x25->t23 / HZ, 105 105 sk_wmem_alloc_get(s), 106 106 sk_rmem_alloc_get(s), 107 - s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); 107 + s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : (u64)0); 108 108 out: 109 109 return 0; 110 110 }
+2 -2
security/apparmor/apparmorfs.c
··· 149 149 150 150 static int aafs_show_path(struct seq_file *seq, struct dentry *dentry) 151 151 { 152 - seq_printf(seq, "%s:[%lu]", AAFS_NAME, d_inode(dentry)->i_ino); 152 + seq_printf(seq, "%s:[%llu]", AAFS_NAME, d_inode(dentry)->i_ino); 153 153 return 0; 154 154 } 155 155 ··· 2644 2644 char name[32]; 2645 2645 int res; 2646 2646 2647 - res = snprintf(name, sizeof(name), "%s:[%lu]", AAFS_NAME, 2647 + res = snprintf(name, sizeof(name), "%s:[%llu]", AAFS_NAME, 2648 2648 d_inode(dentry)->i_ino); 2649 2649 if (res > 0 && res < sizeof(name)) 2650 2650 res = readlink_copy(buffer, buflen, name, strlen(name));
+1 -1
security/integrity/integrity_audit.c
··· 62 62 if (inode) { 63 63 audit_log_format(ab, " dev="); 64 64 audit_log_untrustedstring(ab, inode->i_sb->s_id); 65 - audit_log_format(ab, " ino=%lu", inode->i_ino); 65 + audit_log_format(ab, " ino=%llu", inode->i_ino); 66 66 } 67 67 audit_log_format(ab, " res=%d errno=%d", !result, errno); 68 68 audit_log_end(ab);
+1 -1
security/ipe/audit.c
··· 153 153 if (inode) { 154 154 audit_log_format(ab, " dev="); 155 155 audit_log_untrustedstring(ab, inode->i_sb->s_id); 156 - audit_log_format(ab, " ino=%lu", inode->i_ino); 156 + audit_log_format(ab, " ino=%llu", inode->i_ino); 157 157 } else { 158 158 audit_log_format(ab, " dev=? ino=?"); 159 159 }
+5 -5
security/lsm_audit.c
··· 202 202 if (inode) { 203 203 audit_log_format(ab, " dev="); 204 204 audit_log_untrustedstring(ab, inode->i_sb->s_id); 205 - audit_log_format(ab, " ino=%lu", inode->i_ino); 205 + audit_log_format(ab, " ino=%llu", inode->i_ino); 206 206 } 207 207 break; 208 208 } ··· 215 215 if (inode) { 216 216 audit_log_format(ab, " dev="); 217 217 audit_log_untrustedstring(ab, inode->i_sb->s_id); 218 - audit_log_format(ab, " ino=%lu", inode->i_ino); 218 + audit_log_format(ab, " ino=%llu", inode->i_ino); 219 219 } 220 220 break; 221 221 } ··· 228 228 if (inode) { 229 229 audit_log_format(ab, " dev="); 230 230 audit_log_untrustedstring(ab, inode->i_sb->s_id); 231 - audit_log_format(ab, " ino=%lu", inode->i_ino); 231 + audit_log_format(ab, " ino=%llu", inode->i_ino); 232 232 } 233 233 234 234 audit_log_format(ab, " ioctlcmd=0x%hx", a->u.op->cmd); ··· 246 246 if (inode) { 247 247 audit_log_format(ab, " dev="); 248 248 audit_log_untrustedstring(ab, inode->i_sb->s_id); 249 - audit_log_format(ab, " ino=%lu", inode->i_ino); 249 + audit_log_format(ab, " ino=%llu", inode->i_ino); 250 250 } 251 251 break; 252 252 } ··· 265 265 } 266 266 audit_log_format(ab, " dev="); 267 267 audit_log_untrustedstring(ab, inode->i_sb->s_id); 268 - audit_log_format(ab, " ino=%lu", inode->i_ino); 268 + audit_log_format(ab, " ino=%llu", inode->i_ino); 269 269 rcu_read_unlock(); 270 270 break; 271 271 }
+5 -5
security/selinux/hooks.c
··· 1400 1400 if (rc < 0) { 1401 1401 kfree(context); 1402 1402 if (rc != -ENODATA) { 1403 - pr_warn("SELinux: %s: getxattr returned %d for dev=%s ino=%ld\n", 1403 + pr_warn("SELinux: %s: getxattr returned %d for dev=%s ino=%llu\n", 1404 1404 __func__, -rc, inode->i_sb->s_id, inode->i_ino); 1405 1405 return rc; 1406 1406 } ··· 1412 1412 def_sid, GFP_NOFS); 1413 1413 if (rc) { 1414 1414 char *dev = inode->i_sb->s_id; 1415 - unsigned long ino = inode->i_ino; 1415 + u64 ino = inode->i_ino; 1416 1416 1417 1417 if (rc == -EINVAL) { 1418 - pr_notice_ratelimited("SELinux: inode=%lu on dev=%s was found to have an invalid context=%s. This indicates you may need to relabel the inode or the filesystem in question.\n", 1418 + pr_notice_ratelimited("SELinux: inode=%llu on dev=%s was found to have an invalid context=%s. This indicates you may need to relabel the inode or the filesystem in question.\n", 1419 1419 ino, dev, context); 1420 1420 } else { 1421 - pr_warn("SELinux: %s: context_to_sid(%s) returned %d for dev=%s ino=%ld\n", 1421 + pr_warn("SELinux: %s: context_to_sid(%s) returned %d for dev=%s ino=%llu\n", 1422 1422 __func__, context, -rc, dev, ino); 1423 1423 } 1424 1424 } ··· 3477 3477 &newsid); 3478 3478 if (rc) { 3479 3479 pr_err("SELinux: unable to map context to SID" 3480 - "for (%s, %lu), rc=%d\n", 3480 + "for (%s, %llu), rc=%d\n", 3481 3481 inode->i_sb->s_id, inode->i_ino, -rc); 3482 3482 return; 3483 3483 }
+6 -6
security/smack/smack_lsm.c
··· 182 182 char acc[SMK_NUM_ACCESS_TYPE + 1]; 183 183 184 184 if (isp->smk_flags & SMK_INODE_IMPURE) 185 - pr_info("Smack Unconfined Corruption: inode=(%s %ld) %s\n", 185 + pr_info("Smack Unconfined Corruption: inode=(%s %llu) %s\n", 186 186 inode->i_sb->s_id, inode->i_ino, current->comm); 187 187 188 188 if (rc <= 0) ··· 195 195 196 196 smk_bu_mode(mode, acc); 197 197 198 - pr_info("Smack %s: (%s %s %s) inode=(%s %ld) %s\n", smk_bu_mess[rc], 198 + pr_info("Smack %s: (%s %s %s) inode=(%s %llu) %s\n", smk_bu_mess[rc], 199 199 tsp->smk_task->smk_known, isp->smk_inode->smk_known, acc, 200 200 inode->i_sb->s_id, inode->i_ino, current->comm); 201 201 return 0; ··· 214 214 char acc[SMK_NUM_ACCESS_TYPE + 1]; 215 215 216 216 if (isp->smk_flags & SMK_INODE_IMPURE) 217 - pr_info("Smack Unconfined Corruption: inode=(%s %ld) %s\n", 217 + pr_info("Smack Unconfined Corruption: inode=(%s %llu) %s\n", 218 218 inode->i_sb->s_id, inode->i_ino, current->comm); 219 219 220 220 if (rc <= 0) ··· 223 223 rc = 0; 224 224 225 225 smk_bu_mode(mode, acc); 226 - pr_info("Smack %s: (%s %s %s) file=(%s %ld %pD) %s\n", smk_bu_mess[rc], 226 + pr_info("Smack %s: (%s %s %s) file=(%s %llu %pD) %s\n", smk_bu_mess[rc], 227 227 sskp->smk_known, smk_of_inode(inode)->smk_known, acc, 228 228 inode->i_sb->s_id, inode->i_ino, file, 229 229 current->comm); ··· 244 244 char acc[SMK_NUM_ACCESS_TYPE + 1]; 245 245 246 246 if (isp->smk_flags & SMK_INODE_IMPURE) 247 - pr_info("Smack Unconfined Corruption: inode=(%s %ld) %s\n", 247 + pr_info("Smack Unconfined Corruption: inode=(%s %llu) %s\n", 248 248 inode->i_sb->s_id, inode->i_ino, current->comm); 249 249 250 250 if (rc <= 0) ··· 253 253 rc = 0; 254 254 255 255 smk_bu_mode(mode, acc); 256 - pr_info("Smack %s: (%s %s %s) file=(%s %ld %pD) %s\n", smk_bu_mess[rc], 256 + pr_info("Smack %s: (%s %s %s) file=(%s %llu %pD) %s\n", smk_bu_mess[rc], 257 257 sskp->smk_known, smk_of_inode(inode)->smk_known, acc, 258 258 inode->i_sb->s_id, inode->i_ino, file, 259 259 current->comm);