]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: store ovl_entry in inode->i_private for all inodes
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 26 May 2016 00:01:47 +0000 (02:01 +0200)
committerShan Hai <shan.hai@oracle.com>
Fri, 4 Aug 2017 05:47:21 +0000 (13:47 +0800)
commit180b736b095ca4dc54a72c7a9ecc4d4f243bd5de
treef4666cbc38fe00e09e0a9d66f3e4f28c4fcb04c1
parente4ab162c3b32caacb79dbc4ba6e69eeed8d8f3a5
ovl: store ovl_entry in inode->i_private for all inodes

Previously this was only done for directory inodes.  Doing so for all
inodes makes for a nice cleanup in ovl_permission at zero cost.

Inodes are not shared for hard links on the overlay, so this works fine.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Orabug: 26401569

(backport upstream commit 58ed4e70f253d80ed72faba7873dc11603b398bc)

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/overlayfs/inode.c