From: Josef 'Jeff' Sipek Date: Sun, 17 Sep 2006 01:09:32 +0000 (-0400) Subject: NFS: Use SEEK_END instead of hardcoded value X-Git-Tag: v2.6.19-rc1~1271^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec5e175288c711cbe44750276f61efa3fa3d370;p=linux-2.6 NFS: Use SEEK_END instead of hardcoded value Signed-off-by: Josef 'Jeff' Sipek Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/file.c b/fs/nfs/file.c index a146ed3385..be997d6491 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -157,7 +157,7 @@ force_reval: 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)