]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: add appropriate __force directives to filehandle generation code
authorJeff Layton <jlayton@primarydata.com>
Tue, 17 Jun 2014 11:44:14 +0000 (07:44 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Jun 2014 15:31:37 +0000 (11:31 -0400)
commit6860731b949f3c2bb3f560e3c65fb492d1fb7baa
tree031f1e13f33fc8a437f0a3e95ece9ff628da6430
parent595cc3991f2936e0c54878b97c3bb940ea3314ef
nfsd: add appropriate __force directives to filehandle generation code

The filehandle structs all use host-endian values, but will sometimes
stuff big-endian values into those fields. This is OK since these
values are opaque to the client, but it confuses sparse. Add __force to
make it clear that we are doing this intentionally.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsfh.c
fs/nfsd/nfsfh.h