diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-04-27 12:48:30 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-26 02:15:35 +0300 |
commit | 956d39d631dbcf7b57854873a24e309047f2a7f5 (patch) | |
tree | 1a813b9bf40a2eb0db472fcccfb9932c350315c5 /fs/ceph/dir.c | |
parent | 2a5beea3f1b6544d6c72ea220e860a2eda2f9104 (diff) | |
download | linux-956d39d631dbcf7b57854873a24e309047f2a7f5.tar.xz |
ceph: define 'end/complete' in readdir reply as bit flags
Set a flag in readdir request, which indicates that client interprets
'end/complete' as bit flags. So that mds can reply additional flags in
readdir reply.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 68530acea2c8..ebcbd1c946b4 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -365,6 +365,8 @@ more: req->r_readdir_cache_idx = fi->readdir_cache_idx; req->r_readdir_offset = fi->next_offset; req->r_args.readdir.frag = cpu_to_le32(frag); + req->r_args.readdir.flags = + cpu_to_le16(CEPH_READDIR_REPLY_BITFLAGS); req->r_inode = inode; ihold(inode); |