mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Linux 3.2 compat: set_nlink()
Directly changing inode->i_nlink is deprecated in Linux 3.2 by commit SHA: bfe8684869601dacfcb2cd69ef8cfd9045f62170 Use the new set_nlink() kernel function instead. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes: #462
This commit is contained in:
committed by
Brian Behlendorf
parent
e6101ea87f
commit
28eb9213d8
@@ -440,7 +440,7 @@ zfs_inode_update(znode_t *zp)
|
||||
ip->i_generation = zp->z_gen;
|
||||
ip->i_uid = zp->z_uid;
|
||||
ip->i_gid = zp->z_gid;
|
||||
ip->i_nlink = zp->z_links;
|
||||
set_nlink(ip, zp->z_links);
|
||||
ip->i_mode = zp->z_mode;
|
||||
ip->i_blkbits = SPA_MINBLOCKSHIFT;
|
||||
dmu_object_size_from_db(sa_get_db(zp->z_sa_hdl), &blksize,
|
||||
|
||||
Reference in New Issue
Block a user