Benny Halevy 87df4de807 nfsd: last_byte_offset
refactor the nfs4 server lock code to use last_byte_offset
to compute the last byte covered by the lock.  Check for overflow
so that the last byte is set to NFS4_MAX_UINT64 if offset + len
wraps around.

Also, use NFS4_MAX_UINT64 for ~(u64)0 where appropriate.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2009-01-07 17:38:31 -05:00
..
2009-01-07 15:40:44 -05:00
2008-02-01 16:42:05 -05:00
2008-10-03 16:19:02 -04:00
2007-05-09 12:30:54 -07:00
2008-06-23 13:02:50 -04:00
2008-06-23 13:02:50 -04:00
2008-02-14 21:17:08 -08:00
2008-04-23 16:13:39 -04:00
2009-01-07 17:38:31 -05:00
2009-01-07 17:32:45 -05:00
2008-02-14 21:17:08 -08:00