Unverified Commit 5da4151c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11190 fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed

parents d0e1969f 2cea936f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3953,6 +3953,9 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
		goto out;
	}

	log->page_mask = log->page_size - 1;
	log->page_bits = blksize_bits(log->page_size);

	/* If the file size has shrunk then we won't mount it. */
	if (l_size < le64_to_cpu(ra2->l_size)) {
		err = -EINVAL;