Skip to content

Commit 9748cb2

Browse files
neilbrownbrauner
authored andcommitted
VFS: repack DENTRY_ flags.
Bits 13, 23, 24, and 27 are not used. Move all those holes to the end. Signed-off-by: NeilBrown <neilb@suse.de> Link: https://lore.kernel.org/r/20250206054504.2950516-7-neilb@suse.de Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 2014c95 commit 9748cb2

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

include/linux/dcache.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -203,34 +203,34 @@ struct dentry_operations {
203203
#define DCACHE_NFSFS_RENAMED BIT(12)
204204
/* this dentry has been "silly renamed" and has to be deleted on the last
205205
* dput() */
206-
#define DCACHE_FSNOTIFY_PARENT_WATCHED BIT(14)
206+
#define DCACHE_FSNOTIFY_PARENT_WATCHED BIT(13)
207207
/* Parent inode is watched by some fsnotify listener */
208208

209-
#define DCACHE_DENTRY_KILLED BIT(15)
209+
#define DCACHE_DENTRY_KILLED BIT(14)
210210

211-
#define DCACHE_MOUNTED BIT(16) /* is a mountpoint */
212-
#define DCACHE_NEED_AUTOMOUNT BIT(17) /* handle automount on this dir */
213-
#define DCACHE_MANAGE_TRANSIT BIT(18) /* manage transit from this dirent */
211+
#define DCACHE_MOUNTED BIT(15) /* is a mountpoint */
212+
#define DCACHE_NEED_AUTOMOUNT BIT(16) /* handle automount on this dir */
213+
#define DCACHE_MANAGE_TRANSIT BIT(17) /* manage transit from this dirent */
214214
#define DCACHE_MANAGED_DENTRY \
215215
(DCACHE_MOUNTED|DCACHE_NEED_AUTOMOUNT|DCACHE_MANAGE_TRANSIT)
216216

217-
#define DCACHE_LRU_LIST BIT(19)
217+
#define DCACHE_LRU_LIST BIT(18)
218218

219-
#define DCACHE_ENTRY_TYPE (7 << 20) /* bits 20..22 are for storing type: */
220-
#define DCACHE_MISS_TYPE (0 << 20) /* Negative dentry */
221-
#define DCACHE_WHITEOUT_TYPE (1 << 20) /* Whiteout dentry (stop pathwalk) */
222-
#define DCACHE_DIRECTORY_TYPE (2 << 20) /* Normal directory */
223-
#define DCACHE_AUTODIR_TYPE (3 << 20) /* Lookupless directory (presumed automount) */
224-
#define DCACHE_REGULAR_TYPE (4 << 20) /* Regular file type */
225-
#define DCACHE_SPECIAL_TYPE (5 << 20) /* Other file type */
226-
#define DCACHE_SYMLINK_TYPE (6 << 20) /* Symlink */
219+
#define DCACHE_ENTRY_TYPE (7 << 19) /* bits 19..21 are for storing type: */
220+
#define DCACHE_MISS_TYPE (0 << 19) /* Negative dentry */
221+
#define DCACHE_WHITEOUT_TYPE (1 << 19) /* Whiteout dentry (stop pathwalk) */
222+
#define DCACHE_DIRECTORY_TYPE (2 << 19) /* Normal directory */
223+
#define DCACHE_AUTODIR_TYPE (3 << 19) /* Lookupless directory (presumed automount) */
224+
#define DCACHE_REGULAR_TYPE (4 << 19) /* Regular file type */
225+
#define DCACHE_SPECIAL_TYPE (5 << 19) /* Other file type */
226+
#define DCACHE_SYMLINK_TYPE (6 << 19) /* Symlink */
227227

228-
#define DCACHE_NOKEY_NAME BIT(25) /* Encrypted name encoded without key */
229-
#define DCACHE_OP_REAL BIT(26)
228+
#define DCACHE_NOKEY_NAME BIT(22) /* Encrypted name encoded without key */
229+
#define DCACHE_OP_REAL BIT(23)
230230

231-
#define DCACHE_PAR_LOOKUP BIT(28) /* being looked up (with parent locked shared) */
232-
#define DCACHE_DENTRY_CURSOR BIT(29)
233-
#define DCACHE_NORCU BIT(30) /* No RCU delay for freeing */
231+
#define DCACHE_PAR_LOOKUP BIT(24) /* being looked up (with parent locked shared) */
232+
#define DCACHE_DENTRY_CURSOR BIT(25)
233+
#define DCACHE_NORCU BIT(26) /* No RCU delay for freeing */
234234

235235
extern seqlock_t rename_lock;
236236

0 commit comments

Comments
 (0)