"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xlators/protocol/client/src/client-lk.c" between
glusterfs-9.2.tar.gz and glusterfs-9.3.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 9.x (latest version).

client-lk.c  (glusterfs-9.2):client-lk.c  (glusterfs-9.3)
skipping to change at line 102 skipping to change at line 102
/* Add two locks */ /* Add two locks */
static client_posix_lock_t * static client_posix_lock_t *
add_locks(client_posix_lock_t *l1, client_posix_lock_t *l2) add_locks(client_posix_lock_t *l1, client_posix_lock_t *l2)
{ {
client_posix_lock_t *sum = NULL; client_posix_lock_t *sum = NULL;
sum = GF_CALLOC(1, sizeof(*sum), gf_client_mt_clnt_lock_t); sum = GF_CALLOC(1, sizeof(*sum), gf_client_mt_clnt_lock_t);
if (!sum) if (!sum)
return NULL; return NULL;
sum->fl_start = min(l1->fl_start, l2->fl_start); sum->fl_start = min(l1->fl_start, l2->fl_start);
sum->fl_end = max(l1->fl_end, l2->fl_end); sum->fl_end = max(l1->fl_end, l2->fl_end);
sum->user_flock.l_start = sum->fl_start; sum->user_flock.l_start = sum->fl_start;
sum->user_flock.l_len = __get_lock_length(sum->fl_start, sum->fl_end); sum->user_flock.l_len = __get_lock_length(sum->fl_start, sum->fl_end);
return sum; return sum;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)