[PATCH v2] hfsplus: prevent negative dentries when casefolded

2021-04-18 Thread Chung-Chiang Cheng
AAA This patch takes the same approach to drop negative dentires as vfat does. The dentry is revalidated without blocking and storing to the dentry, and should be safe in rcu-walk. Signed-off-by: Chung-Chiang Cheng --- fs/hfsplus/hfsplus_fs.h | 1 + fs/hfsplus/inode.c | 1 + fs/hfsplus/un

[PATCH] hfsplus: report create_date to kstat.btime

2021-04-16 Thread Chung-Chiang Cheng
The create_date field of inode in hfsplus is corresponding to kstat.btime and could be reported in statx. Signed-off-by: Chung-Chiang Cheng --- fs/hfsplus/inode.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 078c5c8a5156..aab3388a0fd7

[PATCH] hfsplus: prevent negative dentries when casefolded

2021-04-16 Thread Chung-Chiang Cheng
AAA This patch just takes the same approach as ext4 and f2fs to prevent negative dentries for this issue. Signed-off-by: Chung-Chiang Cheng --- fs/hfsplus/dir.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/fs/hfsplus/dir.c b/fs/hfsplus/dir.c index 03e6c046faf4..fcab8f09b6