Commit 2fef55d
fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed
If an NTFS file system is mounted to another system with different
PAGE_SIZE from the original system, log->page_size will change in
log_replay(), but log->page_{mask,bits} don't change correspondingly.
This will cause a panic because "u32 bytes = log->page_size - page_off"
will get a negative value in the later read_log_page().
Cc: [email protected]
Fixes: b46acd6 ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Konstantin Komarov <[email protected]>1 parent 5bfb91c commit 2fef55d
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3922 | 3922 | | |
3923 | 3923 | | |
3924 | 3924 | | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
3925 | 3928 | | |
3926 | 3929 | | |
3927 | 3930 | | |
| |||
0 commit comments