mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
nvmet: add helper to revalidate bdev and file ns
This patch adds a wrapper helper to indicate size change in the bdev & file-backed namespace when revalidating ns. This helper is needed in order to minimize code repetition in the next patch for configfs.c and existing admin-cmd.c. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Sagi Grimberg <sagi@grimbeg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
696ece7513
commit
463c5fabb8
3 changed files with 10 additions and 4 deletions
|
@ -486,10 +486,7 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req)
|
|||
if (!ns)
|
||||
goto done;
|
||||
|
||||
if (ns->bdev)
|
||||
nvmet_bdev_ns_revalidate(ns);
|
||||
else
|
||||
nvmet_file_ns_revalidate(ns);
|
||||
nvmet_ns_revalidate(ns);
|
||||
|
||||
/*
|
||||
* nuse = ncap = nsze isn't always true, but we have no way to find
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue