]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iomap: Fix conflicting values of iomap flags
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Thu, 27 Mar 2025 17:01:19 +0000 (01:01 +0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 28 Mar 2025 09:45:00 +0000 (10:45 +0100)
commit923936efeb74b3f42e5ad283a0b9110bda102601
treebab298ba136c1f64e895545ea7ea76a067c2f750
parent9e6901f17a719650be376f04d742bdbe1d7094ce
iomap: Fix conflicting values of iomap flags

IOMAP_F_ATOMIC_BIO mistakenly took the same value as of IOMAP_F_SIZE_CHANGED
in patch '370a6de7651b ("iomap: rework IOMAP atomic flags")'.
Let's fix this and let's also create some more space for filesystem reported
flags to avoid this in future. This patch makes the core iomap flags to start
from bit 15, moving downwards. Note that "flags" member within struct iomap
is of type u16.

Fixes: 370a6de7651b ("iomap: rework IOMAP atomic flags")
Signed-off-by: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20250327170119.61045-1-ritesh.list@gmail.com
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/iomap.h