nfsd: fix /proc/net/rpc/nfsd.export/content display
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 24 Sep 2010 21:43:59 +0000 (17:43 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 26 Sep 2010 18:48:25 +0000 (14:48 -0400)
commit74ec1e1269eba65b5f8e810cf0363ddb7aa64de5
tree11b0ab0612f275b0ddff4077be3ba8ee46f78f6c
parent049ef27b224ecc33958465fef83d5e4e8a056115
nfsd: fix /proc/net/rpc/nfsd.export/content display

Note with "first" always 0, and "lastflags" initially 0, we always dump
a spurious set of 0 flags at the start, among other problems.

Fix.  And attempt to make the code a little more obvious.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c