[syslinux:elflink] xfs: Cleanup fill_xfs_inode_pvt() function

syslinux-bot for Paulo Alcantara pcacjr at zytor.com
Tue Nov 27 12:57:12 PST 2012


Commit-ID:  71275b153c60891c9f892c89837553bca80f23dc
Gitweb:     http://www.syslinux.org/commit/71275b153c60891c9f892c89837553bca80f23dc
Author:     Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Fri, 20 Jul 2012 21:19:36 -0300
Committer:  Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 21 Jul 2012 01:21:47 -0300

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 at zytor.com>

---
 core/fs/xfs/xfs.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index 1bd4187..b5dacb4 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!");
 


More information about the Syslinux-commits mailing list