vfs: make it possible to access the dentry hash/len as one 64-bit entry
This allows comparing hash and len in one operation on 64-bit
architectures. Right now only __d_lookup_rcu() takes advantage of this,
since that is the case we care most about.
The use of anonymous struct/unions hides the alternate 64-bit approach
from most users, the exception being a few cases where we initialize a
'struct qstr' with a static initializer. This makes the problematic
cases use a new QSTR_INIT() helper function for that (but initializing
just the name pointer with a "{ .name = xyzzy }" initializer remains
valid, as does just copying another qstr structure).
Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/dcache.c 7 additions, 9 deletionsfs/dcache.c
- fs/ext2/namei.c 1 addition, 1 deletionfs/ext2/namei.c
- fs/ext3/namei.c 1 addition, 1 deletionfs/ext3/namei.c
- fs/ext4/namei.c 1 addition, 4 deletionsfs/ext4/namei.c
- fs/gfs2/dir.c 1 addition, 1 deletionfs/gfs2/dir.c
- fs/libfs.c 2 additions, 2 deletionsfs/libfs.c
- fs/nfs/dir.c 1 addition, 4 deletionsfs/nfs/dir.c
- fs/nfs/nfs3proc.c 1 addition, 2 deletionsfs/nfs/nfs3proc.c
- fs/nfs/nfs4proc.c 1 addition, 2 deletionsfs/nfs/nfs4proc.c
- fs/nfs/proc.c 1 addition, 2 deletionsfs/nfs/proc.c
- fs/nilfs2/namei.c 1 addition, 1 deletionfs/nilfs2/namei.c
- fs/ubifs/tnc.c 1 addition, 1 deletionfs/ubifs/tnc.c
- fs/ubifs/xattr.c 3 additions, 3 deletionsfs/ubifs/xattr.c
- fs/udf/namei.c 1 addition, 1 deletionfs/udf/namei.c
- fs/ufs/super.c 1 addition, 4 deletionsfs/ufs/super.c
- include/linux/dcache.h 17 additions, 2 deletionsinclude/linux/dcache.h
- net/sunrpc/clnt.c 1 addition, 3 deletionsnet/sunrpc/clnt.c
- net/sunrpc/rpc_pipe.c 2 additions, 5 deletionsnet/sunrpc/rpc_pipe.c
Loading
Please register or sign in to comment