Skip to content

Commit

Permalink
NFS: Use SEEK_END instead of hardcoded value
Browse files Browse the repository at this point in the history
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
jeffpc authored and Trond Myklebust committed Sep 23, 2006
1 parent 51b6ded commit aec5e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int nfs_revalidate_file_size(struct inode *inode, struct file *filp)
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)
Expand Down

0 comments on commit aec5e17

Please sign in to comment.