This patches fixes the case where the NULL inode may be passed to get the page for writing.
Signed-off-by: Abhijit Pawar <[email protected]>
---
fs/logfs/readwrite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c
index 53596ce..55b45fb 100644
--- a/fs/logfs/readwrite.c
+++ b/fs/logfs/readwrite.c
@@ -2201,6 +2201,7 @@ void btree_write_block(struct logfs_block *block)
int err, cookie;
inode = logfs_safe_iget(block->sb, block->ino, &cookie);
+ BUG_ON(!inode);
page = logfs_get_write_page(inode, block->bix, block->level);
BUG_ON(!page);
--
1.7.7.6