From nobody Tue Mar 3 05:09:07 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB8EC3B4E99; Mon, 2 Mar 2026 20:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772483978; cv=none; b=mPaXvZkzsJNZtYpa7mLHguVnaEHftkEo5jtg+jQCkSQE4A46El8K+n4YyM78qe6rwKpr+LMGQHMUOQYXSaCD6hgNjz4hZzdW2ULL0+taKP81zy70iExvjbFgiwgxc6F8/GAYUChrCkAwtjsZ/EkGk6YyHvLtfPqiLISQKOf2lOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772483978; c=relaxed/simple; bh=T2IsifKoW8AH9BcUlcrVDOEbUA73CXM67EzY1ozI0BQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TBLXr+LFf2BYj5BurzQ0wsEWlPda8d4eUjqp5a3Lidt2kN5jfM6b0dIRfbYgBVZmHn0INajK8guJ+m2etV5d/iP+l93ayG4UFXx8X9eicA1Ya6pWDA19tP+neVDABe9xOsndqgP/GrwwCb67VKigNTB8IDBFa8U7iAyxX4g3LiE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hXq/Qbhl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hXq/Qbhl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67A19C2BCB6; Mon, 2 Mar 2026 20:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772483977; bh=T2IsifKoW8AH9BcUlcrVDOEbUA73CXM67EzY1ozI0BQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hXq/Qbhl6jHcjd3mGPeZ/Sn4geGvr3qelph71TgIVOHDIoZRbx6yQCKH8BwLwYXRp YMykhabHSLM3iJbXOapeGtXvbavWIwXE9T7Uw+MKubaVpieAjcNxGECJSsSmrA5kcc iiRuyqx2Sl3koIoPbew1pb/jXCNwG3bFJCfmhrCrOARRlFTIPgxcIZ12JM2Ni6zfUo KsoXk7Z+GwLZkGXemfB6gZuvzTevGkmHfALuVq9IBRf5RV/p8MjrZ212USCOOMQ5MY sMEngePisoXS0VtJZvUX+J7pL0hd891aj/aFyokGefqyv5/IX/WgM4GbMrnxHIx1WZ fDHSOwngD+lQw== From: Jeff Layton Date: Mon, 02 Mar 2026 15:24:45 -0500 Subject: [PATCH v2 061/110] ext4: replace PRIino with %llu/%llx format strings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260302-iino-u64-v2-61-e5388800dae0@kernel.org> References: <20260302-iino-u64-v2-0-e5388800dae0@kernel.org> In-Reply-To: <20260302-iino-u64-v2-0-e5388800dae0@kernel.org> To: Alexander Viro , Christian Brauner , Jan Kara , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Dan Williams , Matthew Wilcox , Eric Biggers , "Theodore Y. Ts'o" , Muchun Song , Oscar Salvador , David Hildenbrand , David Howells , Paulo Alcantara , Andreas Dilger , Jan Kara , Jaegeuk Kim , Chao Yu , Trond Myklebust , Anna Schumaker , Chuck Lever , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Steve French , Ronnie Sahlberg , Shyam Prasad N , Bharath SM , Alexander Aring , Ryusuke Konishi , Viacheslav Dubeyko , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Sterba , Marc Dionne , Ian Kent , Luis de Bethencourt , Salah Triki , "Tigran A. Aivazian" , Ilya Dryomov , Alex Markuze , Jan Harkes , coda@cs.cmu.edu, Nicolas Pitre , Tyler Hicks , Amir Goldstein , Christoph Hellwig , John Paul Adrian Glaubitz , Yangtao Li , Mikulas Patocka , David Woodhouse , Richard Weinberger , Dave Kleikamp , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , Miklos Szeredi , Anders Larsen , Zhihao Cheng , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Fan Wu , Stephen Smalley , Ondrej Mosnacek , Casey Schaufler , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , Sumit Semwal , Eric Dumazet , Kuniyuki Iwashima , Paolo Abeni , Willem de Bruijn , "David S. Miller" , Jakub Kicinski , Simon Horman , Oleg Nesterov , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , "Darrick J. Wong" , Martin Schiller , Eric Paris , Joerg Reuter , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Oliver Hartkopp , Marc Kleine-Budde , David Ahern , Neal Cardwell , Steffen Klassert , Herbert Xu , Remi Denis-Courmont , Marcelo Ricardo Leitner , Xin Long , Magnus Karlsson , Maciej Fijalkowski , Stanislav Fomichev , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, nvdimm@lists.linux.dev, fsverity@lists.linux.dev, linux-mm@kvack.org, netfs@lists.linux.dev, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-nilfs@vger.kernel.org, v9fs@lists.linux.dev, linux-afs@lists.infradead.org, autofs@vger.kernel.org, ceph-devel@vger.kernel.org, codalist@coda.cs.cmu.edu, ecryptfs@vger.kernel.org, linux-mtd@lists.infradead.org, jfs-discussion@lists.sourceforge.net, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, devel@lists.orangefs.org, linux-unionfs@vger.kernel.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, netdev@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-xfs@vger.kernel.org, linux-hams@vger.kernel.org, linux-x25@vger.kernel.org, audit@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-can@vger.kernel.org, linux-sctp@vger.kernel.org, bpf@vger.kernel.org, Jeff Layton X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=40942; i=jlayton@kernel.org; h=from:subject:message-id; bh=T2IsifKoW8AH9BcUlcrVDOEbUA73CXM67EzY1ozI0BQ=; b=owEBbQKS/ZANAwAKAQAOaEEZVoIVAcsmYgBppfH/KmBuN9lF6l23dJZzzdLcefNxi95tQmFd2 RhS0iYncL6JAjMEAAEKAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCaaXx/wAKCRAADmhBGVaC FWi8EADQ6IxHyfoPMeCBqRB7DMnq5sNXYX//Ck7o4JU1KtGI68ygOUO6jW8EG0K65DcxhCx4oc6 cwuIeWUZT74CScXpF4WxUiAiuHYpNUvXX6H34eE+pj3eD9c72WFNgjm8GzjLu9TKkWXZeboGOhh QnjJYXbqfSVRPEFSDEQfeHx7ZZEVUqZEMP47PkeaXvJsNW593Vr/OBlUCuTJOS+NFc3Ti8A4NJu dTkVhZcKMqmi0FvTxAj9B7Zvx2CEoZC0aZx2lHo/e2vGiW77VTVDITW5+kT39VOJPwzkYnyYN5H XytQH3NFAUupS5U9cJM0ElEVNVas737/8P604kv6YOKJAQNJBRlPytRto3+c8AhLaYBnOTcMiQI mT9QD+vPvGqjE1GT/v2aMcOoMmq4eNniq91HsMSczaBpiYlHlRragq5B0H56+Fc+TpWp8mqtsqg kx7BsAtiSQDhiIvfOlmhsJBGUEbxfya4MqfdOAkJdFW9Jy/TV0ffwFxbLzP/4pZsZaZPj7u68dA 1GP3brwQ6skDvke8wddomSL4g1ciSFHHQ2M3uBsDpVyFacENKL8hFPD8xpNk9zgF+i7iJEYgDvm kgoW8u5OJwdm4k1rcIUxIVQTzJgTG+SxXHIBKEDvPlu62xHLgmLubb6nMDHUqnfMGcKBsSXNlOi gWy7NiLUEcIBpCQ== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 Now that i_ino is u64 and the PRIino format macro has been removed, replace all uses in ext4 with the concrete format strings. Signed-off-by: Jeff Layton --- fs/ext4/dir.c | 2 +- fs/ext4/ext4.h | 4 ++-- fs/ext4/extents.c | 8 ++++---- fs/ext4/extents_status.c | 28 ++++++++++++++-------------- fs/ext4/fast_commit.c | 8 ++++---- fs/ext4/ialloc.c | 8 ++++---- fs/ext4/indirect.c | 2 +- fs/ext4/inline.c | 14 +++++++------- fs/ext4/inode.c | 22 +++++++++++----------- fs/ext4/ioctl.c | 4 ++-- fs/ext4/mballoc.c | 2 +- fs/ext4/move_extent.c | 20 ++++++++++---------- fs/ext4/namei.c | 10 +++++----- fs/ext4/orphan.c | 16 ++++++++-------- fs/ext4/page-io.c | 10 +++++----- fs/ext4/super.c | 22 +++++++++++----------- fs/ext4/xattr.c | 10 +++++----- 17 files changed, 95 insertions(+), 95 deletions(-) diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 785d482b0ff01686ed420508e826eb8d2745aa92..17edd678fa87b8f024232081888= c4054d42a7bd9 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c @@ -535,7 +535,7 @@ static int call_filldir(struct file *file, struct dir_c= ontext *ctx, struct super_block *sb =3D inode->i_sb; =20 if (!fname) { - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%" PRIino "u: comm %s: " + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: comm %s: " "called with null fname?!?", __func__, __LINE__, inode->i_ino, current->comm); return 0; diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index d2bf5f7db5524c50626833a82987f89965ab7f67..85e6c2b543a82e83b777c2cc2f5= 4a6ed53b554f2 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -92,7 +92,7 @@ */ #ifdef CONFIG_EXT4_DEBUG #define ext_debug(ino, fmt, ...) \ - pr_debug("[%s/%d] EXT4-fs (%s): ino %" PRIino "u: (%s, %d): %s:" fmt, \ + pr_debug("[%s/%d] EXT4-fs (%s): ino %llu: (%s, %d): %s:" fmt, \ current->comm, task_pid_nr(current), \ ino->i_sb->s_id, ino->i_ino, __FILE__, __LINE__, \ __func__, ##__VA_ARGS__) @@ -3229,7 +3229,7 @@ extern void __dump_mmp_msg(struct super_block *, stru= ct mmp_struct *mmp, extern __printf(7, 8) void __ext4_grp_locked_error(const char *, unsigned int, struct super_block *, ext4_group_t, - kino_t, ext4_fsblk_t, + u64, ext4_fsblk_t, const char *, ...); =20 #define EXT4_ERROR_INODE(inode, fmt, a...) \ diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 668bb30771fb4fb33e75971b4488359e636d7d1b..042e1555a674149f8d47716f288= ca175556b6b45 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -4603,7 +4603,7 @@ static int ext4_alloc_file_blocks(struct file *file, = ext4_lblk_t offset, } ret =3D ext4_map_blocks(handle, inode, &map, flags); if (ret <=3D 0) { - ext4_debug("inode #%" PRIino "u: block %u: len %u: " + ext4_debug("inode #%llu: block %u: len %u: " "ext4_ext_map_blocks returned %d", inode->i_ino, map.m_lblk, map.m_len, ret); @@ -4955,7 +4955,7 @@ int ext4_convert_unwritten_extents_atomic(handle_t *h= andle, struct inode *inode, ret =3D ext4_map_blocks(handle, inode, &map, flags); if (ret !=3D max_blocks) ext4_msg(inode->i_sb, KERN_INFO, - "inode #%" PRIino "u: block %u: len %u: " + "inode #%llu: block %u: len %u: " "split block mapping found for atomic write, " "ret =3D %d", inode->i_ino, map.m_lblk, @@ -4974,7 +4974,7 @@ int ext4_convert_unwritten_extents_atomic(handle_t *h= andle, struct inode *inode, =20 if (ret <=3D 0 || ret2) ext4_warning(inode->i_sb, - "inode #%" PRIino "u: block %u: len %u: " + "inode #%llu: block %u: len %u: " "returned %d or %d", inode->i_ino, map.m_lblk, map.m_len, ret, ret2); @@ -5031,7 +5031,7 @@ int ext4_convert_unwritten_extents(handle_t *handle, = struct inode *inode, EXT4_EX_NOCACHE); if (ret <=3D 0) ext4_warning(inode->i_sb, - "inode #%" PRIino "u: block %u: len %u: " + "inode #%llu: block %u: len %u: " "ext4_ext_map_blocks returned %d", inode->i_ino, map.m_lblk, map.m_len, ret); diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c index 01ab48602798f0cdf6312e8bbe130dc319405bff..6e4a191e821915d2b61646f4630= 4ffab6d531126 100644 --- a/fs/ext4/extents_status.c +++ b/fs/ext4/extents_status.c @@ -214,7 +214,7 @@ static void ext4_es_print_tree(struct inode *inode) struct ext4_es_tree *tree; struct rb_node *node; =20 - printk(KERN_DEBUG "status extents for inode %" PRIino "u:", inode->i_ino); + printk(KERN_DEBUG "status extents for inode %llu:", inode->i_ino); tree =3D &EXT4_I(inode)->i_es_tree; node =3D rb_first(&tree->root); while (node) { @@ -703,7 +703,7 @@ static void ext4_es_insert_extent_ext_check(struct inod= e *inode, if (!ext4_es_is_written(es) && !ext4_es_is_unwritten(es)) { if (in_range(es->es_lblk, ee_block, ee_len)) { pr_warn("ES insert assertion failed for " - "inode: %" PRIino "u we can find an extent " + "inode: %llu we can find an extent " "at block [%d/%d/%llu/%c], but we " "want to add a delayed/hole extent " "[%d/%d/%llu/%x]\n", @@ -721,7 +721,7 @@ static void ext4_es_insert_extent_ext_check(struct inod= e *inode, */ if (es->es_lblk < ee_block || ext4_es_pblock(es) !=3D ee_start + es->es_lblk - ee_block) { - pr_warn("ES insert assertion failed for inode: %" PRIino "u " + pr_warn("ES insert assertion failed for inode: %llu " "ex_status [%d/%d/%llu/%c] !=3D " "es_status [%d/%d/%llu/%c]\n", inode->i_ino, ee_block, ee_len, ee_start, @@ -731,7 +731,7 @@ static void ext4_es_insert_extent_ext_check(struct inod= e *inode, } =20 if (ee_status ^ es_status) { - pr_warn("ES insert assertion failed for inode: %" PRIino "u " + pr_warn("ES insert assertion failed for inode: %llu " "ex_status [%d/%d/%llu/%c] !=3D " "es_status [%d/%d/%llu/%c]\n", inode->i_ino, ee_block, ee_len, ee_start, @@ -744,7 +744,7 @@ static void ext4_es_insert_extent_ext_check(struct inod= e *inode, * that we don't want to add an written/unwritten extent. */ if (!ext4_es_is_delayed(es) && !ext4_es_is_hole(es)) { - pr_warn("ES insert assertion failed for inode: %" PRIino "u " + pr_warn("ES insert assertion failed for inode: %llu " "can't find an extent at block %d but we want " "to add a written/unwritten extent " "[%d/%d/%llu/%x]\n", inode->i_ino, @@ -779,7 +779,7 @@ static void ext4_es_insert_extent_ind_check(struct inod= e *inode, * We want to add a delayed/hole extent but this * block has been allocated. */ - pr_warn("ES insert assertion failed for inode: %" PRIino "u " + pr_warn("ES insert assertion failed for inode: %llu " "We can find blocks but we want to add a " "delayed/hole extent [%d/%d/%llu/%x]\n", inode->i_ino, es->es_lblk, es->es_len, @@ -788,13 +788,13 @@ static void ext4_es_insert_extent_ind_check(struct in= ode *inode, } else if (ext4_es_is_written(es)) { if (retval !=3D es->es_len) { pr_warn("ES insert assertion failed for " - "inode: %" PRIino "u retval %d !=3D es_len %d\n", + "inode: %llu retval %d !=3D es_len %d\n", inode->i_ino, retval, es->es_len); return; } if (map.m_pblk !=3D ext4_es_pblock(es)) { pr_warn("ES insert assertion failed for " - "inode: %" PRIino "u m_pblk %llu !=3D " + "inode: %llu m_pblk %llu !=3D " "es_pblk %llu\n", inode->i_ino, map.m_pblk, ext4_es_pblock(es)); @@ -809,7 +809,7 @@ static void ext4_es_insert_extent_ind_check(struct inod= e *inode, } } else if (retval =3D=3D 0) { if (ext4_es_is_written(es)) { - pr_warn("ES insert assertion failed for inode: %" PRIino "u " + pr_warn("ES insert assertion failed for inode: %llu " "We can't find the block but we want to add " "a written extent [%d/%d/%llu/%x]\n", inode->i_ino, es->es_lblk, es->es_len, @@ -919,7 +919,7 @@ void ext4_es_insert_extent(struct inode *inode, ext4_lb= lk_t lblk, if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) return; =20 - es_debug("add [%u/%u) %llu %x %d to extent status tree of inode %" PRIino= "u\n", + es_debug("add [%u/%u) %llu %x %d to extent status tree of inode %llu\n", lblk, len, pblk, status, delalloc_reserve_used, inode->i_ino); =20 if (!len) @@ -1631,7 +1631,7 @@ void ext4_es_remove_extent(struct inode *inode, ext4_= lblk_t lblk, if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) return; =20 - es_debug("remove [%u/%u) from extent status tree of inode %" PRIino "u\n", + es_debug("remove [%u/%u) from extent status tree of inode %llu\n", lblk, len, inode->i_ino); =20 if (!len) @@ -1821,7 +1821,7 @@ int ext4_seq_es_shrinker_info_show(struct seq_file *s= eq, void *v) seq_printf(seq, " %lu shrunk objects\n", es_stats->es_stats_shrunk); if (inode_cnt) seq_printf(seq, - "maximum:\n %" PRIino "u inode (%u objects, %u reclaimable)\n" + "maximum:\n %llu inode (%u objects, %u reclaimable)\n" " %llu us max scan time\n", max->vfs_inode.i_ino, max->i_es_all_nr, max->i_es_shk_nr, div_u64(es_stats->es_stats_max_scan_time, 1000)); @@ -1998,7 +1998,7 @@ static void ext4_print_pending_tree(struct inode *ino= de) struct rb_node *node; struct pending_reservation *pr; =20 - printk(KERN_DEBUG "pending reservations for inode %" PRIino "u:", inode->= i_ino); + printk(KERN_DEBUG "pending reservations for inode %llu:", inode->i_ino); tree =3D &EXT4_I(inode)->i_pending_tree; node =3D rb_first(&tree->root); while (node) { @@ -2214,7 +2214,7 @@ void ext4_es_insert_delayed_extent(struct inode *inod= e, ext4_lblk_t lblk, if (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY) return; =20 - es_debug("add [%u/%u) delayed to extent status tree of inode %" PRIino "u= \n", + es_debug("add [%u/%u) delayed to extent status tree of inode %llu\n", lblk, len, inode->i_ino); if (!len) return; diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c index 8c6512d4ebcbd377186e4ce1ad5811b626d095db..379fb66dedbcd1c87b960cfe878= 6601700f797f3 100644 --- a/fs/ext4/fast_commit.c +++ b/fs/ext4/fast_commit.c @@ -616,7 +616,7 @@ static int __track_range(handle_t *handle, struct inode= *inode, void *arg, (struct __track_range_args *)arg; =20 if (inode->i_ino < EXT4_FIRST_INO(inode->i_sb)) { - ext4_debug("Special inode %" PRIino "u being modified\n", inode->i_ino); + ext4_debug("Special inode %llu being modified\n", inode->i_ino); return -ECANCELED; } =20 @@ -914,7 +914,7 @@ static int ext4_fc_write_inode_data(struct inode *inode= , u32 *crc) spin_unlock(&ei->i_fc_lock); =20 cur_lblk_off =3D old_blk_size; - ext4_debug("will try writing %d to %d for inode %" PRIino "u\n", + ext4_debug("will try writing %d to %d for inode %llu\n", cur_lblk_off, new_blk_size, inode->i_ino); =20 while (cur_lblk_off <=3D new_blk_size) { @@ -1792,7 +1792,7 @@ static int ext4_fc_replay_add_range(struct super_bloc= k *sb, =20 cur =3D start; remaining =3D len; - ext4_debug("ADD_RANGE, lblk %d, pblk %lld, len %d, unwritten %d, inode %"= PRIino "u\n", + ext4_debug("ADD_RANGE, lblk %d, pblk %lld, len %d, unwritten %d, inode %l= lu\n", start, start_pblk, len, ext4_ext_is_unwritten(ex), inode->i_ino); =20 @@ -1903,7 +1903,7 @@ ext4_fc_replay_del_range(struct super_block *sb, if (ret) goto out; =20 - ext4_debug("DEL_RANGE, inode %" PRIino "u, lblk %d, len %d\n", + ext4_debug("DEL_RANGE, inode %llu, lblk %d, len %d\n", inode->i_ino, le32_to_cpu(lrange.fc_lblk), le32_to_cpu(lrange.fc_len)); while (remaining > 0) { diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 35899f04a995b2b8b0fad275ad1920467701f54b..628a74b2bbe6232eabbf2562ffd= 0e350ea37446e 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -253,13 +253,13 @@ void ext4_free_inode(handle_t *handle, struct inode *= inode) return; } if (icount_read(inode) > 1) { - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%" PRIino "u: count=3D%d", + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: count=3D%d", __func__, __LINE__, inode->i_ino, icount_read(inode)); return; } if (inode->i_nlink) { - ext4_msg(sb, KERN_ERR, "%s:%d: inode #%" PRIino "u: nlink=3D%d\n", + ext4_msg(sb, KERN_ERR, "%s:%d: inode #%llu: nlink=3D%d\n", __func__, __LINE__, inode->i_ino, inode->i_nlink); return; } @@ -1275,7 +1275,7 @@ struct inode *__ext4_new_inode(struct mnt_idmap *idma= p, * twice. */ err =3D -EIO; - ext4_error(sb, "failed to insert inode %" PRIino "u: doubly allocated?", + ext4_error(sb, "failed to insert inode %llu: doubly allocated?", inode->i_ino); ext4_mark_group_bitmap_corrupted(sb, group, EXT4_GROUP_INFO_IBITMAP_CORRUPT); @@ -1344,7 +1344,7 @@ struct inode *__ext4_new_inode(struct mnt_idmap *idma= p, goto fail_free_drop; } =20 - ext4_debug("allocating inode %" PRIino "u\n", inode->i_ino); + ext4_debug("allocating inode %llu\n", inode->i_ino); trace_ext4_allocate_inode(inode, dir, mode); brelse(inode_bitmap_bh); return ret; diff --git a/fs/ext4/indirect.c b/fs/ext4/indirect.c index ba53698cef951676f409203fbf76439510a39dbc..5aec759eed7055dbe954c25da01= 81ebd04bb0be3 100644 --- a/fs/ext4/indirect.c +++ b/fs/ext4/indirect.c @@ -102,7 +102,7 @@ static int ext4_block_to_path(struct inode *inode, offsets[n++] =3D i_block & (ptrs - 1); final =3D ptrs; } else { - ext4_warning(inode->i_sb, "block %lu > max in inode %" PRIino "u", + ext4_warning(inode->i_sb, "block %lu > max in inode %llu", i_block + direct_blocks + indirect_blocks + double_blocks, inode->i_ino); } diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index fbdad8395f92ef5683a7bd65d683650a0ec04bc3..f846fcb7db2442149776fa2ba45= ddc5e0b71245e 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -119,7 +119,7 @@ int ext4_get_max_inline_size(struct inode *inode) error =3D ext4_get_inode_loc(inode, &iloc); if (error) { ext4_error_inode_err(inode, __func__, __LINE__, 0, -error, - "can't get inode location %" PRIino "u", + "can't get inode location %llu", inode->i_ino); return 0; } @@ -512,7 +512,7 @@ static int ext4_read_inline_folio(struct inode *inode, = struct folio *folio) BUG_ON(folio->index); =20 if (!EXT4_I(inode)->i_inline_off) { - ext4_warning(inode->i_sb, "inode %" PRIino "u doesn't have inline data.", + ext4_warning(inode->i_sb, "inode %llu doesn't have inline data.", inode->i_ino); goto out; } @@ -934,7 +934,7 @@ void ext4_show_inline_dir(struct inode *dir, struct buf= fer_head *bh, struct ext4_dir_entry_2 *de =3D inline_start; void *dlimit =3D inline_start + inline_size; =20 - trace_printk("inode %" PRIino "u\n", dir->i_ino); + trace_printk("inode %llu\n", dir->i_ino); offset =3D 0; while ((void *)de < dlimit) { de_len =3D ext4_rec_len_from_disk(de->rec_len, inline_size); @@ -1071,7 +1071,7 @@ static void ext4_restore_inline_data(handle_t *handle= , struct inode *inode, ret =3D ext4_create_inline_data(handle, inode, inline_size); if (ret) { ext4_msg(inode->i_sb, KERN_EMERG, - "error restoring inline_data for inode -- potential data loss! (inode %= " PRIino "u, error %d)", + "error restoring inline_data for inode -- potential data loss! (inode %= llu, error %d)", inode->i_ino, ret); return; } @@ -1740,7 +1740,7 @@ bool empty_inline_dir(struct inode *dir, int *has_inl= ine_data) err =3D ext4_get_inode_loc(dir, &iloc); if (err) { EXT4_ERROR_INODE_ERR(dir, -err, - "error %d getting inode %" PRIino "u block", + "error %d getting inode %llu block", err, dir->i_ino); return false; } @@ -1755,7 +1755,7 @@ bool empty_inline_dir(struct inode *dir, int *has_inl= ine_data) de =3D (struct ext4_dir_entry_2 *)ext4_raw_inode(&iloc)->i_block; if (!le32_to_cpu(de->inode)) { ext4_warning(dir->i_sb, - "bad inline directory (dir #%" PRIino "u) - no `..'", + "bad inline directory (dir #%llu) - no `..'", dir->i_ino); goto out; } @@ -1769,7 +1769,7 @@ bool empty_inline_dir(struct inode *dir, int *has_inl= ine_data) iloc.bh, inline_pos, inline_size, offset)) { ext4_warning(dir->i_sb, - "bad inline directory (dir #%" PRIino "u) - " + "bad inline directory (dir #%llu) - " "inode %u, rec_len %u, name_len %d" "inline size %d", dir->i_ino, le32_to_cpu(de->inode), diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 1d694672c851dd255f905de3d6260b24295ce30f..d50f31124a784ba6eeb916f9a2f= 62ec840aee52e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -262,7 +262,7 @@ void ext4_evict_inode(struct inode *inode) err =3D ext4_truncate(inode); if (err) { ext4_error_err(inode->i_sb, -err, - "couldn't truncate inode %" PRIino "u (err %d)", + "couldn't truncate inode %llu (err %d)", inode->i_ino, err); goto stop_handle; } @@ -342,7 +342,7 @@ void ext4_da_update_reserve_space(struct inode *inode, spin_lock(&ei->i_block_reservation_lock); trace_ext4_da_update_reserve_space(inode, used, quota_claim); if (unlikely(used > ei->i_reserved_data_blocks)) { - ext4_warning(inode->i_sb, "%s: ino %" PRIino "u, used %d " + ext4_warning(inode->i_sb, "%s: ino %llu, used %d " "with only %d reserved data blocks", __func__, inode->i_ino, used, ei->i_reserved_data_blocks); @@ -475,7 +475,7 @@ static void ext4_map_blocks_es_recheck(handle_t *handle, if (es_map->m_lblk !=3D map->m_lblk || es_map->m_flags !=3D map->m_flags || es_map->m_pblk !=3D map->m_pblk) { - printk("ES cache assertion failed for inode: %" PRIino "u " + printk("ES cache assertion failed for inode: %llu " "es_cached ex [%d/%d/%llu/%x] !=3D " "found ex [%d/%d/%llu/%x] retval %d flags %x\n", inode->i_ino, es_map->m_lblk, es_map->m_len, @@ -515,7 +515,7 @@ static int ext4_map_query_blocks_next_in_leaf(handle_t = *handle, if (unlikely(retval !=3D map2.m_len)) { ext4_warning(inode->i_sb, "ES len assertion failed for inode " - "%" PRIino "u: retval %d !=3D map->m_len %d", + "%llu: retval %d !=3D map->m_len %d", inode->i_ino, retval, map2.m_len); WARN_ON(1); } @@ -563,7 +563,7 @@ int ext4_map_query_blocks(handle_t *handle, struct inod= e *inode, if (unlikely(retval !=3D map->m_len)) { ext4_warning(inode->i_sb, "ES len assertion failed for inode " - "%" PRIino "u: retval %d !=3D map->m_len %d", + "%llu: retval %d !=3D map->m_len %d", inode->i_ino, retval, map->m_len); WARN_ON(1); } @@ -630,7 +630,7 @@ int ext4_map_create_blocks(handle_t *handle, struct ino= de *inode, =20 if (unlikely(retval !=3D map->m_len)) { ext4_warning(inode->i_sb, - "ES len assertion failed for inode %" PRIino "u: " + "ES len assertion failed for inode %llu: " "retval %d !=3D map->m_len %d", inode->i_ino, retval, map->m_len); WARN_ON(1); @@ -937,7 +937,7 @@ int ext4_get_block_unwritten(struct inode *inode, secto= r_t iblock, { int ret =3D 0; =20 - ext4_debug("ext4_get_block_unwritten: inode %" PRIino "u, create flag %d\= n", + ext4_debug("ext4_get_block_unwritten: inode %llu, create flag %d\n", inode->i_ino, create); ret =3D _ext4_get_block(inode, iblock, bh_result, EXT4_GET_BLOCKS_CREATE_UNWRIT_EXT); @@ -1659,7 +1659,7 @@ void ext4_da_release_space(struct inode *inode, int t= o_free) * harmless to return without any action. */ ext4_warning(inode->i_sb, "ext4_da_release_space: " - "ino %" PRIino "u, to_free %d with only %d reserved " + "ino %llu, to_free %d with only %d reserved " "data blocks", inode->i_ino, to_free, ei->i_reserved_data_blocks); WARN_ON(1); @@ -2491,7 +2491,7 @@ static int mpage_map_and_submit_extent(handle_t *hand= le, } ext4_msg(sb, KERN_CRIT, "Delayed block allocation failed for " - "inode %" PRIino "u at logical offset %llu with" + "inode %llu at logical offset %llu with" " max blocks %u with error %d", inode->i_ino, (unsigned long long)map->m_lblk, @@ -2535,7 +2535,7 @@ static int mpage_map_and_submit_extent(handle_t *hand= le, err2 =3D ext4_mark_inode_dirty(handle, inode); if (err2) { ext4_error_err(inode->i_sb, -err2, - "Failed to mark inode %" PRIino "u dirty", + "Failed to mark inode %llu dirty", inode->i_ino); } if (!err) @@ -2909,7 +2909,7 @@ static int ext4_do_writepages(struct mpage_da_data *m= pd) if (IS_ERR(handle)) { ret =3D PTR_ERR(handle); ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: " - "%ld pages, ino %" PRIino "u; err %d", __func__, + "%ld pages, ino %llu; err %d", __func__, wbc->nr_to_write, inode->i_ino, ret); /* Release allocated io_end */ ext4_put_io_end(mpd->io_submit.io_end); diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index dcd71f84d9a80f464349e75e4dbbf62757dfeb03..1d0c3d4bdf472715a7070b184fd= c7d9bf5885950 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -477,7 +477,7 @@ static long swap_inode_boot_loader(struct super_block *= sb, if (err < 0) { /* No need to update quota information. */ ext4_warning(inode->i_sb, - "couldn't mark inode #%" PRIino "u dirty (err %d)", + "couldn't mark inode #%llu dirty (err %d)", inode->i_ino, err); /* Revert all changes: */ swap_inode_data(inode, inode_bl); @@ -493,7 +493,7 @@ static long swap_inode_boot_loader(struct super_block *= sb, if (err < 0) { /* No need to update quota information. */ ext4_warning(inode_bl->i_sb, - "couldn't mark inode #%" PRIino "u dirty (err %d)", + "couldn't mark inode #%llu dirty (err %d)", inode_bl->i_ino, err); goto revert; } diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index f597135a669a53c05a5fd8f48c02a43ef4f1cdb0..9e8041ac56239e64326343b0ade= f062611189d6a 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -5628,7 +5628,7 @@ void ext4_discard_preallocations(struct inode *inode) if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) return; =20 - mb_debug(sb, "discard preallocation for inode %" PRIino "u\n", + mb_debug(sb, "discard preallocation for inode %llu\n", inode->i_ino); trace_ext4_discard_preallocations(inode, atomic_read(&ei->i_prealloc_active)); diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 89df4e0591055ec3c365bd51995a523e5b4d83d1..ab17c1d3a7b51198c2332e8a1dd= 44f7a1bff40cf 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -420,21 +420,21 @@ static int mext_check_validity(struct inode *orig_ino= de, =20 /* origin and donor should be different inodes */ if (orig_inode =3D=3D donor_inode) { - ext4_debug("ext4 move extent: The argument files should not be same inod= e [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: The argument files should not be same inod= e [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } =20 /* origin and donor should belone to the same filesystem */ if (orig_inode->i_sb !=3D donor_inode->i_sb) { - ext4_debug("ext4 move extent: The argument files should be in same FS [i= no:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: The argument files should be in same FS [i= no:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } =20 /* Regular file check */ if (!S_ISREG(orig_inode->i_mode) || !S_ISREG(donor_inode->i_mode)) { - ext4_debug("ext4 move extent: The argument files should be regular file = [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: The argument files should be regular file = [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } @@ -477,26 +477,26 @@ static int mext_check_validity(struct inode *orig_ino= de, } =20 if (donor_inode->i_mode & (S_ISUID|S_ISGID)) { - ext4_debug("ext4 move extent: suid or sgid is set to donor file [ino:ori= g %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: suid or sgid is set to donor file [ino:ori= g %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } =20 if (IS_IMMUTABLE(donor_inode) || IS_APPEND(donor_inode)) { - ext4_debug("ext4 move extent: donor should not be immutable or append fi= le [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: donor should not be immutable or append fi= le [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EPERM; } =20 /* Ext4 move extent does not support swap files */ if (IS_SWAPFILE(orig_inode) || IS_SWAPFILE(donor_inode)) { - ext4_debug("ext4 move extent: The argument files should not be swap file= s [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: The argument files should not be swap file= s [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -ETXTBSY; } =20 if (ext4_is_quota_file(orig_inode) || ext4_is_quota_file(donor_inode)) { - ext4_debug("ext4 move extent: The argument files should not be quota fil= es [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: The argument files should not be quota fil= es [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EOPNOTSUPP; } @@ -523,7 +523,7 @@ static int mext_check_adjust_range(struct inode *orig_i= node, /* Start offset should be same */ if ((orig_start & ~(PAGE_MASK >> orig_inode->i_blkbits)) !=3D (donor_start & ~(PAGE_MASK >> orig_inode->i_blkbits))) { - ext4_debug("ext4 move extent: orig and donor's start offsets are not ali= gned [ino:orig %" PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: orig and donor's start offsets are not ali= gned [ino:orig %llu, donor %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } @@ -533,7 +533,7 @@ static int mext_check_adjust_range(struct inode *orig_i= node, (*len > EXT_MAX_BLOCKS) || (donor_start + *len >=3D EXT_MAX_BLOCKS) || (orig_start + *len >=3D EXT_MAX_BLOCKS)) { - ext4_debug("ext4 move extent: Can't handle over [%u] blocks [ino:orig %"= PRIino "u, donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: Can't handle over [%u] blocks [ino:orig %l= lu, donor %llu]\n", EXT_MAX_BLOCKS, orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; @@ -550,7 +550,7 @@ static int mext_check_adjust_range(struct inode *orig_i= node, else if (donor_eof < donor_start + *len - 1) *len =3D donor_eof - donor_start; if (!*len) { - ext4_debug("ext4 move extent: len should not be 0 [ino:orig %" PRIino "u= , donor %" PRIino "u]\n", + ext4_debug("ext4 move extent: len should not be 0 [ino:orig %llu, donor = %llu]\n", orig_inode->i_ino, donor_inode->i_ino); return -EINVAL; } diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index e659897787de1cc7e587af191908408162511db4..503dc9ffd61465686bb1a253bfe= ee41c0e9acd59 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -144,7 +144,7 @@ static struct buffer_head *__ext4_read_dirblock(struct = inode *inode, bh =3D ext4_bread(NULL, inode, block, 0); if (IS_ERR(bh)) { __ext4_warning(inode->i_sb, func, line, - "inode #%" PRIino "u: lblock %lu: comm %s: " + "inode #%llu: lblock %lu: comm %s: " "error %ld reading directory block", inode->i_ino, (unsigned long)block, current->comm, PTR_ERR(bh)); @@ -841,7 +841,7 @@ dx_probe(struct ext4_filename *fname, struct inode *dir, indirect =3D root->info.indirect_levels; if (indirect >=3D ext4_dir_htree_level(dir->i_sb)) { ext4_warning(dir->i_sb, - "Directory (ino: %" PRIino "u) htree depth %#06x exceed" + "Directory (ino: %llu) htree depth %#06x exceed" "supported value", dir->i_ino, ext4_dir_htree_level(dir->i_sb)); if (ext4_dir_htree_level(dir->i_sb) < EXT4_HTREE_LEVEL) { @@ -1793,7 +1793,7 @@ static struct dentry *ext4_lookup(struct inode *dir, = struct dentry *dentry, unsi (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)) && !fscrypt_has_permitted_context(dir, inode)) { ext4_warning(inode->i_sb, - "Inconsistent encryption contexts: %" PRIino "u/%" PRIino "u", + "Inconsistent encryption contexts: %llu/%llu", dir->i_ino, inode->i_ino); iput(inode); return ERR_PTR(-EPERM); @@ -2227,7 +2227,7 @@ static int make_indexed_dir(handle_t *handle, struct = ext4_filename *fname, csum_size =3D sizeof(struct ext4_dir_entry_tail); =20 blocksize =3D dir->i_sb->s_blocksize; - dxtrace(printk(KERN_DEBUG "Creating index: inode %" PRIino "u\n", dir->i_= ino)); + dxtrace(printk(KERN_DEBUG "Creating index: inode %llu\n", dir->i_ino)); BUFFER_TRACE(bh, "get_write_access"); retval =3D ext4_journal_get_write_access(handle, dir->i_sb, bh, EXT4_JTR_NONE); @@ -2523,7 +2523,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct= ext4_filename *fname, restart =3D 1; } if (add_level && levels =3D=3D ext4_dir_htree_level(sb)) { - ext4_warning(sb, "Directory (ino: %" PRIino "u) index full, " + ext4_warning(sb, "Directory (ino: %llu) index full, " "reach max htree level :%d", dir->i_ino, levels); if (ext4_dir_htree_level(sb) < EXT4_HTREE_LEVEL) { diff --git a/fs/ext4/orphan.c b/fs/ext4/orphan.c index 7082af298f1c648fba8a1aa1141b3c76f4c15e22..64ea4762423386db79e739a2448= bf70c12415ef8 100644 --- a/fs/ext4/orphan.c +++ b/fs/ext4/orphan.c @@ -179,8 +179,8 @@ int ext4_orphan_add(handle_t *handle, struct inode *ino= de) } else brelse(iloc.bh); =20 - ext4_debug("superblock will point to %" PRIino "u\n", inode->i_ino); - ext4_debug("orphan inode %" PRIino "u will point to %d\n", + ext4_debug("superblock will point to %llu\n", inode->i_ino); + ext4_debug("orphan inode %llu will point to %d\n", inode->i_ino, NEXT_ORPHAN(inode)); out: ext4_std_error(sb, err); @@ -249,7 +249,7 @@ int ext4_orphan_del(handle_t *handle, struct inode *ino= de) } =20 mutex_lock(&sbi->s_orphan_lock); - ext4_debug("remove inode %" PRIino "u from orphan list\n", inode->i_ino); + ext4_debug("remove inode %llu from orphan list\n", inode->i_ino); =20 prev =3D ei->i_orphan.prev; list_del_init(&ei->i_orphan); @@ -284,7 +284,7 @@ int ext4_orphan_del(handle_t *handle, struct inode *ino= de) struct inode *i_prev =3D &list_entry(prev, struct ext4_inode_info, i_orphan)->vfs_inode; =20 - ext4_debug("orphan inode %" PRIino "u will point to %u\n", + ext4_debug("orphan inode %llu will point to %u\n", i_prev->i_ino, ino_next); err =3D ext4_reserve_inode_write(handle, i_prev, &iloc2); if (err) { @@ -328,9 +328,9 @@ static void ext4_process_orphan(struct inode *inode, if (inode->i_nlink) { if (test_opt(sb, DEBUG)) ext4_msg(sb, KERN_DEBUG, - "%s: truncating inode %" PRIino "u to %lld bytes", + "%s: truncating inode %llu to %lld bytes", __func__, inode->i_ino, inode->i_size); - ext4_debug("truncating inode %" PRIino "u to %lld bytes\n", + ext4_debug("truncating inode %llu to %lld bytes\n", inode->i_ino, inode->i_size); inode_lock(inode); truncate_inode_pages(inode->i_mapping, inode->i_size); @@ -349,9 +349,9 @@ static void ext4_process_orphan(struct inode *inode, } else { if (test_opt(sb, DEBUG)) ext4_msg(sb, KERN_DEBUG, - "%s: deleting unreferenced inode %" PRIino "u", + "%s: deleting unreferenced inode %llu", __func__, inode->i_ino); - ext4_debug("deleting unreferenced inode %" PRIino "u\n", + ext4_debug("deleting unreferenced inode %llu\n", inode->i_ino); (*nr_orphans)++; } diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 09046cfb58dd52a2fe682560fa09e39e902dd0a2..86011275ad83668d591488fad90= 959ec04625c55 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -180,7 +180,7 @@ static int ext4_end_io_end(ext4_io_end_t *io_end) struct super_block *sb =3D inode->i_sb; int ret =3D 0; =20 - ext4_debug("ext4_end_io_nolock: io_end 0x%p from inode %" PRIino "u,list-= >next 0x%p," + ext4_debug("ext4_end_io_nolock: io_end 0x%p from inode %llu,list->next 0x= %p," "list->prev 0x%p\n", io_end, inode->i_ino, io_end->list.next, io_end->list.prev); =20 @@ -204,7 +204,7 @@ static int ext4_end_io_end(ext4_io_end_t *io_end) ext4_msg(sb, KERN_EMERG, "failed to convert unwritten extents to written " "extents -- potential data loss! " - "(inode %" PRIino "u, error %d)", inode->i_ino, ret); + "(inode %llu, error %d)", inode->i_ino, ret); } =20 ext4_clear_io_unwritten_flag(io_end); @@ -221,7 +221,7 @@ static void dump_completed_IO(struct inode *inode, stru= ct list_head *head) if (list_empty(head)) return; =20 - ext4_debug("Dump inode %" PRIino "u completed io list\n", inode->i_ino); + ext4_debug("Dump inode %llu completed io list\n", inode->i_ino); list_for_each_entry(io_end, head, list) { cur =3D &io_end->list; before =3D cur->prev; @@ -229,7 +229,7 @@ static void dump_completed_IO(struct inode *inode, stru= ct list_head *head) after =3D cur->next; io_end1 =3D container_of(after, ext4_io_end_t, list); =20 - ext4_debug("io 0x%p from inode %" PRIino "u,prev 0x%p,next 0x%p\n", + ext4_debug("io 0x%p from inode %llu,prev 0x%p,next 0x%p\n", io_end, inode->i_ino, io_end0, io_end1); } #endif @@ -366,7 +366,7 @@ static void ext4_end_bio(struct bio *bio) if (bio->bi_status) { struct inode *inode =3D io_end->inode; =20 - ext4_warning(inode->i_sb, "I/O error %d writing to inode %" PRIino "u " + ext4_warning(inode->i_sb, "I/O error %d writing to inode %llu " "starting block %llu)", bio->bi_status, inode->i_ino, (unsigned long long) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 17463e9cc893cf3158a5a75d64d453956373f149..781c083000c2ea2232846b0827c= 7d4799d87bd5d 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -848,12 +848,12 @@ void __ext4_error_inode(struct inode *inode, const ch= ar *function, vaf.va =3D &args; if (block) printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " - "inode #%" PRIino "u: block %llu: comm %s: %pV\n", + "inode #%llu: block %llu: comm %s: %pV\n", inode->i_sb->s_id, function, line, inode->i_ino, block, current->comm, &vaf); else printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " - "inode #%" PRIino "u: comm %s: %pV\n", + "inode #%llu: comm %s: %pV\n", inode->i_sb->s_id, function, line, inode->i_ino, current->comm, &vaf); va_end(args); @@ -888,13 +888,13 @@ void __ext4_error_file(struct file *file, const char = *function, vaf.va =3D &args; if (block) printk(KERN_CRIT - "EXT4-fs error (device %s): %s:%d: inode #%" PRIino "u: " + "EXT4-fs error (device %s): %s:%d: inode #%llu: " "block %llu: comm %s: path %s: %pV\n", inode->i_sb->s_id, function, line, inode->i_ino, block, current->comm, path, &vaf); else printk(KERN_CRIT - "EXT4-fs error (device %s): %s:%d: inode #%" PRIino "u: " + "EXT4-fs error (device %s): %s:%d: inode #%llu: " "comm %s: path %s: %pV\n", inode->i_sb->s_id, function, line, inode->i_ino, current->comm, path, &vaf); @@ -1035,14 +1035,14 @@ void __ext4_warning_inode(const struct inode *inode= , const char *function, vaf.fmt =3D fmt; vaf.va =3D &args; printk(KERN_WARNING "EXT4-fs warning (device %s): %s:%d: " - "inode #%" PRIino "u: comm %s: %pV\n", inode->i_sb->s_id, + "inode #%llu: comm %s: %pV\n", inode->i_sb->s_id, function, line, inode->i_ino, current->comm, &vaf); va_end(args); } =20 void __ext4_grp_locked_error(const char *function, unsigned int line, struct super_block *sb, ext4_group_t grp, - kino_t ino, ext4_fsblk_t block, + u64 ino, ext4_fsblk_t block, const char *fmt, ...) __releases(bitlock) __acquires(bitlock) @@ -1061,7 +1061,7 @@ __acquires(bitlock) printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u, ", sb->s_id, function, line, grp); if (ino) - printk(KERN_CONT "inode %" PRIino "u: ", ino); + printk(KERN_CONT "inode %llu: ", ino); if (block) printk(KERN_CONT "block %llu:", (unsigned long long) block); @@ -1170,7 +1170,7 @@ static void dump_orphan_list(struct super_block *sb, = struct ext4_sb_info *sbi) list_for_each(l, &sbi->s_orphan) { struct inode *inode =3D orphan_list_entry(l); printk(KERN_ERR " " - "inode %s:%" PRIino "u at %p: mode %o, nlink %d, next %d\n", + "inode %s:%llu at %p: mode %o, nlink %d, next %d\n", inode->i_sb->s_id, inode->i_ino, inode, inode->i_mode, inode->i_nlink, NEXT_ORPHAN(inode)); @@ -1446,7 +1446,7 @@ static void ext4_free_in_core_inode(struct inode *ino= de) { fscrypt_free_inode(inode); if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { - pr_warn("%s: inode %" PRIino "u still in fc list", + pr_warn("%s: inode %llu still in fc list", __func__, inode->i_ino); } kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); @@ -1456,7 +1456,7 @@ static void ext4_destroy_inode(struct inode *inode) { if (ext4_inode_orphan_tracked(inode)) { ext4_msg(inode->i_sb, KERN_ERR, - "Inode %" PRIino "u (%p): inode tracked as orphan!", + "Inode %llu (%p): inode tracked as orphan!", inode->i_ino, EXT4_I(inode)); print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 16, 4, EXT4_I(inode), sizeof(struct ext4_inode_info), @@ -1467,7 +1467,7 @@ static void ext4_destroy_inode(struct inode *inode) if (!(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_ERROR_FS) && WARN_ON_ONCE(EXT4_I(inode)->i_reserved_data_blocks)) ext4_msg(inode->i_sb, KERN_ERR, - "Inode %" PRIino "u (%p): i_reserved_data_blocks (%u) not cleared!", + "Inode %llu (%p): i_reserved_data_blocks (%u) not cleared!", inode->i_ino, EXT4_I(inode), EXT4_I(inode)->i_reserved_data_blocks); } diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 13d8f5c80b3128e3cf1044e57fd667f47f90ad6d..60aec4712f7fc52a8cc8ce31e4d= 5bd740a193903 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -64,7 +64,7 @@ =20 #ifdef EXT4_XATTR_DEBUG # define ea_idebug(inode, fmt, ...) \ - printk(KERN_DEBUG "inode %s:%" PRIino "u: " fmt "\n", \ + printk(KERN_DEBUG "inode %s:%llu: " fmt "\n", \ inode->i_sb->s_id, inode->i_ino, ##__VA_ARGS__) # define ea_bdebug(bh, fmt, ...) \ printk(KERN_DEBUG "block %pg:%lu: " fmt "\n", \ @@ -1035,7 +1035,7 @@ static int ext4_xattr_inode_update_ref(handle_t *hand= le, struct inode *ea_inode, ref_count =3D ext4_xattr_inode_get_ref(ea_inode); if ((ref_count =3D=3D 0 && ref_change < 0) || (ref_count =3D=3D U64_MAX &= & ref_change > 0)) { ext4_error_inode(ea_inode, __func__, __LINE__, 0, - "EA inode %" PRIino "u ref wraparound: ref_count=3D%lld ref_change=3D%d= ", + "EA inode %llu ref wraparound: ref_count=3D%lld ref_change=3D%d", ea_inode->i_ino, ref_count, ref_change); brelse(iloc.bh); ret =3D -EFSCORRUPTED; @@ -1046,7 +1046,7 @@ static int ext4_xattr_inode_update_ref(handle_t *hand= le, struct inode *ea_inode, =20 if (ref_change > 0) { if (ref_count =3D=3D 1) { - WARN_ONCE(ea_inode->i_nlink, "EA inode %" PRIino "u i_nlink=3D%u", + WARN_ONCE(ea_inode->i_nlink, "EA inode %llu i_nlink=3D%u", ea_inode->i_ino, ea_inode->i_nlink); =20 set_nlink(ea_inode, 1); @@ -1055,7 +1055,7 @@ static int ext4_xattr_inode_update_ref(handle_t *hand= le, struct inode *ea_inode, } else { if (ref_count =3D=3D 0) { WARN_ONCE(ea_inode->i_nlink !=3D 1, - "EA inode %" PRIino "u i_nlink=3D%u", + "EA inode %llu i_nlink=3D%u", ea_inode->i_ino, ea_inode->i_nlink); =20 clear_nlink(ea_inode); @@ -2854,7 +2854,7 @@ int ext4_expand_extra_isize_ea(struct inode *inode, i= nt new_extra_isize, =20 cleanup: if (error && (mnt_count !=3D le16_to_cpu(sbi->s_es->s_mnt_count))) { - ext4_warning(inode->i_sb, "Unable to expand inode %" PRIino "u. Delete s= ome EAs or run e2fsck.", + ext4_warning(inode->i_sb, "Unable to expand inode %llu. Delete some EAs = or run e2fsck.", inode->i_ino); mnt_count =3D le16_to_cpu(sbi->s_es->s_mnt_count); } --=20 2.53.0