xfs
[Top] [All Lists]

Need of inode->i_mutex in xfs_write()

To: xfs@xxxxxxxxxxx
Subject: Need of inode->i_mutex in xfs_write()
From: "kanishk rastogi" <kanishk.85@xxxxxxxxx>
Date: Tue, 21 Aug 2007 21:11:56 +0545
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pl3hSM9H+Gpv1zSBYQ2Ez+8ickPJapVzgRhlUDyF/ycpHJ65am/+EY7WJyKsuzz9vahh8d0+nrhEx5jhmcjJS3OtaddTA2BKShCtcwrsV1FuUywVhhg1JogSMfbUr6vGNV2MlwQlrrp0YC5dFHEoqizdEjoJeau7Ojn90V7gWnw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HVAK4wZsclkBioyxj4QDW/ylib9sVscRGnBoiZPOOokG72j93p2Df6un1F4v6jBpWY7GdgtVEWy+RihIKm4/oX/oOWnUurq+STapse5ezDtdu7oRhF/R57qjJRzbNIaJ1QmwBELquIaqmpw6VvWWH/aMKRjwOukw+lsrNb6QREo=
Sender: xfs-bounce@xxxxxxxxxxx
I was looking at the xfs_write code path in kernel 2.6.20 .......
I saw it acquiring inode->i_mutex .
Whats the need ?
What are we safegaurding inode for.

AFAIK its used for protecting the incode inode. (CMIIW)

regards
kanishk


<Prev in Thread] Current Thread [Next in Thread>