Skip to content

Commit ba8f2ce

Browse files
committed
checkstyle fixes
1 parent a4c9b06 commit ba8f2ce

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

include/os/linux/zfs/sys/zfs_znode_impl.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ extern "C" {
7373
#define zn_has_cached_data(zp) ((zp)->z_is_mapped)
7474
#define zn_rlimit_fsize(zp, uio) (0)
7575

76-
/* zhold() wraps igrab() on Linux, and igrab() may fail when the inode is in the process of being deleted. As zhold() must only be called when a ref already exists - so the inode cannot be mid-deletion - we VERIFY() this. */
76+
/*
77+
* zhold() wraps igrab() on Linux, and igrab() may fail when the
78+
* inode is in the process of being deleted. As zhold() must only be
79+
* called when a ref already exists - so the inode cannot be
80+
* mid-deletion - we VERIFY() this.
81+
*/
7782
#define zhold(zp) VERIFY3P(igrab(ZTOI((zp))), !=, NULL)
7883
#define zrele(zp) iput(ZTOI((zp)))
7984

module/os/linux/zfs/zfs_vfsops.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,10 @@ zfs_vget(struct super_block *sb, struct inode **ipp, fid_t *fidp)
17341734
VERIFY(zfsctl_root_lookup(*ipp, "snapshot", ipp,
17351735
0, kcred, NULL, NULL) == 0);
17361736
} else {
1737-
/* Must have an existing ref, so igrab() cannot return NULL */
1737+
/*
1738+
* Must have an existing ref, so igrab()
1739+
* cannot return NULL
1740+
*/
17381741
VERIFY3P(igrab(*ipp), !=, NULL);
17391742
}
17401743
ZFS_EXIT(zfsvfs);

0 commit comments

Comments
 (0)