]> www.infradead.org Git - users/jedix/linux-maple.git/commit
exfat: fix missing shutdown check
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Thu, 6 Mar 2025 07:02:07 +0000 (15:02 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 27 Mar 2025 12:18:03 +0000 (21:18 +0900)
commit47e35366bc6fa3cf189a8305bce63992495f3efa
tree4c84dc4f89ed937ff09ce33bf420dd2235d6f6d7
parentb0522303f67255926b946aa66885a0104d1b2980
exfat: fix missing shutdown check

xfstests generic/730 test failed because after deleting the device
that still had dirty data, the file could still be read without
returning an error. The reason is the missing shutdown check in
->read_iter.

I also noticed that shutdown checks were missing from ->write_iter,
->splice_read, and ->mmap. This commit adds shutdown checks to all
of them.

Fixes: f761fcdd289d ("exfat: Implement sops->shutdown and ioctl")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/file.c