From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/gfs-kernel/src/nolock main.c
Date: 26 Jun 2006 21:21:47 -0000 [thread overview]
Message-ID: <20060626212147.23881.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-06-26 21:21:46
Modified files:
gfs-kernel/src/nolock: main.c
Log message:
posix_test_lock() args updated for 2.6.17
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/nolock/main.c.diff?cvsroot=cluster&r1=1.13&r2=1.14
--- cluster/gfs-kernel/src/nolock/main.c 2006/01/09 21:27:28 1.13
+++ cluster/gfs-kernel/src/nolock/main.c 2006/06/26 21:21:46 1.14
@@ -182,13 +182,14 @@
static int nolock_plock_get(lm_lockspace_t *lockspace, 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;
next reply other threads:[~2006-06-26 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-26 21:21 teigland [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-06-26 21:27 [Cluster-devel] cluster/gfs-kernel/src/nolock main.c teigland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060626212147.23881.qmail@sourceware.org \
--to=teigland@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).