Skip to contentSkip to conversation

hfsplus-report-create_date-to-kstatbtime.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: hfsplus: report create_date to kstat.btime
has been removed from the -mm tree. Its filename was
hfsplus-report-create_date-to-kstatbtime.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Chung-Chiang Cheng <[email protected]>
Subject: hfsplus: report create_date to kstat.btime

The create_date field of inode in hfsplus is corresponding to kstat.btime and could be reported in statx.

---

 fs/hfsplus/inode.c |    5 +++++
 1 file changed, 5 insertions(+)
fs/hfsplus/inode.c renamed from fs/hfsplus/inode.c~hfsplus-report-create_date-to-kstatbtime +5 -0
@@ -281,6 +281,11 @@ int hfsplus_getattr(struct user_namespac
 	struct inode *inode = d_inode(path->dentry);
 	struct hfsplus_inode_info *hip = HFSPLUS_I(inode);
 
+	if (request_mask & STATX_BTIME) {
+		stat->result_mask |= STATX_BTIME;
+		stat->btime = hfsp_mt2ut(hip->create_date);
+	}
+
 	if (inode->i_flags & S_APPEND)
 		stat->attributes |= STATX_ATTR_APPEND;
 	if (inode->i_flags & S_IMMUTABLE)

_

Patches currently in -mm which might be from [email protected] are