From: Wouter Verhelst Date: Mon, 12 Aug 2024 13:20:40 +0000 (+0200) Subject: nbd: nbd_bg_flags_show: add NBD_FLAG_ROTATIONAL X-Git-Tag: v6.12-rc1~204^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41372f5c9a866365e212809b3543ae8cb5b2542b;p=thirdparty%2Fkernel%2Flinux.git nbd: nbd_bg_flags_show: add NBD_FLAG_ROTATIONAL Also handle NBD_FLAG_ROTATIONAL in our debug helper function Signed-off-by: Wouter Verhelst Cc: Eric Blake Link: https://lore.kernel.org/r/20240812133032.115134-6-w@uter.be Signed-off-by: Jens Axboe --- diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index eee632b84994f..18b94d7c795ae 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1725,6 +1725,8 @@ static int nbd_dbg_flags_show(struct seq_file *s, void *unused) seq_puts(s, "NBD_FLAG_SEND_TRIM\n"); if (flags & NBD_FLAG_SEND_WRITE_ZEROES) seq_puts(s, "NBD_FLAG_SEND_WRITE_ZEROES\n"); + if (flags & NBD_FLAG_ROTATIONAL) + seq_puts(s, "NBD_FLAG_ROTATIONAL\n"); return 0; }