summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-10 18:07:30 (GMT)
committerJ. Bruce Fields <bfields@redhat.com>2014-07-11 15:06:04 (GMT)
commitc11c591fe6682e0d642bf9242e53554a50e5fbc0 (patch)
treee3c6815571449201c7f780e50bb5d82854ac9c2c /mm/util.c
parent6d338b51eb6e37b4d6f1459c892f5ec7df0dad88 (diff)
downloadlinux-c11c591fe6682e0d642bf9242e53554a50e5fbc0.tar.xz
nfsd: shrink st_access_bmap and st_deny_bmap
We never use anything above bit #3, so an unsigned long for each is wasteful. Shrink them to a char each, and add some WARN_ON_ONCE calls if we try to set or clear bits that would go outside those sizes. Note too that because atomic bitops work on unsigned longs, we have to abandon their use here. That shouldn't be a problem though since we don't really care about the atomicity in this code anyway. Using them was just a convenient way to flip bits. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions