xfs
[Top] [All Lists]

Cyclic Code?

To: xfs@xxxxxxxxxxx
Subject: Cyclic Code?
From: Adil Mujeeb <mujeeb.adil@xxxxxxxxx>
Date: Mon, 9 Jan 2012 12:22:33 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=LeQvDuTi2/nZp22ZLjx6hiiYcECW6oUuUw+McTv9T1A=; b=efBDSr3Dq1cM8WQz/LmL+MjKzDp4BvaVcxPeLex7wx5g5BQVterl7wefFU0NveHxD5 Fwj7CmdrRSj9MLXGLdLLFOcvoWNk6dpN288lvqHrNr7OUiQqm1nxhco6vqhMT1py0TxP Czm9HarEqksjSCWPyDTeUvbwf9lKojV3CF3n8=
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
<Prev in Thread] Current Thread [Next in Thread>