[Ocfs2-devel] [PATCH 11/15] Add xattr bucket iteration for large numbers of EAs.v2
Mark Fasheh
mfasheh at suse.com
Fri Jul 11 16:58:22 PDT 2008
On Sat, Jul 12, 2008 at 07:52:25AM +0800, Tao Ma wrote:
> >
> >
> >
> >>+ } else
> >>+ bucket = bhs[0]->b_data;
> >>+
> >>+ xh = (struct ocfs2_xattr_header *)bucket;
> >>+ /*
> >>+ * The real bucket num in this series of blocks is stored
> >>+ * in the 1st bucket.
> >>+ */
> >>+ if (i == 0)
> >>+ bucket_num = le16_to_cpu(xh->xh_reserved1);
> >
> >Do you really mean "xh_reserved1" here? If so, please just give that field
> >a
> >useful name ;) *_reserved* usually indicates that it's unused...
> In your design doc
> http://oss.oracle.com/osswiki/OCFS2/DesignDocs/IndexedEATrees you said
> "We can store the current number of contiguous, non-empty buckets by
> storing it in the 16 bit xh_reserved1 field. " So do I misread it(you
> mean use this field and change it to another name)?
Yeah, change the name - there's no point to leaving it around as "reserved"
--Mark
--
Mark Fasheh
More information about the Ocfs2-devel
mailing list