cluster/gfs-kernel/src/nolock main.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: teigland at sourceware.org 2006-06-26 21:27:43
Modified files:
gfs-kernel/src/nolock: main.c
Log message:
posix_test_lock() args updated for 2.6.17
gfs-kernel/src/nolock/main.c +5 -4
@@ -243,13 +243,14 @@struct lm_lockname *name, struct file *file, struct file_lock *fl) { - struct file_lock *tmp; + struct file_lock tmp; +int ret;lock_kernel (); - tmp =posix_test_lock (file, fl); + ret =posix_test_lock (file, fl, &tmp); fl->fl_type =F_UNLCK ; -if (tmp) -memcpy (fl, tmp,sizeof (struct file_lock )); +if (ret) +memcpy (fl, &tmp,sizeof (struct file_lock ));unlock_kernel ();return 0 ;