NFS: Shrink the struct nfs_fattr
We don't need the bitmap[] field anymore, since the 'valid' field tells us all we need to know about which attributes were filled in... Also move the pre-op attributes in order to improve the structure packing. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -3002,9 +3002,6 @@ static int decode_getfattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, cons
|
||||
if ((status = decode_attr_bitmap(xdr, bitmap)) != 0)
|
||||
goto xdr_error;
|
||||
|
||||
fattr->bitmap[0] = bitmap[0];
|
||||
fattr->bitmap[1] = bitmap[1];
|
||||
|
||||
if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0)
|
||||
goto xdr_error;
|
||||
|
||||
|
Reference in New Issue
Block a user