aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2008-02-07 03:15:27 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:26 -0500
commitb46980feed937868d3333514028bfbe9a651e4ca (patch)
tree97e610932986223932887af3c0ea00234856e540 /include
parente231c2ee64eb1c5cd3c63c31da9dac7d888dcf7f (diff)
iget: introduce a function to register iget failure
Introduce a function to register failure in an inode construction path. This includes marking the inode under construction as bad, unlocking it and releasing it. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 2925f7011ece..d202600d36bd 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1780,6 +1780,7 @@ static inline struct inode *iget(struct super_block *sb, unsigned long ino)
1780} 1780}
1781 1781
1782extern void __iget(struct inode * inode); 1782extern void __iget(struct inode * inode);
1783extern void iget_failed(struct inode *);
1783extern void clear_inode(struct inode *); 1784extern void clear_inode(struct inode *);
1784extern void destroy_inode(struct inode *); 1785extern void destroy_inode(struct inode *);
1785extern struct inode *new_inode(struct super_block *); 1786extern struct inode *new_inode(struct super_block *);