summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/Fh.h2
-rw-r--r--src/doc/lazy_posix.txt4
-rw-r--r--src/include/ceph_fs.cc4
-rw-r--r--src/include/types.h2
4 files changed, 2 insertions, 10 deletions
diff --git a/src/client/Fh.h b/src/client/Fh.h
index 59f8f33d362..3c573c2c14e 100644
--- a/src/client/Fh.h
+++ b/src/client/Fh.h
@@ -14,8 +14,6 @@ struct Fh {
int mds; // have to talk to mds we opened with (for now)
int mode; // the mode i opened the file with
- bool is_lazy() { return mode & O_LAZY; }
-
int flags;
bool pos_locked; // pos is currently in use
list<Cond*> pos_waiters; // waiters for pos
diff --git a/src/doc/lazy_posix.txt b/src/doc/lazy_posix.txt
index 1d226cd03d8..a7bc34e3030 100644
--- a/src/doc/lazy_posix.txt
+++ b/src/doc/lazy_posix.txt
@@ -25,7 +25,7 @@ http://www.usenix.org/events/fast05/wips/slides/welch.pdf
-- lazy i/o integrity
- O_LAZY to open(2)
+ FIXME: currently missing call to flag an Fd/file has lazy. used to be O_LAZY on open, but no more.
* relax data coherency
* writes may not be visible until lazyio_propagate, fsync, close
@@ -50,4 +50,4 @@ int lockg(int fd, int cmd, lgid_t *lgid)
int openg(char *path, int mode, fh_t *handle);
portable file handle
-int sutoc(fh_t *fh); \ No newline at end of file
+int sutoc(fh_t *fh);
diff --git a/src/include/ceph_fs.cc b/src/include/ceph_fs.cc
index 24512bbc483..6e3c143361e 100644
--- a/src/include/ceph_fs.cc
+++ b/src/include/ceph_fs.cc
@@ -56,10 +56,6 @@ int ceph_flags_to_mode(int flags)
mode = CEPH_FILE_MODE_RDWR;
break;
}
-#ifdef O_LAZY
- if (flags & O_LAZY)
- mode |= CEPH_FILE_MODE_LAZY;
-#endif
return mode;
}
diff --git a/src/include/types.h b/src/include/types.h
index 55066c97852..bed00175dd4 100644
--- a/src/include/types.h
+++ b/src/include/types.h
@@ -271,8 +271,6 @@ typedef uint64_t tid_t; // transaction id
typedef uint64_t version_t;
typedef __u32 epoch_t; // map epoch (32bits -> 13 epochs/second for 10 years)
-#define O_LAZY 01000000
-
// --------------------------------------
// identify individual mount clients by 64bit value