Re: [PATCH 12/15] xfs: use vfs inode nlink field everywhere

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> index 685c7a7..1408be3 100644
> --- a/libxfs/libxfs_api_defs.h
> +++ b/libxfs/libxfs_api_defs.h
> @@ -108,4 +108,8 @@
>  
>  #define xfs_verify_cksum		libxfs_verify_cksum
>  
> +/* inode link counts */
> +#define set_nlink(inode, nlink)	({ (inode)->i_nlink = (nlink); })
> +#define inc_nlink(inode)	(inode)->i_nlink++

Can we defines these as inlines?

> +		ip->i_vnode.i_nlink++;		/* account for . */

Shouldn't we use VFS_I() like everywhere else?

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux