Skip to content

Moving i_dquot out of struct inode

Jan Kara cluster-devel linux-ext4 linux-fsdevel linux-xfs ocfs2-devel reiserfs-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest12 patches 4 repliesIn review
  2. v312 patches 5 repliesSuperseded
  3. v212 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC12 patches7 repliesSuperseded

Changes in v4 from the cover letter

* Moved bitmask of allowed quota types out of s_dquot into sb itself
* Removed pointless #ifdef CONFIG_QUOTA from OCFS2

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12quota: Remove const from function declarationsfs/quota/dquot.c include/linux/quotaops.h+6 -60 replies
2/12quota: Allow each filesystem to specify which quota types it supportsfs/quota/quota.c fs/super.c include/linux/fs.h +1 more+23 -20 replies
3/12gfs2: Set allowed quota typesfs/gfs2/ops_fstype.c+1 -00 replies
4/12xfs: Set allowed quota typesfs/xfs/xfs_super.c+1 -00 replies
5/12quota: Use function to provide i_dquot pointersfs/quota/dquot.c include/linux/fs.h+32 -230 replies
6/12ext2: Convert to private i_dquot fieldfs/ext2/ext2.h fs/ext2/super.c+13 -00 replies
7/12ext3: Convert to private i_dquot fieldfs/ext3/ext3.h fs/ext3/super.c+14 -00 replies
8/12ext4: Convert to private i_dquot fieldfs/ext4/ext4.h fs/ext4/super.c+12 -01 reply
9/12ocfs2: Convert to private i_dquot fieldfs/ocfs2/inode.h fs/ocfs2/super.c+10 -00 replies
10/12reiserfs: Convert to private i_dquot fieldfs/reiserfs/reiserfs.h fs/reiserfs/super.c+15 -00 replies
11/12jfs: Convert to private i_dquot fieldfs/jfs/jfs_incore.h fs/jfs/super.c+12 -01 reply
12/12vfs: Remove i_dquot field from inodefs/inode.c fs/quota/dquot.c fs/super.c +1 more+0 -150 replies

Reviews trailers per patch

3 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSteven WhitehouseDave KleikampTheodore Ts'oChristoph Hellwig
SeriesA-b
1/12
2/12
3/12A-b
4/12
5/12
6/12
7/12
8/12A-b
9/12
10/12
11/12A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH 0/12 v4] Moving i_dquot out of struct inode

Hello,

here is a new version of my patch series which moves i_dquot array from
struct inode into filesystem private part of the inode. Thus filesystems which don't need it save 2 pointers in their inodes (would be 3 after we add project quota support into generic quota).

The patch series also contains a change to quotactl so that each filesystem can set quota types it supports. This is in the end unrelated change (originally it was necessary for i_dquot moving but in the end I changed things so that it's not anymore). I can move that into a separate series but I was somewhat reluctant to do that since that would mean another 6 one-line patches to the same files we are changing here...

If people like the patches, I will queue this series into my tree for the next merge window. For that I'd prefer to get acks from affected fs maintainers (the changes are pretty trivial and I don't feel it's a must but still I'd prefer fs maintainers to ack they are aware of the changes).

Honza

Changes since v1:
* Inode field names are now named enum
* Quota type masks now have names like QTYPE_MASK_{USR|GRP|PRJ} instead of opencoding shifts.

Changes since v2:
* Use ->get_dquots callback instead of inode fields framework
* rebased on Linus' tree as of 3.18-rc1 + something.

Changes since v3:
* Moved bitmask of allowed quota types out of s_dquot into sb itself
* Removed pointless #ifdef CONFIG_QUOTA from OCFS2