aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-07-26 14:26:18 -0400
committerSage Weil <sage@newdream.net>2011-07-26 14:26:18 -0400
commit9cfa1098dcfb34f71c5f3b7bcdbbb435a0cecab2 (patch)
treececff467984dd0d5e8fef2014e296b682c7a0267 /fs/ceph/super.h
parent4918b6d140c4822201ebbe2f070875332aff337b (diff)
ceph: use flag bit for at_end readdir flag
This saves us a word of memory per file. Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index cdb17d36755c..a8a273320241 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -544,6 +544,7 @@ extern void ceph_reservation_status(struct ceph_fs_client *client,
544 * we keep buffered readdir results attached to file->private_data 544 * we keep buffered readdir results attached to file->private_data
545 */ 545 */
546#define CEPH_F_SYNC 1 546#define CEPH_F_SYNC 1
547#define CEPH_F_ATEND 2
547 548
548struct ceph_file_info { 549struct ceph_file_info {
549 short fmode; /* initialized on open */ 550 short fmode; /* initialized on open */
@@ -552,7 +553,6 @@ struct ceph_file_info {
552 /* readdir: position within the dir */ 553 /* readdir: position within the dir */
553 u32 frag; 554 u32 frag;
554 struct ceph_mds_request *last_readdir; 555 struct ceph_mds_request *last_readdir;
555 int at_end;
556 556
557 /* readdir: position within a frag */ 557 /* readdir: position within a frag */
558 unsigned offset; /* offset of last chunk, adjusted for . and .. */ 558 unsigned offset; /* offset of last chunk, adjusted for . and .. */