Cyclic Code?

Adil Mujeeb mujeeb.adil at gmail.com
Mon Jan 9 00:52:33 CST 2012


Hi list,

i am new to XFS.

I was going through XFS code (2.4 based) for study purpose. Its old but
assuming its bit simple as compare to latest one. Moreover the XFS code /
design structure documents available on the internet is 2.4 based.

The following code snippet is not clear to me (seems cyclic):

---------
...
...
#define XFS_IFORK_NEXTENTS(ip,w)        xfs_ifork_nextents(ip,w)
...
xfs_ifork_nextents(xfs_inode_t *ip, int w)
{
        return XFS_IFORK_NEXTENTS(ip, w);
}
...
...
#define XFS_IFORK_NEXTENTS(ip,w)        XFS_CFORK_NEXTENTS(&ip->i_d, w)
...
#define XFS_CFORK_NEXTENTS(dcp,w)            xfs_cfork_nextents(dcp,w)
...
int
xfs_cfork_nextents(xfs_dinode_core_t *dcp, int w)
{
        return XFS_CFORK_NEXTENTS(dcp, w);
}
----

Am i missing something?
Thanks,
Adil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20120109/c7f6e81e/attachment.htm>


More information about the xfs mailing list