aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2012-07-20 21:19:36 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2012-07-21 01:21:47 -0300
commit71275b153c60891c9f892c89837553bca80f23dc (patch)
treec863b33bf8c2bee074c10a7224fc5f70d65ed9b3
parentd6ffc9d1c04fa2a1cb63b7441d1747bb32bba2dd (diff)
downloadsyslinux-71275b153c60891c9f892c89837553bca80f23dc.tar.gz
syslinux-71275b153c60891c9f892c89837553bca80f23dc.tar.xz
syslinux-71275b153c60891c9f892c89837553bca80f23dc.zip
xfs: Cleanup fill_xfs_inode_pvt() function
Functions that need fs_info structure always place its pointer as the first argument, so make it the fist argument on this function as well. Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
-rw-r--r--core/fs/xfs/xfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index 1bd41876..b5dacb4e 100644
--- a/core/fs/xfs/xfs.c
+++ b/core/fs/xfs/xfs.c
@@ -45,7 +45,7 @@ static inline struct inode *xfs_new_inode(struct fs_info *fs)
return inode;
}
-static inline void fill_xfs_inode_pvt(struct inode *inode, struct fs_info *fs,
+static inline void fill_xfs_inode_pvt(struct fs_info *fs, struct inode *inode,
xfs_ino_t ino)
{
XFS_PVT(inode)->i_agblock =
@@ -165,10 +165,9 @@ found:
goto out;
}
- fill_xfs_inode_pvt(inode, fs, ino);
+ fill_xfs_inode_pvt(fs, inode, ino);
inode->ino = ino;
- XFS_PVT(inode)->i_ino_blk = ino_to_bytes(fs, ino) >> BLOCK_SHIFT(fs);
inode->size = be64_to_cpu(ncore->di_size);
if (be16_to_cpu(ncore->di_mode) & S_IFDIR) {
@@ -307,7 +306,7 @@ static struct inode *xfs_iget_root(struct fs_info *fs)
goto out;
}
- fill_xfs_inode_pvt(inode, fs, XFS_INFO(fs)->rootino);
+ fill_xfs_inode_pvt(fs, inode, XFS_INFO(fs)->rootino);
xfs_debug("Root inode has been found!");