Skip to contentSkip to conversation

GFS2: Use reflink for quota data cache

PATCH New Abhijith Das 1 participant 1 message Nov 1, 2013 1 message not in the archive GFS2 file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/3 GFS2: Use reflink for quota data cache

This patch adds reflink support to the quota data cache. It looks a bit strange because we still don't have a sensible split in the lookup by id and the lru list. That is coming in later patches though.

The intent here is just to swap the current ref count for reflinks in all cases with as little as possible other change.

fs/gfs2/incore.h +2 -2
index bb88e41..a3df7fd 100644
@@ -422,9 +422,9 @@ struct gfs2_quota_data {
 	struct list_head qd_list;
 	struct list_head qd_reclaim;
 
-	atomic_t qd_count;
+	struct lockref qd_lockref;
 
-	struct kqid qd_id;
+	struct  kqid qd_id;
 	unsigned long qd_flags;		/* QDF_... */
 
 	s64 qd_change;
fs/gfs2/quota.c +28 -14

102 lines not on this page · raw message