From: Benny Halevy Date: Mon, 15 Dec 2008 17:42:03 +0000 (+0200) Subject: nfsd: last_byte_offset X-Git-Tag: v2.6.29-rc1~177^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87df4de8073f922a1f643b9fa6ba0412d5529ecf;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed