* [PATCH 1/1] nfs4.1: check for whole file layouts is comparing against uninitialized values
@ 2011-06-15 19:15 Fred Isaman
0 siblings, 0 replies; only message in thread
From: Fred Isaman @ 2011-06-15 19:15 UTC (permalink / raw)
To: linux-nfs; +Cc: Trond Myklebust, Fred Isaman
Signed-off-by: Fred Isaman <iisaman@netapp.com>
---
fs/nfs/nfs4filelayout.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index 88aa8a0..7fe8e19 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -428,8 +428,8 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,
dprintk("--> %s\n", __func__);
/* FIXME: remove this check when layout segment support is added */
- if (fl->generic_hdr.pls_range.offset != 0 ||
- fl->generic_hdr.pls_range.length != NFS4_MAX_UINT64) {
+ if (lgr->range.offset != 0 ||
+ lgr->range.length != NFS4_MAX_UINT64) {
dprintk("%s Only whole file layouts supported. Use MDS i/o\n",
__func__);
goto out;
--
1.7.2.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-15 19:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 19:15 [PATCH 1/1] nfs4.1: check for whole file layouts is comparing against uninitialized values Fred Isaman
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).