]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs/9p: We should not allocate a new inode when creating hardlines.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 5 Jan 2012 16:42:17 +0000 (10:42 -0600)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 5 Jan 2012 16:51:44 +0000 (10:51 -0600)
commitb6054793069bf08fcf220fff5fb33735d5493594
tree44e4e3bded86642f35d183be9166ac78c1629a11
parentdf345c674b6366952a21a67604c8f6d489bb7ea7
fs/9p: We should not allocate a new inode when creating hardlines.

Don't do new_inode_from fid in case of hardlink creation. This ensures
that link count for hardlink files get updated properly. Earlier link count
was not updated on removing a hardlink with cache mode enabled.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c