mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
51b6ded4d9
commit
aec5e17528
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ force_reval:
|
||||||
static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)
|
static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)
|
||||||
{
|
{
|
||||||
/* origin == SEEK_END => we must revalidate the cached file length */
|
/* origin == SEEK_END => we must revalidate the cached file length */
|
||||||
if (origin == 2) {
|
if (origin == SEEK_END) {
|
||||||
struct inode *inode = filp->f_mapping->host;
|
struct inode *inode = filp->f_mapping->host;
|
||||||
int retval = nfs_revalidate_file_size(inode, filp);
|
int retval = nfs_revalidate_file_size(inode, filp);
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue