hfsplus: remove superflous rootflags field in hfsplus_inode_info
The rootflags field in hfsplus_inode_info only caches the immutable and append-only flags in the VFS inode, so we can easily get rid of it. Signed-off-by: Christoph Hellwig <hch@tuxera.com>
This commit is contained in:

committed by
Christoph Hellwig

parent
f6089ff87d
commit
722c55d13e
@@ -241,7 +241,6 @@ static void hfsplus_get_perms(struct inode *inode, struct hfsplus_perm *perms, i
|
||||
mode = S_IFREG | ((S_IRUGO|S_IWUGO) & ~(sbi->umask));
|
||||
inode->i_mode = mode;
|
||||
|
||||
HFSPLUS_I(inode)->rootflags = perms->rootflags;
|
||||
HFSPLUS_I(inode)->userflags = perms->userflags;
|
||||
if (perms->rootflags & HFSPLUS_FLG_IMMUTABLE)
|
||||
inode->i_flags |= S_IMMUTABLE;
|
||||
|
Reference in New Issue
Block a user