xfs: Use kmem_free() instead of free()
PATCH 1/1 xfs: Use kmem_free() instead of free()
This fixes a build failure caused by calling the free() function which does not exist in the Linux kernel.
--- fs/xfs/xfs_log_recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_log_recover.c +1 -1
@@ -1585,7 +1585,7 @@ xlog_recover_add_to_trans("bad number of regions (%d) in inode log format" , in_f->ilf_size);ASSERT (0 ); -free (ptr); +kmem_free (ptr);return XFS_ERROR (EIO ); }
Signature · 6 lines
1.8.4 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 13 lines · Thierry Reding
This fixes a build failure caused by calling the
free()function which does not exist in the Linux kernel.Signed-off-by Thierry Reding<[email protected]>--- fs/xfs/xfs_log_recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_log_recover.c +0
-0
fs/xfs/xfs_log_recover.c xlog_recover_add_to_trans( · line 1591
Quoted 8 lines
fs/xfs/xfs_log_recover.c +1
-1@@ -1585,7 +1585,7 @@ xlog_recover_add_to_trans("bad number of regions (%d) in inode log format" , in_f->ilf_size);ASSERT (0 ); -free (ptr); +kmem_free (ptr);return XFS_ERROR (EIO ); }
Looks good. I will remove the other list items in another patch.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Ben Myers
AppliedQuoted 25 lines · Mark Tinguely
Quoted 13 lines · Thierry Reding
This fixes a build failure caused by calling the
free()function which does not exist in the Linux kernel.Signed-off-by Thierry Reding<[email protected]>--- fs/xfs/xfs_log_recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_log_recover.c +0
-0fs/xfs/xfs_log_recover.c xlog_recover_add_to_trans( · line 1591
Quoted 8 lines
fs/xfs/xfs_log_recover.c +1
-1@@ -1585,7 +1585,7 @@ xlog_recover_add_to_trans("bad number of regions (%d) in inode log format" , in_f->ilf_size);ASSERT (0 ); -free (ptr); +kmem_free (ptr);return XFS_ERROR (EIO ); }Looks good. I will remove the other list items in another patch.
Quoted 1 line
Reviewed-by Mark Tinguely <[email protected]>
Gah. Build Fail. Apparently things were getting a little punchy over here.
Applied, and thanks Thierry.
-Ben
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs