Skip to content

Commit 0eb3085

Browse files
xiubliidryomov
authored andcommitted
ceph: print dentry offset in hex and fix xattr_version type
In the debug logs about the di->offset or ctx->pos it is in hex format, but some others are using the dec format. It is a little hard to read. For the xattr version, it is u64 type, using a shorter type may truncate it. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 9f8b72b commit 0eb3085

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/ceph/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ void __ceph_dentry_dir_lease_touch(struct ceph_dentry_info *di)
11861186
struct dentry *dn = di->dentry;
11871187
struct ceph_mds_client *mdsc;
11881188

1189-
dout("dentry_dir_lease_touch %p %p '%pd' (offset %lld)\n",
1189+
dout("dentry_dir_lease_touch %p %p '%pd' (offset 0x%llx)\n",
11901190
di, dn, dn, di->offset);
11911191

11921192
if (!list_empty(&di->lease_list)) {
@@ -1567,7 +1567,7 @@ static int ceph_d_revalidate(struct dentry *dentry, unsigned int flags)
15671567
inode = d_inode(dentry);
15681568
}
15691569

1570-
dout("d_revalidate %p '%pd' inode %p offset %lld\n", dentry,
1570+
dout("d_revalidate %p '%pd' inode %p offset 0x%llx\n", dentry,
15711571
dentry, inode, ceph_dentry(dentry)->offset);
15721572

15731573
/* always trust cached snapped dentries, snapdir dentry */

‎fs/ceph/xattr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static int __build_xattrs(struct inode *inode)
655655
u32 len;
656656
const char *name, *val;
657657
struct ceph_inode_info *ci = ceph_inode(inode);
658-
int xattr_version;
658+
u64 xattr_version;
659659
struct ceph_inode_xattr **xattrs = NULL;
660660
int err = 0;
661661
int i;

0 commit comments

Comments
 (0)