Commit 800701e
fs/ntfs3: check for shutdown in fsync
[ Upstream commit 1b2ae19 ]
Ensure fsync() returns -EIO when the ntfs3 filesystem is in forced
shutdown, instead of silently succeeding via generic_file_fsync().
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit d5fb4e2c9bb01f65713dfd5f58be42176411fa56)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent a35f5bc commit 800701e
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
1378 | 1390 | | |
1379 | 1391 | | |
1380 | 1392 | | |
| |||
1397 | 1409 | | |
1398 | 1410 | | |
1399 | 1411 | | |
1400 | | - | |
| 1412 | + | |
1401 | 1413 | | |
1402 | 1414 | | |
1403 | 1415 | | |
| |||
0 commit comments