xfs: Fix the way we check di_mode of an inode
commit75cf6cebf0ffdf75f359528b01fc9039062e7b34
authorPaulo Alcantara <pcacjr@zytor.com>
Sun, 2 Sep 2012 23:03:13 +0000 (2 20:03 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sun, 2 Sep 2012 23:07:20 +0000 (2 20:07 -0300)
treee0561313bc94664ba90edf2cc1542ac5ad12269b
parent1e4d29ab0fde3f81701b3de206179e6ecd545420
xfs: Fix the way we check di_mode of an inode

The previous way to judge the di_mode of an inode could not distinguish
S_IFREG and S_IFLNK. Fix it to a better judgement.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
core/fs/xfs/xfs.c
core/fs/xfs/xfs_dir2.c