From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Alexander Beregalov <a.beregalov@gmail.com>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
swhiteho@redhat.com, cluster-devel@redhat.com,
"J. Bruce Fields" <bfields@fieldses.org>
Subject: Re: [PATCH -mm] fs.h: fix build error with !CONFIG_FILE_LOCKING
Date: Thu, 14 Aug 2008 11:19:34 +0200 [thread overview]
Message-ID: <20080814111934.6d68fa23@surf> (raw)
In-Reply-To: <20080808223228.GC5093@orion>
Le Sat, 9 Aug 2008 02:32:28 +0400,
Alexander Beregalov <a.beregalov@gmail.com> a écrit :
> I am not sure it is a right way to fix it, please review.
> Commit 4a70917f881a38ae688c98be9396f0a38f559094
> (configure-out-file-locking-features) changed behaviour.
I must admit that I'm quite confused by the commit you're referring to.
In which tree is it ?
Anyway, this problem has already been fixed in the latest version of
the patch I sent to LKML on August, 4th:
http://marc.info/?l=linux-kernel&m=121802891417797&w=2
However, I just sent another fixup patch to LKML, required to get NFS
server to compile with CONFIG_FILE_LOCKING=n. For reference, I copy it
below.
Sincerly,
Thomas
---
Fixup configure out fs locks support
This patch adds a few more stubs required to get NFS server to compile
properly with CONFIG_FILE_LOCKING=n.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
include/linux/fs.h | 2 ++
1 file changed, 2 insertions(+)
Index: linuxdev/include/linux/fs.h
===================================================================
--- linuxdev.orig/include/linux/fs.h
+++ linuxdev/include/linux/fs.h
@@ -1050,6 +1050,8 @@
#define __break_lease(a, b) ({ 0; })
#define lease_get_mtime(a, b) ({ })
#define generic_setlease(a, b, c) ({ -EINVAL; })
+#define vfs_setlease(a, b, c) ({ -EINVAL; })
+#define lease_modify(a, b) ({ -EINVAL; })
#define lock_may_read(a, b, c) ({ 1; })
#define lock_may_write(a, b, c) ({ 1; })
#endif /* !CONFIG_FILE_LOCKING */
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2008-08-14 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 22:32 [PATCH -mm] fs.h: fix build error with !CONFIG_FILE_LOCKING Alexander Beregalov
2008-08-14 9:19 ` Thomas Petazzoni [this message]
2008-08-14 10:51 ` Alexander Beregalov
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=20080814111934.6d68fa23@surf \
--to=thomas.petazzoni@free-electrons.com \
--cc=a.beregalov@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bfields@fieldses.org \
--cc=cluster-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=swhiteho@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.