fs: thaw_bdev() should return EINVAL if bd_fsfreeze_count is 0
PATCH RESEND 1/1 fs: thaw_bdev() should return EINVAL if bd_fsfreeze_count is 0
Hi,
thaw_bdev() should return EINVAL if bd_fsfreeze_count is 0 at entering thaw_bdev() because it is expected that bd_fsfreeze_count is incremented by freeze_bdev().
Signed-off-by Masayoshi MIZUMA <[email protected]>
--- fs/block_dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/block_dev.c +1 -1
@@ -291,7 +291,7 @@ int thaw_bdev(struct block_device *bdev, struct super_block *sb) } out:mutex_unlock (&bdev->bd_fsfreeze_mutex); -return 0 ; +return error; }EXPORT_SYMBOL (thaw_bdev);
Signature · 4 lines
1.6.2.5 Thanks, Masayoshi