Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: filesystems: vfs: correct flag name

There is no flag REMAP_CAN_SHORTEN. Commit eca3654e3cc7 ("vfs: enable
remap callers that can handle short operations") that introduces this
text also introduces the flag REMAP_FILE_CAN_SHORTEN. Change the name
in the documentation accordingly.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Fixes: eca3654e3cc7 ("vfs: enable remap callers that can handle short operations")
Link: https://lore.kernel.org/r/1595789020-12941-1-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Julia Lawall and committed by
Jonathan Corbet
cb56ecae e9b2f15b

+1 -1
+1 -1
Documentation/filesystems/vfs.rst
··· 1116 1116 before any bytes were remapped. The remap_flags parameter 1117 1117 accepts REMAP_FILE_* flags. If REMAP_FILE_DEDUP is set then the 1118 1118 implementation must only remap if the requested file ranges have 1119 - identical contents. If REMAP_CAN_SHORTEN is set, the caller is 1119 + identical contents. If REMAP_FILE_CAN_SHORTEN is set, the caller is 1120 1120 ok with the implementation shortening the request length to 1121 1121 satisfy alignment or EOF requirements (or any other reason). 1122 1122