VFS: repack LOOKUP_ bit flags.
authorNeilBrown <neilb@suse.de>
Thu, 6 Feb 2025 05:42:44 +0000 (16:42 +1100)
committerChristian Brauner <brauner@kernel.org>
Mon, 10 Feb 2025 09:41:00 +0000 (10:41 +0100)
commit2c3230fb8db9bf04d97a907f2fb86adb1e74e431
treec7f3d70c6191523f9b0b70641762d5d3d87467ac
parent9748cb2dc393e9095c39d6de0786c7b4e07b2530
VFS: repack LOOKUP_ bit flags.

The LOOKUP_ bits are not in order, which can make it awkward when adding
new bits.  Two bits have recently been added to the end which makes them
look like "scoping flags", but in fact they aren't.

Also LOOKUP_PARENT is described as "internal use only" but is used in
fs/nfs/

This patch:
 - Moves these three flags into the "pathwalk mode" section
 - changes all bits to use the BIT(n) macro
 - Allocates bits in order leaving gaps between the sections,
   and documents those gaps.

Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250206054504.2950516-8-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/namei.h