diff mbox

[2/3] nfs: use SEEK_CUR/SET

Message ID 20170228194523.2054-2-tkusumi@tuxera.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tomohiro Kusumi Feb. 28, 2017, 7:45 p.m. UTC
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
 fs/nfs/dir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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: