Commit 4e07ad64 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Al Viro

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.

Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Kirill Smelkov's avatarKirill Smelkov <kirr@nexedi.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1fa97e8b
...@@ -237,7 +237,7 @@ noted. This means that most methods can block safely. All methods are ...@@ -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 only called from a process context (i.e. not from an interrupt handler
or bottom half). 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 for struct inode and initialize it. If this function is not
defined, a simple 'struct inode' is allocated. Normally defined, a simple 'struct inode' is allocated. Normally
alloc_inode will be used to allocate a larger structure which alloc_inode will be used to allocate a larger structure which
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment