Skip to content

Commit

Permalink
aufs: possible bugfix, warning about sb->s_remove_count #2
Browse files Browse the repository at this point in the history
By the commit in linux-v3.3-rc1
	7ada4db 2012-01-06 vfs: count unlinked inodes
vfs:__destroy_inode() became available to produce a warning about
sb->s_remove_count. In aufs, calling vfs:set_nlink() may confuse
s_remove_count, espcially when the link count is unchaged.
Artur Piechocki reported on github the warning is issued while I
cannot reproduce by myself.
This commit may not be able to disappear the warning, but it keeps the
correct link count.

See-also: sfjro/aufs-standalone#44
Signed-off-by: J. R. Okajima <[email protected]>
  • Loading branch information
sfjro committed Nov 11, 2024
1 parent 143ef4c commit 9fb963b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/aufs/cpup.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ void au_cpup_attr_all(struct inode *inode, int force)

h_inode = au_h_iptr(inode, au_ibtop(inode));
au_cpup_attr_changeable(inode);
if (inode->i_nlink > 0)
au_cpup_attr_nlink(inode, force);
au_cpup_attr_nlink(inode, force);
inode->i_rdev = h_inode->i_rdev;
inode->i_blkbits = h_inode->i_blkbits;
au_cpup_igen(inode, h_inode);
Expand Down

0 comments on commit 9fb963b

Please sign in to comment.