nfsd: wrap accesses to st_access_bmap
authorJeff Layton <jlayton@redhat.com>
Fri, 11 May 2012 13:45:13 +0000 (09:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:47 +0000 (20:29 -0400)
commit82c5ff1b1409f43ccb282cbdfcb06991714e4c5f
treeac739fd456e92cd514208341c58918b62f4e90b0
parent3a3286147f557f05e002be3ec7512b582373ae65
nfsd: wrap accesses to st_access_bmap

Currently, we do this for the most part with "bare" bitops, but
eventually we'll need to expand the share mode code to handle access
and deny modes on other nodes.

In order to facilitate that code in the future, move to some generic
accessor functions. For now, these are mostly static inlines, but
eventually we'll want to move these to "real" functions that are
able to handle multi-node configurations or have a way to "swap in"
new operations to be done in lieu of or in conjunction with these
atomic bitops.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c