Skip to contentSkip to conversation

vfs: fix typo in s_op->alloc_inode() documentation

PATCH New Kirill Smelkov 1 participant 1 message Aug 14, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfs: fix typo in s_op->alloc_inode() documentation

The function which calls s_op->alloc_inode() is not inode_alloc(), but instead alloc_inode() which lives in fs/inode.c .

The typo was there from the beginning from 5ea626aa (VFS: update documentation, 2005) - there was no standalone inode_alloc() for the whole kernel history.

---
 Documentation/filesystems/vfs.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/vfs.txt +1 -1
index 61d65cc..02a766c 100644
@@ -237,7 +237,7 @@ noted. This means that most methods can block safely. All methods are
 only called from a process context (i.e. not from an interrupt handler
 or bottom half).
 
-  alloc_inode: this method is called by inode_alloc() to allocate memory
+  alloc_inode: this method is called by alloc_inode() to allocate memory
  	for struct inode and initialize it.  If this function is not
  	defined, a simple 'struct inode' is allocated.  Normally
  	alloc_inode will be used to allocate a larger structure which
Signature · 1 line
2.1.0.rc2.234.ge4c5f60