Commit 0a05226
Christoph Hellwig
nvme: refactor nvme_validate_ns
Move the logic to revalidate the block_device size or remove the
namespace from the caller into nvme_validate_ns. This removes
the return value and thus the status code translation. Additionally
it also catches non-permanent errors from nvme_update_ns_info using
the existing logic.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>1 parent b2dc748 commit 0a05226
1 file changed
Lines changed: 17 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3899 | 3899 | | |
3900 | 3900 | | |
3901 | 3901 | | |
| 3902 | + | |
3902 | 3903 | | |
3903 | 3904 | | |
3904 | 3905 | | |
| |||
3936 | 3937 | | |
3937 | 3938 | | |
3938 | 3939 | | |
3939 | | - | |
| 3940 | + | |
3940 | 3941 | | |
3941 | 3942 | | |
3942 | 3943 | | |
3943 | | - | |
| 3944 | + | |
3944 | 3945 | | |
3945 | | - | |
3946 | | - | |
3947 | | - | |
3948 | | - | |
| 3946 | + | |
| 3947 | + | |
3949 | 3948 | | |
3950 | 3949 | | |
3951 | 3950 | | |
3952 | 3951 | | |
3953 | 3952 | | |
| 3953 | + | |
3954 | 3954 | | |
3955 | 3955 | | |
3956 | 3956 | | |
3957 | | - | |
3958 | | - | |
| 3957 | + | |
3959 | 3958 | | |
3960 | 3959 | | |
3961 | 3960 | | |
3962 | | - | |
| 3961 | + | |
| 3962 | + | |
3963 | 3963 | | |
3964 | 3964 | | |
3965 | 3965 | | |
3966 | | - | |
| 3966 | + | |
3967 | 3967 | | |
| 3968 | + | |
| 3969 | + | |
3968 | 3970 | | |
3969 | | - | |
3970 | | - | |
3971 | | - | |
3972 | | - | |
3973 | | - | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
3974 | 3975 | | |
3975 | 3976 | | |
3976 | 3977 | | |
3977 | 3978 | | |
3978 | 3979 | | |
3979 | 3980 | | |
3980 | | - | |
3981 | 3981 | | |
3982 | 3982 | | |
3983 | 3983 | | |
3984 | 3984 | | |
3985 | 3985 | | |
3986 | 3986 | | |
3987 | | - | |
3988 | | - | |
3989 | | - | |
3990 | | - | |
| 3987 | + | |
3991 | 3988 | | |
3992 | 3989 | | |
3993 | 3990 | | |
| |||
0 commit comments