diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2006-09-16 21:09:32 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:25:04 -0400 |
commit | aec5e175288c711cbe44750276f61efa3fa3d370 (patch) | |
tree | b793c3da94887f25e26b6627959a8bb5cb3b10dc /fs/nfs | |
parent | 51b6ded4d9a94a61035deba1d8f51a54e3a3dd86 (diff) | |
download | linux-3.10-aec5e175288c711cbe44750276f61efa3fa3d370.tar.gz linux-3.10-aec5e175288c711cbe44750276f61efa3fa3d370.tar.bz2 linux-3.10-aec5e175288c711cbe44750276f61efa3fa3d370.zip |
NFS: Use SEEK_END instead of hardcoded value
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c index a146ed33853..be997d64912 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) |