Incomplete patch?
Posted Mar 23, 2007 20:46 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
Incomplete patch? by khim
Parent article:
fallocate()
Have you looked at GCC sources ? That's where this code is, after all...
No, it's not. It's in the filesystem drivers, in the statement that declares the inode_operations variables. Looking to GCC source code for the setting of this member to NULL is like looking at at GCC source code to see the setting of 'a' to 7 in a program that contains the line "int a = 7;"
Hint: what does C standard says about initialization of static and globar structures ?
An even better hint is that all the filesystem drivers (I hope) initialize the inode operations field by assigning from a static constant inode_operations variable. Because that's not obvious, and is essential to this patch working.
(
Log in to post comments)