[Cluster-devel] [GFS2 PATCH] gfs2: Introduce function gfs2_withdrawn

Bob Peterson rpeterso at redhat.com
Thu Nov 14 18:53:47 UTC 2019


----- Original Message -----
> On Thu, Nov 14, 2019 at 3:52 PM Bob Peterson <rpeterso at redhat.com> wrote:
> > This patch adds function gfs2_withdrawn and replaces all checks
> > for the SDF_WITHDRAWN bit to call it. This does not change the
> > logic or function of gfs2, and it facilitates later improvements
> > to the withdraw sequence.
> 
> This looks mostly okay, but:
> 
> > +/**
> > + * gfs2_withdrawn - test whether the file system is withdrawing or
> > withdrawn
> > + * @sdp: the superblock
> > + */
> > +static inline bool gfs2_withdrawn(struct gfs2_sbd *sdp)
> > +{
> > +       if (test_bit(SDF_WITHDRAWN, &sdp->sd_flags))
> > +               return true;
> > +       return false;
> 
>       return test_bit(SDF_WITHDRAWN, &sdp->sd_flags)
> 
> > +}
> 
> Thanks,
> Andreas

Well, I can certainly do that, but this patch is a predecessor to
another that checks two bits instead of one. I could or them, of course.




More information about the Cluster-devel mailing list