summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-07-03 05:20:52 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-03 05:20:52 -0700
commit9c67eccb82d6ce0fb44a812ef5f76be970eedd1b (patch)
treec9157afe638e687e31d7669ca5cfec9b7ef71193 /include/linux
parent4b22645477b933f5cf2a972beebef367b628cdc2 (diff)
Re-organize "ext3_get_inode_loc()" and make it easier to
follow by splitting it into two functions: one that calculates the position, and the other that actually reads the inode block off the disk.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ext3_fs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h
index f077563bcfc3..c360f84fed3d 100644
--- a/include/linux/ext3_fs.h
+++ b/include/linux/ext3_fs.h
@@ -636,10 +636,14 @@ struct dx_hash_info
struct ext3_iloc
{
struct buffer_head *bh;
- struct ext3_inode *raw_inode;
+ unsigned long offset;
unsigned long block_group;
};
+static inline struct ext3_inode *ext3_raw_inode(struct ext3_iloc *iloc)
+{
+ return (struct ext3_inode *) (iloc->bh->b_data + iloc->offset);
+}
/*
* This structure is stuffed into the struct file's private_data field