linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] fs/libfs: use SEEK_CUR/SET
@ 2017-02-28 19:45 Tomohiro Kusumi
  2017-02-28 19:45 ` [PATCH 2/3] nfs: " Tomohiro Kusumi
  2017-02-28 19:45 ` [PATCH 3/3] fs/mpage: fix a comment "get_blocks" to "get_block" Tomohiro Kusumi
  0 siblings, 2 replies; 3+ messages in thread
From: Tomohiro Kusumi @ 2017-02-28 19:45 UTC (permalink / raw)
  To: viro, linux-fsdevel, trond.myklebust, anna.schumaker, linux-nfs
  Cc: Tomohiro Kusumi

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
---
 fs/libfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/libfs.c b/fs/libfs.c
index 28d6f35..cb03444 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -143,9 +143,9 @@ loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence)
 {
 	struct dentry *dentry = file->f_path.dentry;
 	switch (whence) {
-		case 1:
+		case SEEK_CUR:
 			offset += file->f_pos;
-		case 0:
+		case SEEK_SET:
 			if (offset >= 0)
 				break;
 		default:
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-28 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 19:45 [PATCH 1/3] fs/libfs: use SEEK_CUR/SET Tomohiro Kusumi
2017-02-28 19:45 ` [PATCH 2/3] nfs: " Tomohiro Kusumi
2017-02-28 19:45 ` [PATCH 3/3] fs/mpage: fix a comment "get_blocks" to "get_block" Tomohiro Kusumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).