From fdde7042c44eb7c68e6e01f4dbad9f8dd832fb93 Mon Sep 17 00:00:00 2001 From: Ryusuke Konishi Date: Tue, 11 Feb 2014 11:24:50 +0900 Subject: [PATCH] lssu: fix protection period option Fix a bug of nilfs_get_latest_usage() function which blocks the protection period specified with -p option from being passed to nilfs_assess_segment() function and results in incorrect output of live block counts. Signed-off-by: Ryusuke Konishi --- bin/lssu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lssu.c b/bin/lssu.c index a452d19..1873957 100644 --- a/bin/lssu.c +++ b/bin/lssu.c @@ -137,7 +137,7 @@ static ssize_t lssu_get_latest_usage(struct nilfs *nilfs, __u64 segnums[1]; int ret; - if (protcno == NILFS_CNO_MAX) { + if (protcno != NILFS_CNO_MAX) { params.flags |= NILFS_RECLAIM_PARAM_PROTCNO; params.protcno = protcno; }