[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <ca33dbd739b3eb133585.1158455372@turing.ams.sunysb.edu>
Date: Sat, 16 Sep 2006 21:09:32 -0400
From: "Josef 'Jeff' Sipek" <jeffpc@...efsipek.net>
To: linux-kernel@...r.kernel.org
Cc: neilb@....unsw.edu.au, trond.myklebust@....uio.no, akpm@...l.org,
dhowells@...hat.com
Subject: [PATCH 6 of 11] NFS: Use SEEK_END instead of hardcoded value
NFS: Use SEEK_END instead of hardcoded value
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@...efsipek.net>
--
diff -r 4cdee5980dad -r ca33dbd739b3 fs/nfs/file.c
--- a/fs/nfs/file.c Sat Sep 16 21:00:45 2006 -0400
+++ b/fs/nfs/file.c Sat Sep 16 21:00:45 2006 -0400
@@ -157,7 +157,7 @@ static loff_t nfs_file_llseek(struct fil
static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)
{
/* origin == SEEK_END => we must revalidate the cached file length */
- if (origin == 2) {
+ if (origin == SEEK_END) {
struct inode *inode = filp->f_mapping->host;
int retval = nfs_revalidate_file_size(inode, filp);
if (retval < 0)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists