Hi unionfs fans:

Can someone explain the mechanism of a trick in delete_whiteouts()?
....
lower_dir_dentry = unionfs_lower_dentry_idx(dentry, bindex);
BUG_ON(!S_ISDIR(lower_dir_dentry->d_inode->i_mode));
lower_dir = lower_dir_dentry->d_inode;
BUG_ON(!S_ISDIR(lower_dir->i_mode));
...

I don't understanding why we need 2 BUG_ONs here. They seems to be checking
the exact one thing.

Background of my question is that I found a weired compiler(for sh4 target)
related problem in the project, we need to remove one BUG_ON in the code,
or else there will be a explode of one BUG_ON.

Great appreciation if someone can provide comments.

Happy hacking!

/Peng
_______________________________________________
unionfs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to