diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 5bc2a1cf73c35311013a3e97636f5366ee131a8e..c1725f20a9d1d4149ebb7b369caa9c47d951758e 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -1020,7 +1020,7 @@ int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno) struct dentry *dentry; int ret; - if (cno < 0 || cno > nilfs->ns_cno) + if (cno > nilfs->ns_cno) return false; if (cno >= nilfs_last_cno(nilfs))