Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- fs/nfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index fad8104..95712e1 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -972,9 +972,9 @@ static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence) filp, offset, whence); switch (whence) { - case 1: + case SEEK_CUR: offset += filp->f_pos; - case 0: + case SEEK_SET: if (offset >= 0) break; default: -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html